Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Semaphore security operations

Proto:static int selinux_sem_alloc_security(struct kern_ipc_perm *sma)

Type:int

Parameter:

TypeParameterName
struct kern_ipc_perm *sma
6165  sid = get the subjective security ID of the current task
6168  isec = selinux_ipc(sma)
6169  ipc_init_security(isec, SECCLASS_SEM)
6171  type = LSM_AUDIT_DATA_IPC
6172  ipc_id = key
6174  rc = avc_has_perm - Check permissions and perform any appropriate auditing
6177  Return rc