mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
libct/exeseal: drop own F_SEAL_EXEC
Since golang.org/x/sys@v0.22 it is available from unix. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -54,8 +54,7 @@ func sealMemfd(f **os.File) error {
|
|||||||
// 05d351102dbe and <https://github.com/opencontainers/runc/pull/4640>).
|
// 05d351102dbe and <https://github.com/opencontainers/runc/pull/4640>).
|
||||||
|
|
||||||
// F_SEAL_EXEC -- Linux 6.3
|
// 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, unix.F_SEAL_EXEC)
|
||||||
_, _ = unix.FcntlInt(fd, unix.F_ADD_SEALS, F_SEAL_EXEC)
|
|
||||||
|
|
||||||
// Apply all original memfd seals.
|
// Apply all original memfd seals.
|
||||||
_, err := unix.FcntlInt(fd, unix.F_ADD_SEALS, baseMemfdSeals)
|
_, err := unix.FcntlInt(fd, unix.F_ADD_SEALS, baseMemfdSeals)
|
||||||
|
|||||||
Reference in New Issue
Block a user