msg/security: Pass kern_ipc_perm not msg_queue into the msg_queue security hooks
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 23 Mar 2018 02:22:26 +0000 (21:22 -0500)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 23 Mar 2018 02:22:26 +0000 (21:22 -0500)
commitd8c6e8543294428426578d74dc7aaf121e762d58
tree5a7fb08578f66f55f030e7fd1de237e5f756a847
parent7191adff2a5566efb139c79ea03eda3d0520d44a
msg/security: Pass kern_ipc_perm not msg_queue into the msg_queue security hooks

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

Making this change will allow struct msg_queue to become private to
ipc/msg.c.

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