From 50f5aec2102729aa5da9687727266561d9d6e309 Mon Sep 17 00:00:00 2001 From: Stephen Smalley Date: Wed, 22 Mar 2006 00:09:13 -0800 Subject: [PATCH] --- yaml --- r: 22506 b: refs/heads/master c: 8aad38752e81d1d4de67e3d8e2524618ce7c9276 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/security/selinux/hooks.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 587650d591b0..adc102560ebc 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: b20a35035f983f4ac7e29c4a68f30e43510007e0 +refs/heads/master: 8aad38752e81d1d4de67e3d8e2524618ce7c9276 diff --git a/trunk/security/selinux/hooks.c b/trunk/security/selinux/hooks.c index 5b16196f2823..9ff51c668f06 100644 --- a/trunk/security/selinux/hooks.c +++ b/trunk/security/selinux/hooks.c @@ -1957,7 +1957,7 @@ static int selinux_inode_init_security(struct inode *inode, struct inode *dir, inode_security_set_sid(inode, newsid); - if (sbsec->behavior == SECURITY_FS_USE_MNTPOINT) + if (!ss_initialized || sbsec->behavior == SECURITY_FS_USE_MNTPOINT) return -EOPNOTSUPP; if (name) {