Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:message queue security operations

Proto:static int selinux_msg_queue_alloc_security(struct kern_ipc_perm *msq)

Type:int

Parameter:

TypeParameterName
struct kern_ipc_perm *msq
5941  sid = get the subjective security ID of the current task
5944  isec = selinux_ipc(msq)
5945  ipc_init_security(isec, SECCLASS_MSGQ)
5947  type = LSM_AUDIT_DATA_IPC
5948  ipc_id = key
5950  rc = avc_has_perm - Check permissions and perform any appropriate auditing
5953  Return rc