Landlock Abi Versioning

File system access rights

Access right Value 1 2 3 4 5 6
LANDLOCK_ACCESS_FS_EXECUTE (1ULL << 0)
LANDLOCK_ACCESS_FS_WRITE_FILE (1ULL << 1)
LANDLOCK_ACCESS_FS_READ_FILE (1ULL << 2)
LANDLOCK_ACCESS_FS_READ_DIR (1ULL << 3)
LANDLOCK_ACCESS_FS_REMOVE_DIR (1ULL << 4)
LANDLOCK_ACCESS_FS_REMOVE_FILE (1ULL << 5)
LANDLOCK_ACCESS_FS_MAKE_CHAR (1ULL << 6)
LANDLOCK_ACCESS_FS_MAKE_DIR (1ULL << 7)
LANDLOCK_ACCESS_FS_MAKE_REG (1ULL << 8)
LANDLOCK_ACCESS_FS_MAKE_SOCK (1ULL << 9)
LANDLOCK_ACCESS_FS_MAKE_FIFO (1ULL << 10)
LANDLOCK_ACCESS_FS_MAKE_BLOCK (1ULL << 11)
LANDLOCK_ACCESS_FS_MAKE_SYM (1ULL << 12)
LANDLOCK_ACCESS_FS_REFER (1ULL << 13)
LANDLOCK_ACCESS_FS_TRUNCATE (1ULL << 14)
LANDLOCK_ACCESS_FS_IOCTL_DEV (1ULL << 15)

Network access rights

Access right Value 1 2 3 4 5 6
LANDLOCK_ACCESS_NET_BIND_TCP (1ULL << 0)
LANDLOCK_ACCESS_NET_CONNECT_TCP (1ULL << 1)

Scoped restrictions

Scoped restriction Value 1 2 3 4 5 6
LANDLOCK_SCOPED_ABSTRACT_UNIX_SOCKET (1ULL << 0)
LANDLOCK_SCOPED_SIGNAL (1ULL << 1)