Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:long prctl_set_seccomp(unsigned long seccomp_mode, void __user *filter)

Type:long

Parameter:

TypeParameterName
unsigned longseccomp_mode
void __user *filter
1444  __user * uargs
1447  Case seccomp_mode == uses hard-coded filter.
1448  op = Valid operations for seccomp syscall.
1454  uargs = NULL
1455  Break
1456  Case seccomp_mode == uses user-supplied filter.
1457  op = SECCOMP_SET_MODE_FILTER
1458  uargs = filter
1459  Break
1460  Default
1461  Return -EINVAL
1465  Return Common entry point for both prctl and syscall.