aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--security/selinux/hooks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 5b16196f2823..9ff51c668f06 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -1957,7 +1957,7 @@ static int selinux_inode_init_security(struct inode *inode, struct inode *dir,
1957 1957
1958 inode_security_set_sid(inode, newsid); 1958 inode_security_set_sid(inode, newsid);
1959 1959
1960 if (sbsec->behavior == SECURITY_FS_USE_MNTPOINT) 1960 if (!ss_initialized || sbsec->behavior == SECURITY_FS_USE_MNTPOINT)
1961 return -EOPNOTSUPP; 1961 return -EOPNOTSUPP;
1962 1962
1963 if (name) { 1963 if (name) {