]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit - config/kernel/kernel.config.x86_64-ipfire
kernel: Disable CONFIG_DEBUG_FS
authorPeter Müller <peter.mueller@ipfire.org>
Sat, 17 Sep 2022 19:24:46 +0000 (19:24 +0000)
committerPeter Müller <peter.mueller@ipfire.org>
Tue, 20 Sep 2022 10:33:11 +0000 (10:33 +0000)
commit12d339e725cf093947c2d0243a724e014d5ef8d4
treed457e60ffd3609271a2f6ea09f166e79fe1c42ce
parentae49226866aef4b8ec700be2e739871c694d55c8
kernel: Disable CONFIG_DEBUG_FS

According to the kernel's documentation,

> debugfs is a virtual file system that kernel developers use to put
> debugging files into. Enable this option to be able to read and
> write to these files.

There is no legitimate reason why one has to do so on an IPFire machine.
Further, the vast debugging options (i.e. related to various drivers)
have never been enabled, limiting the use of this virtual file system
even further.

This patch therefore proposes to disable it entirely, since its
potential security impact outweights its benefits. Due to operational
constraints, changes to ARM kernel configurations will be made if this
patch is approved for x86_64.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
config/kernel/kernel.config.x86_64-ipfire