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:
@@ -914,7 +914,7 @@ vfs_kern_mount(struct file_system_type *type, int flags, const char *name, void
|
||||
goto out_free_secdata;
|
||||
BUG_ON(!mnt->mnt_sb);
|
||||
|
||||
error = security_sb_kern_mount(mnt->mnt_sb, secdata);
|
||||
error = security_sb_kern_mount(mnt->mnt_sb, flags, secdata);
|
||||
if (error)
|
||||
goto out_sb;
|
||||
|
||||
|
Reference in New Issue
Block a user