• Kees Cook's avatar
    proc: report no_new_privs state · af884cd4
    Kees Cook authored
    Similar to being able to examine if a process has been correctly
    confined with seccomp, the state of no_new_privs is equally interesting,
    so this adds it to /proc/$pid/status.
    
    Link: http://lkml.kernel.org/r/20161103214041.GA58566@beastSigned-off-by: default avatarKees Cook <keescook@chromium.org>
    Reviewed-by: default avatarJann Horn <jann@thejh.net>
    Cc: Jonathan Corbet <corbet@lwn.net>
    Cc: Vlastimil Babka <vbabka@suse.cz>
    Cc: Michal Hocko <mhocko@suse.com>
    Cc: Konstantin Khlebnikov <koct9i@gmail.com>
    Cc: Hugh Dickins <hughd@google.com>
    Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
    Cc: Rodrigo Freire <rfreire@redhat.com>
    Cc: John Stultz <john.stultz@linaro.org>
    Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
    Cc: Robert Ho <robert.hu@intel.com>
    Cc: Jerome Marchand <jmarchan@redhat.com>
    Cc: Andy Lutomirski <luto@kernel.org>
    Cc: Johannes Weiner <hannes@cmpxchg.org>
    Cc: Alexey Dobriyan <adobriyan@gmail.com>
    Cc: "Richard W.M. Jones" <rjones@redhat.com>
    Cc: Joe Perches <joe@perches.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    af884cd4
array.c 19.8 KB