0
0
mirror of https://mirrors.bfsu.edu.cn/git/linux.git synced 2024-12-14 06:24:53 +08:00
linux/security/landlock
Christian Brauner aea0b9f248
landlock: Use square brackets around "landlock-ruleset"
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 ]")
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>
2022-02-04 14:07:44 +01: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
Kconfig 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
Makefile landlock: Add syscall implementations 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-02-04 14:07:44 +01:00