diff options
Diffstat (limited to 'security/selinux/ss/services.c')
-rw-r--r-- | security/selinux/ss/services.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c index 26de2be0c8e2..4a14348de876 100644 --- a/security/selinux/ss/services.c +++ b/security/selinux/ss/services.c | |||
@@ -61,6 +61,7 @@ extern void selnl_notify_policyload(u32 seqno); | |||
61 | unsigned int policydb_loaded_version; | 61 | unsigned int policydb_loaded_version; |
62 | 62 | ||
63 | int selinux_policycap_netpeer; | 63 | int selinux_policycap_netpeer; |
64 | int selinux_policycap_openperm; | ||
64 | 65 | ||
65 | /* | 66 | /* |
66 | * This is declared in avc.c | 67 | * This is declared in avc.c |
@@ -1308,6 +1309,8 @@ static void security_load_policycaps(void) | |||
1308 | { | 1309 | { |
1309 | selinux_policycap_netpeer = ebitmap_get_bit(&policydb.policycaps, | 1310 | selinux_policycap_netpeer = ebitmap_get_bit(&policydb.policycaps, |
1310 | POLICYDB_CAPABILITY_NETPEER); | 1311 | POLICYDB_CAPABILITY_NETPEER); |
1312 | selinux_policycap_openperm = ebitmap_get_bit(&policydb.policycaps, | ||
1313 | POLICYDB_CAPABILITY_OPENPERM); | ||
1311 | } | 1314 | } |
1312 | 1315 | ||
1313 | extern void selinux_complete_init(void); | 1316 | extern void selinux_complete_init(void); |