函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\device_cgroup.c Create Date:2022-07-27 21:52:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:devcgroup_check_permission

函数原型:int devcgroup_check_permission(short type, unsigned int major, unsigned int minor, short access)

返回类型:int

参数:

类型参数名称
shorttype
unsigned intmajor
unsigned intminor
shortaccess
830  rc等于BPF_CGROUP_RUN_PROG_DEVICE_CGROUP(type, major, minor, access)
832  如果rc则返回:负EPERM
835  返回:__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