Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:seccomp_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.

Proto:static long seccomp_set_mode_strict(void)

Type:long

Parameter:Nothing

969  seccomp_mode = uses hard-coded filter.
970  ret = -EINVAL
972  spin_lock_irq( & siglock)
974  If Not seccomp_may_assign_mode(seccomp_mode) Then Go to out
978  disable_TSC()
980  seccomp_assign_mode(current process, seccomp_mode, 0)
981  ret = 0
983  out :
984  spin_unlock_irq( & siglock)
986  Return ret
Caller
NameDescribe
do_seccompCommon entry point for both prctl and syscall.