]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - security/security.c
selinux lsm IB/core: Implement LSM notification system
authorDaniel Jurgens <danielj@mellanox.com>
Fri, 19 May 2017 12:48:53 +0000 (15:48 +0300)
committerPaul Moore <paul@paul-moore.com>
Tue, 23 May 2017 16:27:11 +0000 (12:27 -0400)
commit8f408ab64be6319cb7736cbc6982838dcc362306
treefa7169e96ad81ac38d6d78ac03668196dde902c4
parentd291f1a6523292d916fe1659c67f6db061fbd1b5
selinux lsm IB/core: Implement LSM notification system

Add a generic notificaiton mechanism in the LSM. Interested consumers
can register a callback with the LSM and security modules can produce
events.

Because access to Infiniband QPs are enforced in the setup phase of a
connection security should be enforced again if the policy changes.
Register infiniband devices for policy change notification and check all
QPs on that device when the notification is received.

Add a call to the notification mechanism from SELinux when the AVC
cache changes or setenforce is cleared.

Signed-off-by: Daniel Jurgens <danielj@mellanox.com>
Acked-by: James Morris <james.l.morris@oracle.com>
Acked-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
drivers/infiniband/core/device.c
include/linux/security.h
security/security.c
security/selinux/hooks.c
security/selinux/selinuxfs.c