Skip to content

Commit f597c68

Browse files
committed
nixos/boot/systemd: enable tracefs
tracefs is a special-purpose filesystem in Linux used for tracing filesystem and kernel operations. This was added to the kernel back in 2015 to replace debugfs. For security reasons, some system do not mount debugfs at all. Tracefs reduces the attack surface by allowing to trace without mounting debugfs. Additionally it provides features not supported by debugfs (such as calls for mkdir and rmdir Debian and Arch Linux both enable this by default. RHEL 8 and later, they enable tracefs by default. Signed-off-by: John Titor <[email protected]>
1 parent 77172a8 commit f597c68

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nixos/modules/system/boot/systemd.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ let
8888
"sys-fs-fuse-connections.mount"
8989
] ++ (optional (!config.boot.isContainer) "sys-kernel-config.mount") ++ [
9090
"sys-kernel-debug.mount"
91+
"sys-kernel-tracing.mount"
9192

9293
# Maintaining state across reboots.
9394
"systemd-random-seed.service"

0 commit comments

Comments
 (0)