Skip to content

Commit 33be0cf

Browse files
mihalicynjrjohansen
authored andcommitted
apparmor: take nosymfollow flag into account
A "nosymfollow" flag was added in commit dab741e ("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>
1 parent 3dd3841 commit 33be0cf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

security/apparmor/mount.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ static void audit_mnt_flags(struct audit_buffer *ab, unsigned long flags)
4444
audit_log_format(ab, ", mand");
4545
if (flags & MS_DIRSYNC)
4646
audit_log_format(ab, ", dirsync");
47+
if (flags & MS_NOSYMFOLLOW)
48+
audit_log_format(ab, ", nosymfollow");
4749
if (flags & MS_NOATIME)
4850
audit_log_format(ab, ", noatime");
4951
if (flags & MS_NODIRATIME)

0 commit comments

Comments
 (0)