mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
apparmor: take nosymfollow flag into account
A "nosymfollow" flag was added in commit
dab741e0e0
("Add a "nosymfollow" mount option.")
While we don't need to implement any special logic on
the AppArmor kernel side to handle it, we should provide
user with a correct list of mount flags in audit logs.
Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
Reviewed-by: Georgia Garcia <georgia.garcia@canonical.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
parent
3dd384108d
commit
33be0cfa5b
@ -44,6 +44,8 @@ static void audit_mnt_flags(struct audit_buffer *ab, unsigned long flags)
|
||||
audit_log_format(ab, ", mand");
|
||||
if (flags & MS_DIRSYNC)
|
||||
audit_log_format(ab, ", dirsync");
|
||||
if (flags & MS_NOSYMFOLLOW)
|
||||
audit_log_format(ab, ", nosymfollow");
|
||||
if (flags & MS_NOATIME)
|
||||
audit_log_format(ab, ", noatime");
|
||||
if (flags & MS_NODIRATIME)
|
||||
|
Loading…
Reference in New Issue
Block a user