lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <95fb73d2-4d29-41d9-be52-48c5d58d43e0@canonical.com>
Date: Sat, 9 Nov 2024 14:16:17 -0800
From: John Johansen <john.johansen@...onical.com>
To: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@...onical.com>
Cc: stgraber@...raber.org, brauner@...nel.org, apparmor@...ts.ubuntu.com,
 linux-kernel@...r.kernel.org
Subject: Re: [PATCH] apparmor: take nosymfollow flag into account

On 6/28/24 08:37, Alexander Mikhalitsyn wrote:
> 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@...onical.com>

As I am trying to sort through the back log I found that
some how my reply to this got dropped. So just to document
on list, this landed in 6.11

> ---
>   security/apparmor/mount.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> 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)


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ