selinux: Add IB Port SMP access vector
authorDaniel Jurgens <danielj@mellanox.com>
Fri, 19 May 2017 12:48:58 +0000 (15:48 +0300)
committerPaul Moore <paul@paul-moore.com>
Tue, 23 May 2017 16:28:02 +0000 (12:28 -0400)
commitab861dfca1652aa09b26b7aa2899feb29b33dfd9
treef67494faf93d675ed39ffd4e19c755c4f50d0251
parentcfc4d882d41780d93471066d57d4630995427b29
selinux: Add IB Port SMP access vector

Add a type for Infiniband ports and an access vector for subnet
management packets. Implement the ib_port_smp hook to check that the
caller has permission to send and receive SMPs on the end port specified
by the device name and port. Add interface to query the SID for a IB
port, which walks the IB_PORT ocontexts to find an entry for the
given name and port.

Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Reviewed-by: James Morris <james.l.morris@oracle.com>
Acked-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
include/linux/lsm_audit.h
security/lsm_audit.c
security/selinux/hooks.c
security/selinux/include/classmap.h
security/selinux/include/security.h
security/selinux/ss/services.c