Skip to content

Commit

Permalink
SELinux: include definition of new capabilities
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric Paris authored and James Morris committed Jul 16, 2012
1 parent 918227b commit 64919e6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion security/selinux/include/classmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ struct security_class_mapping secclass_map[] = {
"node_bind", "name_connect", NULL } },
{ "memprotect", { "mmap_zero", NULL } },
{ "peer", { "recv", NULL } },
{ "capability2", { "mac_override", "mac_admin", "syslog", NULL } },
{ "capability2",
{ "mac_override", "mac_admin", "syslog", "wake_alarm", "epollwakeup",
NULL } },
{ "kernel_service", { "use_as_override", "create_files_as", NULL } },
{ "tun_socket",
{ COMMON_SOCK_PERMS, NULL } },
Expand Down

0 comments on commit 64919e6

Please sign in to comment.