diff options
-rw-r--r-- | security/selinux/hooks.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 45c41490d521..fc774436a264 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -1986,6 +1986,9 @@ static int selinux_inode_init_security(struct inode *inode, struct inode *dir, | |||
1986 | 1986 | ||
1987 | inode_security_set_sid(inode, newsid); | 1987 | inode_security_set_sid(inode, newsid); |
1988 | 1988 | ||
1989 | if (sbsec->behavior == SECURITY_FS_USE_MNTPOINT) | ||
1990 | return -EOPNOTSUPP; | ||
1991 | |||
1989 | if (name) { | 1992 | if (name) { |
1990 | namep = kstrdup(XATTR_SELINUX_SUFFIX, GFP_KERNEL); | 1993 | namep = kstrdup(XATTR_SELINUX_SUFFIX, GFP_KERNEL); |
1991 | if (!namep) | 1994 | if (!namep) |