Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:selinux_ipc_permission

Proto:static int selinux_ipc_permission(struct kern_ipc_perm *ipcp, short flag)

Type:int

Parameter:

TypeParameterName
struct kern_ipc_perm *ipcp
shortflag
6256  av = 0
6258  av = 0
6259  If flag & S_IRUGO Then av |= IPC__UNIX_READ
6261  If flag & S_IWUGO Then av |= IPC__UNIX_WRITE
6264  If av == 0 Then Return 0
6267  Return ipc_has_perm(ipcp, av)