Messages in this thread | | | Date | Mon, 1 Dec 2014 10:36:04 -0800 | Subject | Re: frequent lockups in 3.18rc4 | From | Linus Torvalds <> |
| |
On Mon, Dec 1, 2014 at 10:25 AM, Kirill A. Shutemov <kirill@shutemov.name> wrote: > > No idea about oom_score, but kernel happily accepts chmod on any file > under /proc/PID/net/.
/proc used to accept that fairly widely, but no, we tightened things down, and core /proc files end up not accepting chmod. See 'proc_setattr()':
if (attr->ia_valid & ATTR_MODE) return -EPERM;
although particular /proc files could choose to not use 'proc_setattr' if they want to.
The '/proc/pid/net' subtree is obviously not doing that. No idea why, and probably for no good reason.
Linus
| |