What if non-root could see their own processes in detail, but only the program name for other users' processes?
Would that break a lot of other things?
What if non-root could see their own processes in detail, but only the program name for other users' processes?
Would that break a lot of other things?
Individual units can opt-in to this behaviour with the ProtectProc= option though. But I don't think there's currently a good way to apply it to users' interactive processes.
https://www.cyberciti.biz/faq/linux-hide-processes-from-othe...
Biggest surprise is that people can't run top/ps to see where load is coming from, but that aside I never noticed any particular downsides.
sudo mount -o remount,hidepid=1 /proc
At which point you might as well ask why do you need to see other users processes at all? And indeed, that is an option in grsec. I don't think it causes any major breakage, but there are probably some xkcd #1172 sort of things that break.
edit: apparently there is nowdays also options in mainline for that too: https://pipo.blog/articles/20130930-hidepid-process-hiding and also possibly with selinux?