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
6262 */
6363 __u64 allowed_access;
6464 /**
65− * @parent_fd: File descriptor, open with ``O_PATH``, which identifies
66− * the parent directory of a file hierarchy, or just a file.
65+ * @parent_fd: File descriptor, preferably opened with ``O_PATH``,
66+ * which identifies the parent directory of a file hierarchy, or just a
67+ * file.
6768 */
6869 __s32 parent_fd;
6970 /*