std.os.linux: add F_SEAL constants to F struct

Add the missing F_SEAL_SEAL, F_SEAL_SHRINK, F_SEAL_GROW, F_SEAL_WRITE,
F_SEAL_FUTURE_WRITE, and F_SEAL_EXEC constants used with
F.ADD_SEALS/F.GET_SEALS for memfd file sealing. These are defined in the
Linux kernel at include/uapi/linux/fcntl.h.

The FreeBSD equivalents already exist in std.c (freebsd.F),
but the Linux side was missing them.
This commit is contained in:
Ben Buhse 2026-02-07 16:21:42 -06:00 committed by Alex Rønne Petersen
parent 703df73f38
commit 52a6242443

View file

@ -1862,6 +1862,14 @@ pub const F = struct {
pub const GETPIPE_SZ = LINUX_SPECIFIC_BASE + 8;
pub const ADD_SEALS = LINUX_SPECIFIC_BASE + 9;
pub const GET_SEALS = LINUX_SPECIFIC_BASE + 10;
pub const SEAL_SEAL = 0x0001;
pub const SEAL_SHRINK = 0x0002;
pub const SEAL_GROW = 0x0004;
pub const SEAL_WRITE = 0x0008;
pub const SEAL_FUTURE_WRITE = 0x0010;
pub const SEAL_EXEC = 0x0020;
pub const GET_RW_HINT = LINUX_SPECIFIC_BASE + 11;
pub const SET_RW_HINT = LINUX_SPECIFIC_BASE + 12;
pub const GET_FILE_RW_HINT = LINUX_SPECIFIC_BASE + 13;