public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Add F_SEAL_EXEC from Linux 6.3 to bits/fcntl-linux.h.
@ 2023-08-24 20:36 Kir Kolyshkin
  2023-08-25  2:31 ` [PATCH v2] " Kir Kolyshkin
  0 siblings, 1 reply; 4+ messages in thread
From: Kir Kolyshkin @ 2023-08-24 20:36 UTC (permalink / raw)
  To: libc-alpha; +Cc: Kir Kolyshkin

This patch adds the new F_SEAL_EXEC constant from Linux 6.3 (see Linux
commit 6fd7353829c ("mm/memfd: add F_SEAL_EXEC") to bits/fcntl-linux.h.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
---
 sysdeps/unix/sysv/linux/bits/fcntl-linux.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
index 1babbdc84e..ce3b560cbc 100644
--- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
+++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
@@ -286,6 +286,7 @@ struct f_owner_ex
 # define F_SEAL_WRITE	0x0008	/* Prevent writes.  */
 # define F_SEAL_FUTURE_WRITE	0x0010	/* Prevent future writes while
 					   mapped.  */
+# define F_SEAL_EXEC	0x0020	/* prevent chmod modifying exec bits */
 #endif
 
 #ifdef __USE_GNU
-- 
2.41.0


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

* [PATCH v2] Add F_SEAL_EXEC from Linux 6.3 to bits/fcntl-linux.h.
  2023-08-24 20:36 [PATCH] Add F_SEAL_EXEC from Linux 6.3 to bits/fcntl-linux.h Kir Kolyshkin
@ 2023-08-25  2:31 ` Kir Kolyshkin
  2023-08-28 17:41   ` Adhemerval Zanella Netto
  2023-09-08 15:07   ` Francis Laniel
  0 siblings, 2 replies; 4+ messages in thread
From: Kir Kolyshkin @ 2023-08-25  2:31 UTC (permalink / raw)
  To: libc-alpha; +Cc: Kir Kolyshkin

This patch adds the new F_SEAL_EXEC constant from Linux 6.3 (see Linux
commit 6fd7353829c ("mm/memfd: add F_SEAL_EXEC") to bits/fcntl-linux.h.

[v2: fix comment]

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
---
 sysdeps/unix/sysv/linux/bits/fcntl-linux.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
index 1babbdc84e..df378c7b89 100644
--- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
+++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
@@ -286,6 +286,7 @@ struct f_owner_ex
 # define F_SEAL_WRITE	0x0008	/* Prevent writes.  */
 # define F_SEAL_FUTURE_WRITE	0x0010	/* Prevent future writes while
 					   mapped.  */
+# define F_SEAL_EXEC	0x0020	/* Prevent chmod modifying exec bits. */
 #endif
 
 #ifdef __USE_GNU
-- 
2.41.0


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

* Re: [PATCH v2] Add F_SEAL_EXEC from Linux 6.3 to bits/fcntl-linux.h.
  2023-08-25  2:31 ` [PATCH v2] " Kir Kolyshkin
@ 2023-08-28 17:41   ` Adhemerval Zanella Netto
  2023-09-08 15:07   ` Francis Laniel
  1 sibling, 0 replies; 4+ messages in thread
From: Adhemerval Zanella Netto @ 2023-08-28 17:41 UTC (permalink / raw)
  To: Kir Kolyshkin, libc-alpha



On 24/08/23 23:31, Kir Kolyshkin via Libc-alpha wrote:
> This patch adds the new F_SEAL_EXEC constant from Linux 6.3 (see Linux
> commit 6fd7353829c ("mm/memfd: add F_SEAL_EXEC") to bits/fcntl-linux.h.
> 
> [v2: fix comment]
> 
> Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>

LGTM, thanks.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>

> ---
>  sysdeps/unix/sysv/linux/bits/fcntl-linux.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
> index 1babbdc84e..df378c7b89 100644
> --- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
> +++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
> @@ -286,6 +286,7 @@ struct f_owner_ex
>  # define F_SEAL_WRITE	0x0008	/* Prevent writes.  */
>  # define F_SEAL_FUTURE_WRITE	0x0010	/* Prevent future writes while
>  					   mapped.  */
> +# define F_SEAL_EXEC	0x0020	/* Prevent chmod modifying exec bits. */
>  #endif
>  
>  #ifdef __USE_GNU

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

* Re: [PATCH v2] Add F_SEAL_EXEC from Linux 6.3 to bits/fcntl-linux.h.
  2023-08-25  2:31 ` [PATCH v2] " Kir Kolyshkin
  2023-08-28 17:41   ` Adhemerval Zanella Netto
@ 2023-09-08 15:07   ` Francis Laniel
  1 sibling, 0 replies; 4+ messages in thread
From: Francis Laniel @ 2023-09-08 15:07 UTC (permalink / raw)
  To: libc-alpha; +Cc: Kir Kolyshkin

Hi.


Le vendredi 25 août 2023, 04:31:40 CEST Kir Kolyshkin via Libc-alpha a écrit :
> This patch adds the new F_SEAL_EXEC constant from Linux 6.3 (see Linux
> commit 6fd7353829c ("mm/memfd: add F_SEAL_EXEC") to bits/fcntl-linux.h.
> 
> [v2: fix comment]
> 
> Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
> ---
>  sysdeps/unix/sysv/linux/bits/fcntl-linux.h | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
> b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h index 1babbdc84e..df378c7b89
> 100644
> --- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
> +++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
> @@ -286,6 +286,7 @@ struct f_owner_ex
>  # define F_SEAL_WRITE	0x0008	/* Prevent writes.  */
>  # define F_SEAL_FUTURE_WRITE	0x0010	/* Prevent future writes while
>  					   mapped.  */
> +# define F_SEAL_EXEC	0x0020	/* Prevent chmod modifying exec bits. */
>  #endif
> 
>  #ifdef __USE_GNU

Thank you for the patch!

Reviewed-by: Francis Laniel <flaniel@linux.microsoft.com>


Best regards.



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

end of thread, other threads:[~2023-09-08 15:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-24 20:36 [PATCH] Add F_SEAL_EXEC from Linux 6.3 to bits/fcntl-linux.h Kir Kolyshkin
2023-08-25  2:31 ` [PATCH v2] " Kir Kolyshkin
2023-08-28 17:41   ` Adhemerval Zanella Netto
2023-09-08 15:07   ` Francis Laniel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).