Merge branch 'for-linus' of git://git.infradead.org/users/eparis/selinux into for...
[linux-2.6.git] / security / selinux / hooks.c
index f7cf0ea..8fb2488 100644 (file)
@@ -1578,7 +1578,8 @@ static int may_create(struct inode *dir,
                return rc;
 
        if (!newsid || !(sbsec->flags & SE_SBLABELSUPP)) {
-               rc = security_transition_sid(sid, dsec->sid, tclass, NULL, &newsid);
+               rc = security_transition_sid(sid, dsec->sid, tclass,
+                                            &dentry->d_name, &newsid);
                if (rc)
                        return rc;
        }