Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\seccomp.c Create Date:2022-07-28 11:46:06
Last Modify:2022-05-19 16:58:48 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:seccomp_assign_mode

Proto:static inline void seccomp_assign_mode(struct task_struct *task, unsigned long seccomp_mode, unsigned long flags)

Type:void

Parameter:

TypeParameterName
struct task_struct *task
unsigned longseccomp_mode
unsigned longflags
301  assert_spin_locked( & siglock)
303  mode = seccomp_mode
308  smp_mb__before_atomic()
310  If (flags & SECCOMP_FILTER_FLAG_SPEC_ALLOW) == 0 Then arch_seccomp_spec_mitigate(task)
312  Set thread flags in other task's structures.* See asm/thread_info.h for TIF_xxxx flags available:
Caller
NameDescribe
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.