r/linuxfromscratch • • Jan 07 '21
Build the Linux Kernel Without /proc Access
Is there any way to build the Linux kernel without access to the filesystem /proc like on OpenBSD? If so, how can I maintain a proper /etc/mtab without /proc symlinks?
The Answer
Nope! Unlike OpenBSD Linux has been built around /proc (which is concerning seeing as you can brick the system with echo ._.) so you need to use SELinux (which is good cause I like it). Gonna see if there is anyway to nuke specific subdirecties within /proc tho.
7
Upvotes
View all comments
Show parent comment
3
u/[deleted] Jan 08 '21
Eh it gives and takes. I will likely have to message the kernel mailing list about building without specific dirs in /proc. It just depends on the question.