Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\selinux\hooks.c Create Date:2022-07-28 19:01:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:selinux_msg_queue_msgctl

Proto:static int selinux_msg_queue_msgctl(struct kern_ipc_perm *msq, int cmd)

Type:int

Parameter:

TypeParameterName
struct kern_ipc_perm *msq
intcmd
5978  Case cmd == see ipcs
5979  Case cmd == MSG_INFO
5981  Return avc_has_perm - Check permissions and perform any appropriate auditing
5984  Case cmd == get ipc_perm options
5985  Case cmd == pcs ctl commands
5986  Case cmd == MSG_STAT_ANY
5987  perms = MSGQ__GETATTR | MSGQ__ASSOCIATE
5988  Break
5989  Case cmd == set ipc_perm options
5990  perms = MSGQ__SETATTR
5991  Break
5992  Case cmd == move resource
5993  perms = MSGQ__DESTROY
5994  Break
5995  Default
5996  Return 0
5999  err = ipc_has_perm(msq, perms)
6000  Return err