• Casey Schaufler's avatar
    Smack: UDS revision · b4e0d5f0
    Casey Schaufler authored
    This patch addresses a number of long standing issues
        with the way Smack treats UNIX domain sockets.
    
        All access control was being done based on the label of
        the file system object. This is inconsistant with the
        internet domain, in which access is done based on the
        IPIN and IPOUT attributes of the socket. As a result
        of the inode label policy it was not possible to use
        a UDS socket for label cognizant services, including
        dbus and the X11 server.
    
        Support for SCM_PEERSEC on UDS sockets is also provided.
    Signed-off-by: default avatarCasey Schaufler <casey@schaufler-ca.com>
    Signed-off-by: default avatarJames Morris <jmorris@namei.org>
    b4e0d5f0
smack_lsm.c 76.3 KB