函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\seccomp.c Create Date:2022-07-27 12:50:48
Last Modify:2022-05-19 16:58:48 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:seccomp_assign_mode

函数原型:static inline void seccomp_assign_mode(struct task_struct *task, unsigned long seccomp_mode, unsigned long flags)

返回类型:void

参数:

类型参数名称
struct task_struct *task
unsigned longseccomp_mode
unsigned longflags
301  assert_spin_locked( & siglock)
303  mode等于seccomp_mode
308  smp_mb__before_atomic()
310  如果flags按位与SECCOMP_FILTER_FLAG_SPEC_ALLOW的值恒等于0则arch_seccomp_spec_mitigate(task)
312  Set thread flags in other task's structures.* See asm/thread_info.h for TIF_xxxx flags available:
调用者
名称描述
seccomp_set_mode_strictseccomp_set_mode_strict: internal function for setting strict seccomp* Once current->seccomp.mode is non-zero, it may not be changed.* Returns 0 on success or -EINVAL on failure.