]> git.ipfire.org Git - thirdparty/linux.git/commit - ipc/sem.c
sem/security: Pass kern_ipc_perm not sem_array into the sem security hooks
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 23 Mar 2018 01:52:43 +0000 (20:52 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 23 Mar 2018 02:07:51 +0000 (21:07 -0500)
commitaefad9593ec5ad4aae5346253a8b646364cd7317
tree98f72912460afef0280f96f14880a8219c615f65
parentdd206bec9a446884805370b1c16c1d7a97036777
sem/security: Pass kern_ipc_perm not sem_array into the sem security hooks

All of the implementations of security hooks that take sem_array only
access sem_perm the struct kern_ipc_perm member.  This means the
dependencies of the sem security hooks can be simplified by passing
the kern_ipc_perm member of sem_array.

Making this change will allow struct sem and struct sem_array
to become private to ipc/sem.c.

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