aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2019-05-23 13:20:48 +0000
committerJoseph Myers <joseph@codesourcery.com>2019-05-23 13:20:48 +0000
commitbee1f2c413ef0cf99d25f898fa0eb0d41fb71dc5 (patch)
tree4ee1d8b649ab762ad164c64cf2ee393b1dafff2e
parent481c30cb9573a280649fbf27251e6a0f4af1b2b1 (diff)
downloadglibc-bee1f2c413ef0cf99d25f898fa0eb0d41fb71dc5.tar.gz
glibc-bee1f2c413ef0cf99d25f898fa0eb0d41fb71dc5.tar.xz
glibc-bee1f2c413ef0cf99d25f898fa0eb0d41fb71dc5.zip
Add F_SEAL_FUTURE_WRITE from Linux 5.1 to bits/fcntl-linux.h.
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.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/unix/sysv/linux/bits/fcntl-linux.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 8ea94b6eb1a..5f21fe463a9 100644
--- 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.
diff --git a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
index 4b4d6f7ae54..3f32eb328b1 100644
--- a/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
+++ b/sysdeps/unix/sysv/linux/bits/fcntl-linux.h
@@ -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