函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:parent_allows_removal - verify if it's ok to remove an exception*@childcg: child cgroup from where the exception will be removed*@ex: exception being removed* When removing an exception in cgroups with default ALLOW policy, it must* be checked if removing

函数原型:static bool parent_allows_removal(struct dev_cgroup *childcg, struct dev_exception_item *ex)

返回类型:bool

参数:

类型参数名称
struct dev_cgroup *childcg
struct dev_exception_item *ex
471  parent等于css_to_devcgroup(PI: the parent css. Placed here for cache proximity to following* fields of the containing structure.)
473  如果非parent则返回:true
477  如果behavior恒等于DEVCG_DEFAULT_DENY则返回:true
484  返回:非match_exception_partial - iterates the exception list trying to find a partial match*@exceptions: list of exceptions*@type: device type (DEVCG_DEV_BLOCK or DEVCG_DEV_CHAR)*@major: device file major number, ~0 to match all*@minor: device file minor number,
调用者
名称描述
devcgroup_update_accessModify the exception list using allow/deny rules