landlock: Fix landlock_add_rule(2) documentation
authorMickaël Salaün <mic@digikod.net>
Fri, 6 May 2022 16:08:11 +0000 (18:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jun 2022 08:23:23 +0000 (10:23 +0200)
commite42fd07755364329c99e51d069d2daa96df77ed7
tree804d8e966593ca76a009167fde10909e45cb7711
parentef350611729b946e8e793d1ebe667cb9411a5d2e
landlock: Fix landlock_add_rule(2) documentation

commit a13e248ff90e81e9322406c0e618cf2168702f4e upstream.

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

Link: https://lore.kernel.org/r/20220506160820.524344-2-mic@digikod.net
Cc: stable@vger.kernel.org
Signed-off-by: Mickaël Salaün <mic@digikod.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/uapi/linux/landlock.h
security/landlock/syscalls.c