Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Note, at this point, shp is locked down

Proto:static int selinux_shm_shmctl(struct kern_ipc_perm *shp, int cmd)

Type:int

Parameter:

TypeParameterName
struct kern_ipc_perm *shp
intcmd
6118  Case cmd == see ipcs
6119  Case cmd == SHM_INFO
6121  Return avc_has_perm - Check permissions and perform any appropriate auditing
6124  Case cmd == get ipc_perm options
6125  Case cmd == pcs ctl commands
6126  Case cmd == SHM_STAT_ANY
6127  perms = SHM__GETATTR | SHM__ASSOCIATE
6128  Break
6129  Case cmd == set ipc_perm options
6130  perms = SHM__SETATTR
6131  Break
6132  Case cmd == super user shmctl commands
6133  Case cmd == SHM_UNLOCK
6134  perms = SHM__LOCK
6135  Break
6136  Case cmd == move resource
6137  perms = SHM__DESTROY
6138  Break
6139  Default
6140  Return 0
6143  err = ipc_has_perm(shp, perms)
6144  Return err