函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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.

函数原型:static long seccomp_set_mode_strict(void)

返回类型:long

参数:

969  seccomp_mode等于uses hard-coded filter.
970  ret等于负EINVAL
972  spin_lock_irq( & siglock)
974  如果非seccomp_may_assign_mode(seccomp_mode)则转到:out
978  disable_TSC()
980  seccomp_assign_mode(当前进程, seccomp_mode, 0)
981  ret等于0
983  out :
984  spin_unlock_irq( & siglock)
986  返回:ret
调用者
名称描述
do_seccompCommon entry point for both prctl and syscall.