Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ipc_has_perm

Proto:static int ipc_has_perm(struct kern_ipc_perm *ipc_perms, unsigned int perms)

Type:int

Parameter:

TypeParameterName
struct kern_ipc_perm *ipc_perms
unsigned intperms
5920  sid = get the subjective security ID of the current task
5922  isec = selinux_ipc(ipc_perms)
5924  type = LSM_AUDIT_DATA_IPC
5925  ipc_id = key
5927  Return avc_has_perm - Check permissions and perform any appropriate auditing
Caller
NameDescribe
selinux_msg_queue_msgctl
selinux_shm_shmctlNote, at this point, shp is locked down
selinux_shm_shmat
selinux_sem_semctlNote, at this point, sma is locked down
selinux_sem_semop
selinux_ipc_permission