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>
Showing
- include/linux/lsm_hooks.h 5 additions, 5 deletionsinclude/linux/lsm_hooks.h
- include/linux/security.h 10 additions, 11 deletionsinclude/linux/security.h
- ipc/shm.c 7 additions, 10 deletionsipc/shm.c
- security/security.c 5 additions, 5 deletionssecurity/security.c
- security/selinux/hooks.c 14 additions, 14 deletionssecurity/selinux/hooks.c
- security/smack/smack_lsm.c 11 additions, 11 deletionssecurity/smack/smack_lsm.c
Loading
Please register or sign in to comment