Lines Matching +full:2 +full:a
24 * rule explicitly allow them: it is a deny-by-default list that should
53 * @LANDLOCK_RULE_PATH_BENEATH: Type of a &struct
72 * which identifies the parent directory of a file hierarchy, or just a
85 * A set of actions on kernel objects may be defined by an attribute (e.g.
86 * &struct landlock_path_beneath_attr) including a bitmask of access.
91 * These flags enable to restrict a sandboxed process to a set of actions on
95 * A file can only receive these access rights:
97 * - %LANDLOCK_ACCESS_FS_EXECUTE: Execute a file.
98 * - %LANDLOCK_ACCESS_FS_WRITE_FILE: Open a file with write access. Note that
100 * to overwrite files with :manpage:`open(2)` using ``O_TRUNC`` or
101 * :manpage:`creat(2)`.
102 * - %LANDLOCK_ACCESS_FS_READ_FILE: Open a file with read access.
103 * - %LANDLOCK_ACCESS_FS_TRUNCATE: Truncate a file with :manpage:`truncate(2)`,
104 * :manpage:`ftruncate(2)`, :manpage:`creat(2)`, or :manpage:`open(2)` with
106 * :manpage:`ftruncate(2)` is determined during :manpage:`open(2)`, in the
108 * :manpage:`open(2)` using %LANDLOCK_ACCESS_FS_READ_FILE and
112 * A directory can receive access rights related to files or directories. The
116 * - %LANDLOCK_ACCESS_FS_READ_DIR: Open a directory or list its content.
118 * However, the following access rights only apply to the content of a
122 * - %LANDLOCK_ACCESS_FS_REMOVE_FILE: Unlink (or rename) a file.
123 * - %LANDLOCK_ACCESS_FS_MAKE_CHAR: Create (or rename or link) a character
125 * - %LANDLOCK_ACCESS_FS_MAKE_DIR: Create (or rename) a directory.
126 * - %LANDLOCK_ACCESS_FS_MAKE_REG: Create (or rename or link) a regular file.
127 * - %LANDLOCK_ACCESS_FS_MAKE_SOCK: Create (or rename or link) a UNIX domain
129 * - %LANDLOCK_ACCESS_FS_MAKE_FIFO: Create (or rename or link) a named pipe.
130 * - %LANDLOCK_ACCESS_FS_MAKE_BLOCK: Create (or rename or link) a block device.
131 * - %LANDLOCK_ACCESS_FS_MAKE_SYM: Create (or rename or link) a symbolic link.
132 * - %LANDLOCK_ACCESS_FS_REFER: Link or rename a file from or to a different
133 * directory (i.e. reparent a file hierarchy).
140 * The only way to make a ruleset grant this right is to explicitly allow it
141 * for a specific directory by adding a matching rule to the ruleset.
168 * accessible through these syscall families: :manpage:`chdir(2)`,
169 * :manpage:`stat(2)`, :manpage:`flock(2)`, :manpage:`chmod(2)`,
170 * :manpage:`chown(2)`, :manpage:`setxattr(2)`, :manpage:`utime(2)`,
171 * :manpage:`ioctl(2)`, :manpage:`fcntl(2)`, :manpage:`access(2)`.
177 #define LANDLOCK_ACCESS_FS_READ_FILE (1ULL << 2)