Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 227811
b: refs/heads/master
c: 415103f
h: refs/heads/master
i:
  227809: 9c1c77e
  227807: ecab469
v: v3
  • Loading branch information
Eric Paris committed Dec 2, 2010
1 parent a53b5e9 commit e784f0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1d9bc6dc5b6b9cc9299739f0245ce4841f066b92
refs/heads/master: 415103f9932d45f7927f4b17e3a9a13834cdb9a1
5 changes: 4 additions & 1 deletion trunk/security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -2525,7 +2525,10 @@ static int selinux_inode_init_security(struct inode *inode, struct inode *dir,
sid = tsec->sid;
newsid = tsec->create_sid;

if (!newsid || !(sbsec->flags & SE_SBLABELSUPP)) {
if ((sbsec->flags & SE_SBINITIALIZED) &&
(sbsec->behavior == SECURITY_FS_USE_MNTPOINT))
newsid = sbsec->mntpoint_sid;
else if (!newsid || !(sbsec->flags & SE_SBLABELSUPP)) {
rc = security_transition_sid(sid, dsec->sid,
inode_mode_to_security_class(inode->i_mode),
&newsid);
Expand Down

0 comments on commit e784f0a

Please sign in to comment.