From 4b796d506f4fa0085d95990e220142a6402480f5 Mon Sep 17 00:00:00 2001 From: Francis Laniel Date: Mon, 21 Aug 2023 15:59:00 +0200 Subject: [PATCH] unix/linux: add F_SEAL_EXEC This flag, added in kernel 6.3, is used to forbid future modifications of a file exec bit [1]. Signed-off-by: Francis Laniel [1]: https://github.com/torvalds/linux/commit/6fd7353829ca --- unix/zerrors_linux.go | 1 + 1 file changed, 1 insertion(+) diff --git a/unix/zerrors_linux.go b/unix/zerrors_linux.go index 398c37e52..44fbcca4a 100644 --- a/unix/zerrors_linux.go +++ b/unix/zerrors_linux.go @@ -1329,6 +1329,7 @@ const ( F_OFD_SETLK = 0x25 F_OFD_SETLKW = 0x26 F_OK = 0x0 + F_SEAL_EXEC = 0x20 F_SEAL_FUTURE_WRITE = 0x10 F_SEAL_GROW = 0x4 F_SEAL_SEAL = 0x1