]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
missing: add more F_SEAL_XYZ flags
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 16 May 2023 09:46:16 +0000 (18:46 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 16 May 2023 09:46:16 +0000 (18:46 +0900)
src/basic/missing_fcntl.h

index 79e95a8f6fda9e0839ea21130f2d0dc60d86110b..24b2dc31192752aab89a035517aaabd080fb47db 100644 (file)
 #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