Home Home > GIT Browse > SLE15-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-07-09 16:55:55 +0200
committerTakashi Iwai <tiwai@suse.de>2018-07-09 16:56:10 +0200
commitdce39b55852ab2bee25824070517deb295f42f2e (patch)
tree4ef890494864ad45001e5d21b487b74724b13de7
parentd3d1d0134be5c55576e960714b119b66efabffc0 (diff)
selinux: skip bounded transition processing if the policy
isn't loaded (bsc#1051510). suse-commit: 807fe51a3980312ddc07bd1a0c3fe8e93e8f8787
-rw-r--r--security/selinux/ss/services.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c
index f137aa02d6d4..e0d100b84139 100644
--- a/security/selinux/ss/services.c
+++ b/security/selinux/ss/services.c
@@ -856,6 +856,9 @@ int security_bounded_transition(u32 old_sid, u32 new_sid)
int index;
int rc;
+ if (!ss_initialized)
+ return 0;
+
read_lock(&policy_rwlock);
rc = -EINVAL;