mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-28 12:53:14 +01:00
apparmor: fix auditing of mount binary data
AppArmor only mediates non-binary mount data, and should only audit the mount data if it is non-binary. Signed-off-by: John Johansen <[email protected]>
This commit is contained in:
1 parent
97dd3f51bf
commit
b9f2181b90
1 file changed
+2
-2
@@ -345,8 +345,8 @@ static int match_mnt_path_str(const struct cred *subj_cred,
|
||||
|
||||
audit:
|
||||
return audit_mount(subj_cred, profile, OP_MOUNT, mntpnt, devname,
|
||||
type, NULL,
|
||||
flags, data, AA_MAY_MOUNT, &perms, info, error);
|
||||
type, NULL, flags, !binary ? data : NULL,
|
||||
AA_MAY_MOUNT, &perms, info, error);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user