summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-05-16 18:46:16 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-05-16 18:46:16 +0900
commit8e3303333faabadfff1c48935e21f7fd6d1b832e (patch)
tree972788a1c435f982210866f0ea8a9c376a49014a /src
parentf44744ff5120482e8a1f6222f091bd97dc65ed85 (diff)
downloadsystemd-8e3303333faabadfff1c48935e21f7fd6d1b832e.tar.gz
missing: add more F_SEAL_XYZ flags
Diffstat (limited to 'src')
-rw-r--r--src/basic/missing_fcntl.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/basic/missing_fcntl.h b/src/basic/missing_fcntl.h
index 79e95a8f6f..24b2dc3119 100644
--- a/src/basic/missing_fcntl.h
+++ b/src/basic/missing_fcntl.h
@@ -25,6 +25,14 @@
#define F_SEAL_WRITE 0x0008 /* prevent writes */
#endif
+#ifndef F_SEAL_FUTURE_WRITE
+#define F_SEAL_FUTURE_WRITE 0x0010 /* prevent future writes while mapped */
+#endif
+
+#ifndef F_SEAL_EXEC
+#define F_SEAL_EXEC 0x0020 /* prevent chmod modifying exec bits */
+#endif
+
#ifndef F_OFD_GETLK
#define F_OFD_GETLK 36
#define F_OFD_SETLK 37