• P
    lsm: split the xfrm_state_alloc_security() hook implementation · 2e5aa866
    Paul Moore 提交于
    The xfrm_state_alloc_security() LSM hook implementation is really a
    multiplexed hook with two different behaviors depending on the
    arguments passed to it by the caller.  This patch splits the LSM hook
    implementation into two new hook implementations, which match the
    LSM hooks in the rest of the kernel:
    
     * xfrm_state_alloc
     * xfrm_state_alloc_acquire
    
    Also included in this patch are the necessary changes to the SELinux
    code; no other LSMs are affected.
    Signed-off-by: NPaul Moore <pmoore@redhat.com>
    Signed-off-by: NEric Paris <eparis@redhat.com>
    2e5aa866
capability.c 24.1 KB