From 2f90841b40adfcb1185ae01a6932de861125ec03 Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Thu, 28 Apr 2011 15:11:21 -0400 Subject: [PATCH] --- yaml --- r: 250802 b: refs/heads/master c: 562abf624175e3f8487b7f064e516805e437e597 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/security/selinux/hooks.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 89578bdf16f5..ed0cf0f3e886 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2463c26d50adc282d19317013ba0ff473823ca47 +refs/heads/master: 562abf624175e3f8487b7f064e516805e437e597 diff --git a/trunk/security/selinux/hooks.c b/trunk/security/selinux/hooks.c index 9e8078a42a94..a6dd2bed8d7b 100644 --- a/trunk/security/selinux/hooks.c +++ b/trunk/security/selinux/hooks.c @@ -1579,7 +1579,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; }