Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static bool parent_allows_removal(struct dev_cgroup *childcg, struct dev_exception_item *ex)

Type:bool

Parameter:

TypeParameterName
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  If Not parent Then Return true
477  If behavior == DEVCG_DEFAULT_DENY Then Return true
484  Return Not 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,
Caller
NameDescribe
devcgroup_update_accessModify the exception list using allow/deny rules