Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:selinux_msg_queue_msgrcv

Proto:static int selinux_msg_queue_msgrcv(struct kern_ipc_perm *msq, struct msg_msg *msg, struct task_struct *target, long type, int mode)

Type:int

Parameter:

TypeParameterName
struct kern_ipc_perm *msq
struct msg_msg *msg
struct task_struct *target
longtype
intmode
6056  sid = get the objective security ID of a task
6059  isec = selinux_ipc(msq)
6060  msec = selinux_msg_msg(msg)
6062  type = LSM_AUDIT_DATA_IPC
6063  ipc_id = key
6065  rc = avc_has_perm - Check permissions and perform any appropriate auditing
6068  If Not rc Then rc = avc_has_perm - Check permissions and perform any appropriate auditing
6072  Return rc