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>
This commit is contained in:
James Morris
2008-12-19 10:44:42 +11:00
parent 459c19f524
commit 12204e24b1
6 changed files with 10 additions and 9 deletions

View File

@@ -59,7 +59,7 @@ static int cap_sb_copy_data(char *orig, char *copy)
return 0;
}
static int cap_sb_kern_mount(struct super_block *sb, void *data)
static int cap_sb_kern_mount(struct super_block *sb, int flags, void *data)
{
return 0;
}