Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Shared Memory security operations

Proto:static int selinux_shm_alloc_security(struct kern_ipc_perm *shp)

Type:int

Parameter:

TypeParameterName
struct kern_ipc_perm *shp
6080  sid = get the subjective security ID of the current task
6083  isec = selinux_ipc(shp)
6084  ipc_init_security(isec, SECCLASS_SHM)
6086  type = LSM_AUDIT_DATA_IPC
6087  ipc_id = key
6089  rc = avc_has_perm - Check permissions and perform any appropriate auditing
6092  Return rc