diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 9e8078a42a94..a6dd2bed8d7b 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -1579,7 +1579,8 @@ static int may_create(struct inode *dir, | |||
1579 | return rc; | 1579 | return rc; |
1580 | 1580 | ||
1581 | if (!newsid || !(sbsec->flags & SE_SBLABELSUPP)) { | 1581 | if (!newsid || !(sbsec->flags & SE_SBLABELSUPP)) { |
1582 | rc = security_transition_sid(sid, dsec->sid, tclass, NULL, &newsid); | 1582 | rc = security_transition_sid(sid, dsec->sid, tclass, |
1583 | &dentry->d_name, &newsid); | ||
1583 | if (rc) | 1584 | if (rc) |
1584 | return rc; | 1585 | return rc; |
1585 | } | 1586 | } |