Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:selinux_msg_queue_msgsnd

Proto:static int selinux_msg_queue_msgsnd(struct kern_ipc_perm *msq, struct msg_msg *msg, int msqflg)

Type:int

Parameter:

TypeParameterName
struct kern_ipc_perm *msq
struct msg_msg *msg
intmsqflg
6008  sid = get the subjective security ID of the current task
6011  isec = selinux_ipc(msq)
6012  msec = selinux_msg_msg(msg)
6017  If SID of message == SECINITSID_UNLABELED Then
6022  rc = security_transition_sid( & selinux_state, sid, SID of IPC resource , SECCLASS_MSG, NULL, & SID of message )
6024  If rc Then Return rc
6028  type = LSM_AUDIT_DATA_IPC
6029  ipc_id = key
6032  rc = avc_has_perm - Check permissions and perform any appropriate auditing
6035  If Not rc Then rc = avc_has_perm - Check permissions and perform any appropriate auditing
6040  If Not rc Then rc = avc_has_perm - Check permissions and perform any appropriate auditing
6046  Return rc