函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:validate_active_exceptions - walks through the active exception list and* revalidates the exceptions based on parent's* behavior and exceptions

函数原型:static void revalidate_active_exceptions(struct dev_cgroup *devcg)

返回类型:void

参数:

类型参数名称
struct dev_cgroup *devcg
520  ex等于container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(this, structdev_exception_item, list)
521  如果非parent_has_perm:* when adding a new allow rule to a device exception list, the rule* must be allowed in the parent devicealled under devcgroup_mutex
调用者
名称描述
propagate_exceptionpropagate_exception - propagates a new exception to the children*@devcg_root: device cgroup that added a new exception*@ex: new exception to be propagated* returns: 0 in case of success, != 0 in case of error