Merge pull request #5191 from kolyshkin/unix

libct/exeseal: drop own F_SEAL_EXEC
This commit is contained in:
lfbzhm
2026-03-21 19:55:16 +08:00
committed by GitHub
+1 -2
View File
@@ -54,8 +54,7 @@ func sealMemfd(f **os.File) error {
// 05d351102dbe and <https://github.com/opencontainers/runc/pull/4640>).
// F_SEAL_EXEC -- Linux 6.3
const F_SEAL_EXEC = 0x20 //nolint:revive // this matches the unix.* name
_, _ = unix.FcntlInt(fd, unix.F_ADD_SEALS, F_SEAL_EXEC)
_, _ = unix.FcntlInt(fd, unix.F_ADD_SEALS, unix.F_SEAL_EXEC)
// Apply all original memfd seals.
_, err := unix.FcntlInt(fd, unix.F_ADD_SEALS, baseMemfdSeals)