Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:yama_ptracer_del - remove exceptions related to the given tasks*@tracer: remove any relation where tracer task matches*@tracee: remove any relation where tracee task matches

Proto:static void yama_ptracer_del(struct task_struct *tracer, struct task_struct *tracee)

Type:void

Parameter:

TypeParameterName
struct task_struct *tracer
struct task_struct *tracee
183  bool marked = false
185  _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
187  If invalid Then Continue
189  If tracee == tracee || tracer && tracer == tracer Then
191  invalid = true
192  marked = true
195  _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()
197  If marked Then schedule_work - put work task in global workqueue*@work: job to be done* Returns %false if @work was already on the kernel-global workqueue and* %true otherwise
Caller
NameDescribe
yama_task_freeyama_task_free - check for task_pid to remove from exception list*@task: task being removed
yama_task_prctlyama_task_prctl - check for Yama-specific prctl operations*@option: operation*@arg2: argument*@arg3: argument*@arg4: argument*@arg5: argument* Return 0 on success, -ve on error. -ENOSYS is returned when Yama* does not handle the given option.