Skip to content

Automatic mounting of /sys/kernel/debug #654

Answered by vapier
Strahinja asked this question in Q&A
Discussion options

You must be logged in to vote

the RH bug is about systemd setting up automounters. OpenRC doesn't do that. it just mounts debugfs. not exactly the same. OpenRC doesnt do anything with tracefs.

OpenRC has always mounted debugfs if it's enabled in the kernel (see Apr 2007 d2c112e). Linux used to mount with 0755 perms by default until linux-3.7 (commit 82aceae4f0d42f03d9ad7d1e90389e731153898f in Aug 2012) when it switched to 0700. so the behavior you describe wrt mounting certainly is nothing new, and basically no one is complaining. if you don't want it mounted at all, don't enable CONFIG_DEBUG_FS in your kernel.

the /sys/kernel/debug/tracing behavior is new and is a kernel thing with tracefs. i think they've been bounc…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Strahinja
Comment options

Answer selected by Strahinja
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants