diff options
Diffstat (limited to 'security/selinux')
-rw-r--r-- | security/selinux/ss/services.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c index 5a820cf88c9c..8449d667b062 100644 --- a/security/selinux/ss/services.c +++ b/security/selinux/ss/services.c | |||
@@ -476,8 +476,8 @@ int security_compute_av(u32 ssid, | |||
476 | int rc = 0; | 476 | int rc = 0; |
477 | 477 | ||
478 | if (!ss_initialized) { | 478 | if (!ss_initialized) { |
479 | avd->allowed = requested; | 479 | avd->allowed = 0xffffffff; |
480 | avd->decided = requested; | 480 | avd->decided = 0xffffffff; |
481 | avd->auditallow = 0; | 481 | avd->auditallow = 0; |
482 | avd->auditdeny = 0xffffffff; | 482 | avd->auditdeny = 0xffffffff; |
483 | avd->seqno = latest_granting; | 483 | avd->seqno = latest_granting; |
@@ -1196,9 +1196,11 @@ int security_load_policy(void *data, size_t len) | |||
1196 | } | 1196 | } |
1197 | policydb_loaded_version = policydb.policyvers; | 1197 | policydb_loaded_version = policydb.policyvers; |
1198 | ss_initialized = 1; | 1198 | ss_initialized = 1; |
1199 | 1199 | seqno = ++latest_granting; | |
1200 | LOAD_UNLOCK; | 1200 | LOAD_UNLOCK; |
1201 | selinux_complete_init(); | 1201 | selinux_complete_init(); |
1202 | avc_ss_reset(seqno); | ||
1203 | selnl_notify_policyload(seqno); | ||
1202 | return 0; | 1204 | return 0; |
1203 | } | 1205 | } |
1204 | 1206 | ||