lkml.org 
[lkml]   [2014]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: frequent lockups in 3.18rc4
    From
    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


    \
     
     \ /
      Last update: 2014-12-01 20:01    [W:4.332 / U:0.060 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site