Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 120751
b: refs/heads/master
c: 7419224
h: refs/heads/master
i:
  120749: 84aa18b
  120747: c777109
  120743: 3f5e5cc
  120735: 7058b98
v: v3
  • Loading branch information
James Morris committed Dec 19, 2008
1 parent 6b38a57 commit 3138170
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 12204e24b1330428c3062faee10a0d80b8a5cb61
refs/heads/master: 74192246910ff4fb95309ba1a683215644beeb62
4 changes: 4 additions & 0 deletions trunk/security/selinux/hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -2484,6 +2484,10 @@ static int selinux_sb_kern_mount(struct super_block *sb, int flags, void *data)
if (rc)
return rc;

/* Allow all mounts performed by the kernel */
if (flags & MS_KERNMOUNT)
return 0;

AVC_AUDIT_DATA_INIT(&ad, FS);
ad.u.fs.path.dentry = sb->s_root;
return superblock_has_perm(cred, sb, FILESYSTEM__MOUNT, &ad);
Expand Down

0 comments on commit 3138170

Please sign in to comment.