diff options
-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 d52a92507412..9a93af81a0c3 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -1573,7 +1573,8 @@ static int may_create(struct inode *dir, | |||
1573 | return rc; | 1573 | return rc; |
1574 | 1574 | ||
1575 | if (!newsid || !(sbsec->flags & SE_SBLABELSUPP)) { | 1575 | if (!newsid || !(sbsec->flags & SE_SBLABELSUPP)) { |
1576 | rc = security_transition_sid(sid, dsec->sid, tclass, NULL, &newsid); | 1576 | rc = security_transition_sid(sid, dsec->sid, tclass, |
1577 | &dentry->d_name, &newsid); | ||
1577 | if (rc) | 1578 | if (rc) |
1578 | return rc; | 1579 | return rc; |
1579 | } | 1580 | } |