函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

函数原型:long prctl_set_seccomp(unsigned long seccomp_mode, void __user *filter)

返回类型:long

参数:

类型参数名称
unsigned longseccomp_mode
void __user *filter
1444  __useruargs
1447  :seccomp_mode恒等于uses hard-coded filter.
1448  op等于Valid operations for seccomp syscall.
1454  uargs = NULL
1455  退出
1456  :seccomp_mode恒等于uses user-supplied filter.
1457  op等于SECCOMP_SET_MODE_FILTER
1458  uargs等于filter
1459  退出
1460  默认
1461  返回:负EINVAL
1465  返回:Common entry point for both prctl and syscall.