]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add F_SEAL_FUTURE_WRITE from Linux 5.1 to bits/fcntl-linux.h.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 23 May 2019 13:20:48 +0000 (13:20 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 23 May 2019 13:20:48 +0000 (13:20 +0000)
This patch adds the new F_SEAL_FUTURE_WRITE constant from Linux 5.1 to
bits/fcntl-linux.h.

Tested for x86_64.

* sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
(F_SEAL_FUTURE_WRITE): New macro.

ChangeLog
sysdeps/unix/sysv/linux/bits/fcntl-linux.h

index 8ea94b6eb1ae510a0488d8fc9d2164c57a524bf9..5f21fe463a914a24f71468c746dbb8fac87d1780 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2019-05-23  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/unix/sysv/linux/bits/fcntl-linux.h [__USE_GNU]
+       (F_SEAL_FUTURE_WRITE): New macro.
+
 2019-05-23 Alexandra Hajkova  <ahajkova@redhat.com>
 
        * elf/Makefile (test-container): Add tst-ldconfig-bad-aux-cache.
index 4b4d6f7ae54be22b2a6c49bf2ae44579ee5506e6..3f32eb328b13f5b3d76338cbb59ccd661b3ff313 100644 (file)
@@ -284,6 +284,8 @@ struct f_owner_ex
 # define F_SEAL_SHRINK 0x0002  /* Prevent file from shrinking.  */
 # define F_SEAL_GROW   0x0004  /* Prevent file from growing.  */
 # define F_SEAL_WRITE  0x0008  /* Prevent writes.  */
+# define F_SEAL_FUTURE_WRITE   0x0010  /* Prevent future writes while
+                                          mapped.  */
 #endif
 
 #ifdef __USE_GNU