Re: [PATCH][RFC] Apply umask to /proc/<pid>
From: Paul Jackson
Date: Sun Mar 13 2005 - 00:15:52 EST
> patch below makes procfs apply the umask of the processes to their
> respective /proc/<pid> directories and the files below them.
Since there are already various umask settings done by various
/etc/*profile* and /etc/*init* scripts that head up various logins and
task families, this means that the default visibility of tasks in ps and
top will change. I predict confusion and frustration, when people don't
know why portions of ps or top output are suppressed.
And even when they figure it out, you don't give them anyway to get back
to the previous state - of visibility in ps, top and pstree, but file
creation permissions masked off in some way.
Nice small patch ... but I don't like overloading umask with this.
I won't rest till it's the best ...
Programmer, Linux Scalability
Paul Jackson <pj@xxxxxxxxxxxx> 1.650.933.1373, 1.925.600.0401
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/