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

Proto:static int propagate_exception(struct dev_cgroup *devcg_root, struct dev_exception_item *ex)

Type:int

Parameter:

TypeParameterName
struct dev_cgroup *devcg_root
struct dev_exception_item *ex
537  rc = 0
539  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
542  devcg = css_to_devcgroup(pos)
550  If pos == css || Not is_devcg_online(devcg) Then Continue
553  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
559  If behavior == DEVCG_DEFAULT_ALLOW && behavior == DEVCG_DEFAULT_ALLOW Then
561  rc = alled under devcgroup_mutex
562  If rc Then Return rc
564  Else
571  alled under devcgroup_mutex
573  validate_active_exceptions - walks through the active exception list and* revalidates the exceptions based on parent's* behavior and exceptions
575  _read_lock() - mark the beginning of an RCU read-side critical section* When synchronize_rcu() is invoked on one CPU while other CPUs* are within RCU read-side critical sections, then the* synchronize_rcu() is guaranteed to block until after all the other
578  _read_unlock() - marks the end of an RCU read-side critical section.* In most situations, rcu_read_unlock() is immune from deadlock.* However, in kernels built with CONFIG_RCU_BOOST, rcu_read_unlock()
579  Return rc
Caller
NameDescribe
devcgroup_update_accessModify the exception list using allow/deny rules