Skip to content

[redhat] New configs in lib/Kconfig.debug

Jeremy Cline requested to merge configs/2020-08-13/lib/Kconfig.debug into os-build

Hi,

As part of the ongoing rebase effort, the following configuration options need to be reviewed.

As a reminder, the ARK configuration flow involves moving unreviewed configuration options from the pending directory to the ark directory. In the diff below, options are removed from the pending directory and added to the ark hierarchy. The final options that need to be ACKed are the files that are being added to the ark hierarchy.

If the value for a file that is added should be changed, please reply with a better option.

CONFIG_DEBUG_FS_ALLOW_ALL:

No restrictions apply. Both API and filesystem registration is on. This is the normal default operation.

Symbol: DEBUG_FS_ALLOW_ALL [=y] Type : bool Defined at lib/Kconfig.debug:500 Prompt: Access normal Depends on: Location: -> Kernel hacking -> Generic Kernel Debugging Instruments -> Debug Filesystem (DEBUG_FS [=y]) -> Debugfs default access ( [=y])


CONFIG_DEBUG_FS_ALLOW_NONE:

Access is off. Clients get -PERM when trying to create nodes in debugfs tree and debugfs is not registered as a filesystem. Client can then back-off or continue without debugfs access.

Symbol: DEBUG_FS_ALLOW_NONE [=n] Type : bool Defined at lib/Kconfig.debug:513 Prompt: No access Depends on: Location: -> Kernel hacking -> Generic Kernel Debugging Instruments -> Debug Filesystem (DEBUG_FS [=y]) -> Debugfs default access ( [=y])


CONFIG_DEBUG_FS_DISALLOW_MOUNT:

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.

Symbol: DEBUG_FS_DISALLOW_MOUNT [=n] Type : bool Defined at lib/Kconfig.debug:506 Prompt: Do not register debugfs as filesystem Depends on: Location: -> Kernel hacking -> Generic Kernel Debugging Instruments -> Debug Filesystem (DEBUG_FS [=y]) -> Debugfs default access ( [=y])


Cc: Prarit Bhargava prarit@redhat.com Signed-off-by: Fedora Kernel Team kernel-team@fedoraproject.org

Edited by Patrick Talbert

Merge request reports