• Andrew Morton's avatar
    [PATCH] Process Attribute API for Security Modules · ea7870c8
    Andrew Morton authored
    From: Stephen Smalley <sds@epoch.ncsc.mil>
    
    This updated patch against 2.5.69 merges the readdir and lookup routines
    for proc_base and proc_attr, fixes the copy_to_user call in proc_attr_read
    and proc_info_read, moves the new data and code within CONFIG_SECURITY, and
    uses ARRAY_SIZE, per the comments from Al Viro and Andrew Morton.  As
    before, this patch implements a process attribute API for security modules
    via a set of nodes in a /proc/pid/attr directory.  Credit for the idea of
    implementing this API via /proc/pid/attr nodes goes to Al Viro.  Jan Harkes
    provided a nice cleanup of the implementation to reduce the code bloat.
    ea7870c8
base.c 31.6 KB