函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Common entry point for both prctl and syscall.

函数原型:static long do_seccomp(unsigned int op, unsigned int flags, void __user *uargs)

返回类型:long

参数:

类型参数名称
unsigned intop
unsigned intflags
void __user *uargs
1407  :op恒等于Valid operations for seccomp syscall.
1408  如果(flags != 0 || uargs != NULL)则返回:负EINVAL
1410  返回: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.
1411  :op恒等于SECCOMP_SET_MODE_FILTER
1412  返回:seccomp_set_mode_filter(flags, uargs)
1413  :op恒等于SECCOMP_GET_ACTION_AVAIL
1414  如果flags不等于0则返回:负EINVAL
1417  返回:seccomp_get_action_avail(uargs)
1418  :op恒等于SECCOMP_GET_NOTIF_SIZES
1419  如果flags不等于0则返回:负EINVAL
1422  返回:seccomp_get_notif_sizes(uargs)
1423  默认
1424  返回:负EINVAL
调用者
名称描述
prctl_set_seccompprctl_set_seccomp: configures current->seccomp.mode*@seccomp_mode: requested mode to use*@filter: optional struct sock_fprog for use with SECCOMP_MODE_FILTER* Returns 0 on success or -EINVAL on failure.