Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:devcgroup_check_permission

Proto:int devcgroup_check_permission(short type, unsigned int major, unsigned int minor, short access)

Type:int

Parameter:

TypeParameterName
shorttype
unsigned intmajor
unsigned intminor
shortaccess
830  rc = BPF_CGROUP_RUN_PROG_DEVICE_CGROUP(type, major, minor, access)
832  If rc Then Return -EPERM
835  Return __devcgroup_check_permission - checks if an inode operation is permitted*@dev_cgroup: the dev cgroup to be tested against*@type: device type*@major: device major number*@minor: device minor number*@access: combination of DEVCG_ACC_WRITE, DEVCG_ACC_READ