diff options
author | James Morris <jmorris@namei.org> | 2008-12-19 10:44:42 +1100 |
---|---|---|
committer | James Morris <jmorris@namei.org> | 2008-12-20 09:02:39 +1100 |
commit | 12204e24b1330428c3062faee10a0d80b8a5cb61 (patch) | |
tree | d92ee705a86f0ec2bf85c8a797239dbb840d5927 /security/smack | |
parent | 459c19f524a9d89c65717a7d061d5f11ecf6bcb8 (diff) | |
download | kernel_goldelico_gta04-12204e24b1330428c3062faee10a0d80b8a5cb61.zip kernel_goldelico_gta04-12204e24b1330428c3062faee10a0d80b8a5cb61.tar.gz kernel_goldelico_gta04-12204e24b1330428c3062faee10a0d80b8a5cb61.tar.bz2 |
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 <jmorris@namei.org>
Acked-by: Stephen Smalley <sds@tycho.nsa.gov>
Diffstat (limited to 'security/smack')
-rw-r--r-- | security/smack/smack_lsm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/security/smack/smack_lsm.c b/security/smack/smack_lsm.c index 8ad4816..1b5551d 100644 --- a/security/smack/smack_lsm.c +++ b/security/smack/smack_lsm.c @@ -250,11 +250,12 @@ static int smack_sb_copy_data(char *orig, char *smackopts) /** * smack_sb_kern_mount - Smack specific mount processing * @sb: the file system superblock + * @flags: the mount flags * @data: the smack mount options * * Returns 0 on success, an error code on failure */ -static int smack_sb_kern_mount(struct super_block *sb, void *data) +static int smack_sb_kern_mount(struct super_block *sb, int flags, void *data) { struct dentry *root = sb->s_root; struct inode *inode = root->d_inode; |