diff options
author | Stephen Smalley <stephen.smalley.work@gmail.com> | 2020-08-06 20:34:18 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2020-08-18 02:42:00 +0200 |
commit | 339949be25863ac15e24659c2ab4b01185e1234a (patch) | |
tree | de4c7230a954ad27655ba2a8118877eb9c051f63 /security/selinux/ss/services.c | |
parent | Linux 5.9-rc1 (diff) | |
download | linux-339949be25863ac15e24659c2ab4b01185e1234a.tar.xz linux-339949be25863ac15e24659c2ab4b01185e1234a.zip |
scripts/selinux,selinux: update mdp to enable policy capabilities
Presently mdp does not enable any SELinux policy capabilities
in the dummy policy it generates. Thus, policies derived from
it will by default lack various features commonly used in modern
policies such as open permission, extended socket classes, network
peer controls, etc. Split the policy capability definitions out into
their own headers so that we can include them into mdp without pulling in
other kernel headers and extend mdp generate policycap statements for the
policy capabilities known to the kernel. Policy authors may wish to
selectively remove some of these from the generated policy.
Signed-off-by: Stephen Smalley <stephen.smalley.work@gmail.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/ss/services.c')
-rw-r--r-- | security/selinux/ss/services.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c index 1caf4e603309..676550103fac 100644 --- a/security/selinux/ss/services.c +++ b/security/selinux/ss/services.c @@ -64,17 +64,7 @@ #include "xfrm.h" #include "ebitmap.h" #include "audit.h" - -/* Policy capability names */ -const char *selinux_policycap_names[__POLICYDB_CAPABILITY_MAX] = { - "network_peer_controls", - "open_perms", - "extended_socket_class", - "always_check_network", - "cgroup_seclabel", - "nnp_nosuid_transition", - "genfs_seclabel_symlinks" -}; +#include "policycap_names.h" static struct selinux_ss selinux_ss; |