aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorJames Morris <[email protected]>2008-12-18 23:44:42 +0000
committerJames Morris <[email protected]>2008-12-19 22:02:39 +0000
commit12204e24b1330428c3062faee10a0d80b8a5cb61 (patch)
treed92ee705a86f0ec2bf85c8a797239dbb840d5927 /security/selinux/hooks.c
parentSELinux: correctly detect proc filesystems of the form "proc/foo" (diff)
downloadkernel-12204e24b1330428c3062faee10a0d80b8a5cb61.tar.gz
kernel-12204e24b1330428c3062faee10a0d80b8a5cb61.zip
security: pass mount flags to security_sb_kern_mount()
Pass mount flags to security_sb_kern_mount(), so security modules can determine if a mount operation is being performed by the kernel. Signed-off-by: James Morris <[email protected]> Acked-by: Stephen Smalley <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r--security/selinux/hooks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index 8dbc54cde59e..7465d713b531 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -2474,7 +2474,7 @@ out:
return rc;
}
-static int selinux_sb_kern_mount(struct super_block *sb, void *data)
+static int selinux_sb_kern_mount(struct super_block *sb, int flags, void *data)
{
const struct cred *cred = current_cred();
struct avc_audit_data ad;