shm/security: Pass kern_ipc_perm not shmid_kernel into the shm security hooks
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 23 Mar 2018 02:08:27 +0000 (21:08 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 23 Mar 2018 02:08:27 +0000 (21:08 -0500)
commit7191adff2a5566efb139c79ea03eda3d0520d44a
treebfde0d973881cfaa21e9993b290de4ca9c5bbe4b
parentaefad9593ec5ad4aae5346253a8b646364cd7317
shm/security: Pass kern_ipc_perm not shmid_kernel into the shm security hooks

All of the implementations of security hooks that take shmid_kernel only
access shm_perm the struct kern_ipc_perm member.  This means the
dependencies of the shm security hooks can be simplified by passing
the kern_ipc_perm member of shmid_kernel..

Making this change will allow struct shmid_kernel to become private to ipc/shm.c.

Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
include/linux/lsm_hooks.h
include/linux/security.h
ipc/shm.c
security/security.c
security/selinux/hooks.c
security/smack/smack_lsm.c