History

landlock: Fix landlock_add_rule(2) documentation

It is not mandatory to pass a file descriptor obtained with the O_PATH flag. Also, replace rule's accesses with ruleset's accesses.

Mickaël Salaün committed 4 years ago

Commit a13e2481 parent 81709f32 files · +6 −6Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/landlock.h+3−2
@@ -62,8 +62,9 @@ struct landlock_path_beneath_attr { · 61 unmodified lines
62 */62 */
63 __u64 allowed_access;63 __u64 allowed_access;
64 /**64 /**
65 * @parent_fd: File descriptor, open with ``O_PATH``, which identifies65 * @parent_fd: File descriptor, preferably opened with ``O_PATH``,
66 * the parent directory of a file hierarchy, or just a file.66 * which identifies the parent directory of a file hierarchy, or just a
67 * file.
67 */68 */
68 __s32 parent_fd;69 __s32 parent_fd;
69 /*70 /*