WSL2-Linux-Kernel/security/landlock
Christian Brauner 3d4b396a61 landlock: Use square brackets around "landlock-ruleset"
commit aea0b9f248 upstream.

Make the name of the anon inode fd "[landlock-ruleset]" instead of
"landlock-ruleset". This is minor but most anon inode fds already
carry square brackets around their name:

    [eventfd]
    [eventpoll]
    [fanotify]
    [fscontext]
    [io_uring]
    [pidfd]
    [signalfd]
    [timerfd]
    [userfaultfd]

For the sake of consistency lets do the same for the landlock-ruleset anon
inode fd that comes with landlock. We did the same in
1cdc415f10 ("uapi, fsopen: use square brackets around "fscontext" [ver #2]")
for the new mount api.

Cc: linux-security-module@vger.kernel.org
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
Link: https://lore.kernel.org/r/20211011133704.1704369-1-brauner@kernel.org
Cc: stable@vger.kernel.org
Signed-off-by: Mickaël Salaün <mic@linux.microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-08 14:22:59 +02:00
..
Kconfig landlock: Support filesystem access-control 2021-04-22 12:22:11 -07:00
Makefile landlock: Add syscall implementations 2021-04-22 12:22:11 -07:00
common.h landlock: Set up the security framework and manage credentials 2021-04-22 12:22:10 -07:00
cred.c landlock: Set up the security framework and manage credentials 2021-04-22 12:22:10 -07:00
cred.h landlock: Set up the security framework and manage credentials 2021-04-22 12:22:10 -07:00
fs.c landlock: Support filesystem access-control 2021-04-22 12:22:11 -07:00
fs.h landlock: Support filesystem access-control 2021-04-22 12:22:11 -07:00
limits.h landlock: Support filesystem access-control 2021-04-22 12:22:11 -07:00
object.c
object.h
ptrace.c landlock: Add ptrace restrictions 2021-04-22 12:22:10 -07:00
ptrace.h landlock: Add ptrace restrictions 2021-04-22 12:22:10 -07:00
ruleset.c landlock: Support filesystem access-control 2021-04-22 12:22:11 -07:00
ruleset.h landlock: Add ruleset and domain management 2021-04-22 12:22:10 -07:00
setup.c landlock: Support filesystem access-control 2021-04-22 12:22:11 -07:00
setup.h landlock: Support filesystem access-control 2021-04-22 12:22:11 -07:00
syscalls.c landlock: Use square brackets around "landlock-ruleset" 2022-04-08 14:22:59 +02:00