函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:parent_has_perm:* when adding a new allow rule to a device exception list, the rule* must be allowed in the parent device

函数原型:static int parent_has_perm(struct dev_cgroup *childcg, struct dev_exception_item *ex)

返回类型:int

参数:

类型参数名称
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  如果非parent则返回:1
454  返回: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
调用者
名称描述
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