mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git
synced 2026-04-18 06:34:27 -04:00
debugfs: Remove broken no-mount mode
debugfs access modes were added in Linux 5.10 (Dec 2020) [1], but the no-mount mode has behaved effectively the same as the off mode since Linux 5.12 (Apr 2021) [2]. The only difference is the specific error code returned by the debugfs_create_* functions, which is -ENOENT in no-mount mode and -EPERM in off mode. Given that no-mount hasn't worked for several years with no complaints, just remove it. [1]a24c6f7bc9("debugfs: Add access restriction option") [2]bc6de804d3("debugfs: be more robust at handling improper input in debugfs_lookup()")56348560d4("debugfs: do not attempt to create a new file before the filesystem is initalized") Signed-off-by: Aaron Thompson <dev@aaront.org> Link: https://patch.msgid.link/20251120102222.18371-3-dev@null.aaront.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
3ae94a55d0
commit
f278809475
@@ -679,7 +679,7 @@ choice
|
||||
help
|
||||
This selects the default access restrictions for debugfs.
|
||||
It can be overridden with kernel command line option
|
||||
debugfs=[on,no-mount,off]. The restrictions apply for API access
|
||||
debugfs=[on,off]. The restrictions apply for API access
|
||||
and filesystem registration.
|
||||
|
||||
config DEBUG_FS_ALLOW_ALL
|
||||
@@ -688,13 +688,6 @@ config DEBUG_FS_ALLOW_ALL
|
||||
No restrictions apply. Both API and filesystem registration
|
||||
is on. This is the normal default operation.
|
||||
|
||||
config DEBUG_FS_DISALLOW_MOUNT
|
||||
bool "Do not register debugfs as filesystem"
|
||||
help
|
||||
The API is open but filesystem is not loaded. Clients can still do
|
||||
their work and read with debug tools that do not need
|
||||
debugfs filesystem.
|
||||
|
||||
config DEBUG_FS_ALLOW_NONE
|
||||
bool "No access"
|
||||
help
|
||||
|
||||
Reference in New Issue
Block a user