mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] apparmor: take nosymfollow flag into account
@ 2024-06-28 15:37 Alexander Mikhalitsyn
  2024-07-15 14:19 ` [apparmor] " Georgia Garcia
  2024-11-09 22:16 ` John Johansen
  0 siblings, 2 replies; 3+ messages in thread
From: Alexander Mikhalitsyn @ 2024-06-28 15:37 UTC (permalink / raw)
  To: john.johansen
  Cc: stgraber, brauner, apparmor, linux-kernel, Alexander Mikhalitsyn

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>
---
 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)
-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [apparmor] [PATCH] apparmor: take nosymfollow flag into account
  2024-06-28 15:37 [PATCH] apparmor: take nosymfollow flag into account Alexander Mikhalitsyn
@ 2024-07-15 14:19 ` Georgia Garcia
  2024-11-09 22:16 ` John Johansen
  1 sibling, 0 replies; 3+ messages in thread
From: Georgia Garcia @ 2024-07-15 14:19 UTC (permalink / raw)
  To: Alexander Mikhalitsyn, john.johansen
  Cc: stgraber, brauner, apparmor, linux-kernel

On Fri, 2024-06-28 at 17:37 +0200, 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.
> 

Reviewed-by: Georgia Garcia <georgia.garcia@canonical.com>

> Signed-off-by: Alexander Mikhalitsyn <aleksandr.mikhalitsyn@canonical.com>
> ---
>  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)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] apparmor: take nosymfollow flag into account
  2024-06-28 15:37 [PATCH] apparmor: take nosymfollow flag into account Alexander Mikhalitsyn
  2024-07-15 14:19 ` [apparmor] " Georgia Garcia
@ 2024-11-09 22:16 ` John Johansen
  1 sibling, 0 replies; 3+ messages in thread
From: John Johansen @ 2024-11-09 22:16 UTC (permalink / raw)
  To: Alexander Mikhalitsyn; +Cc: stgraber, brauner, apparmor, linux-kernel

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@canonical.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)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-11-09 22:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-28 15:37 [PATCH] apparmor: take nosymfollow flag into account Alexander Mikhalitsyn
2024-07-15 14:19 ` [apparmor] " Georgia Garcia
2024-11-09 22:16 ` John Johansen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®