Skip to contentSkip to conversation

Apply umask to /proc/<pid>

RFC PATCH Bodo Eggert 1 participant 1 message Mar 13, 2005 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 4 lines · Rene Scharfe

patch below makes procfs apply the umask of the processes to their respective /proc/<pid> directories and the files below them. That allows users to gain a bit of privacy by setting a restrictive umask in their profiles.

A [ur]limit-like value is fine, but allowing others to read the files you put into a public directory should not imply giving up your privacy.