Replies: 1 comment 4 replies
-
First we have to split proc into two parts:
Nowadays kernel modules use sysfs if they need a apifs for systemwide things. It has a better/easier api in the kernel and is future proof. So system information in /proc root are a legacy thing caused by the initial days of Linux (and others) and are there to stay forever. System information files are created during mount simplified. The process information directories however are created dynamically on fork/clone/exit/... simplified. If your program only needs
What do you mean? Do you use some scary third-party modules? |
Beta Was this translation helpful? Give feedback.
-
Currently, the /proc tree can only be restricted by blacklisting individual paths. But with a blacklist, there's the risk that some kernel modules expose some sensitive information in nonstandard /proc/ files, so I'd rather whitelist the files that I know the application needs, rather than risking to give access to unforeseen files.
What is the reason for not allowing whitelisting on proc?
Beta Was this translation helpful? Give feedback.
All reactions