Message ID | 20230822152922.151444-3-flaniel@linux.microsoft.com |
---|---|
State | New |
Headers | show |
Series | Add F_SEAL_EXEC | expand |
On 22/08/23 12:29, Francis Laniel via Libc-alpha wrote: > This patch adds the new F_SEAL_EXEC constant from Linux 5.3 to > bits/fcntl-linux.h [1]. > > Signed-off-by: Francis Laniel <flaniel@linux.microsoft.com> > [1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6fd7353829ca LGTM, although you have send two patches with same contents but with different subjects. > --- > 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..d1e8c9cee8 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 modifying exec bits. */ > #endif > > #ifdef __USE_GNU
diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h index 1babbdc84e..d1e8c9cee8 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 modifying exec bits. */ #endif #ifdef __USE_GNU
This patch adds the new F_SEAL_EXEC constant from Linux 5.3 to bits/fcntl-linux.h [1]. Signed-off-by: Francis Laniel <flaniel@linux.microsoft.com> [1]: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=6fd7353829ca --- sysdeps/unix/sysv/linux/bits/fcntl-linux.h | 1 + 1 file changed, 1 insertion(+)