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_has_perm:* when adding a new allow rule to a device exception list, the rule* must be allowed in the parent device

Proto:static int parent_has_perm(struct dev_cgroup *childcg, struct dev_exception_item *ex)

Type:int

Parameter:

TypeParameterName
struct dev_cgroup *childcg
struct dev_exception_item *ex
450  parent = css_to_devcgroup(PI: the parent css. Placed here for cache proximity to following* fields of the containing structure.)
452  If Not parent Then Return 1
454  Return verify_new_ex - verifies if a new exception is allowed by parent cgroup's permissions*@dev_cgroup: dev cgroup to be tested against*@refex: new exception*@behavior: behavior of the exception's dev_cgroup* This is used to make sure a child cgroup won't have
Caller
NameDescribe
revalidate_active_exceptionsvalidate_active_exceptions - walks through the active exception list and* revalidates the exceptions based on parent's* behavior and exceptions
devcgroup_update_accessModify the exception list using allow/deny rules