Skip to content

Commit 64919e6

Browse files
eparisJames Morris
authored andcommitted
SELinux: include definition of new capabilities
The kernel has added CAP_WAKE_ALARM and CAP_EPOLLWAKEUP. We need to define these in SELinux so they can be mediated by policy. Signed-off-by: Eric Paris <eparis@redhat.com> Signed-off-by: James Morris <james.l.morris@oracle.com>
1 parent 918227b commit 64919e6

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎security/selinux/include/classmap.h‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,9 @@ struct security_class_mapping secclass_map[] = {
145145
"node_bind", "name_connect", NULL } },
146146
{ "memprotect", { "mmap_zero", NULL } },
147147
{ "peer", { "recv", NULL } },
148-
{ "capability2", { "mac_override", "mac_admin", "syslog", NULL } },
148+
{ "capability2",
149+
{ "mac_override", "mac_admin", "syslog", "wake_alarm", "epollwakeup",
150+
NULL } },
149151
{ "kernel_service", { "use_as_override", "create_files_as", NULL } },
150152
{ "tun_socket",
151153
{ COMMON_SOCK_PERMS, NULL } },

0 commit comments

Comments
 (0)