diff options
author | Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com> | 2024-06-28 18:37:12 +0300 |
---|---|---|
committer | John Johansen <john.johansen@canonical.com> | 2024-07-24 20:33:58 +0300 |
commit | 33be0cfa5ba522ba88ba25cb95e582932843409b (patch) | |
tree | 0a2e2de27e3e47d50d3462af1a76acc76f4e327f /security/apparmor | |
parent | 3dd384108d53834002be5630132ad5c3f32166ad (diff) | |
download | linux-33be0cfa5ba522ba88ba25cb95e582932843409b.tar.xz |
apparmor: take nosymfollow flag into account
A "nosymfollow" flag was added in commit
dab741e0e02b ("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>
Diffstat (limited to 'security/apparmor')
-rw-r--r-- | security/apparmor/mount.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/security/apparmor/mount.c b/security/apparmor/mount.c index 49fe8da6fea4..bf8863253e07 100644 --- a/security/apparmor/mount.c +++ b/security/apparmor/mount.c @@ -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) |