Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Common entry point for both prctl and syscall.

Proto:static long do_seccomp(unsigned int op, unsigned int flags, void __user *uargs)

Type:long

Parameter:

TypeParameterName
unsigned intop
unsigned intflags
void __user *uargs
1407  Case op == Valid operations for seccomp syscall.
1408  If (flags != 0 || uargs != NULL) Then Return -EINVAL
1410  Return 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  Case op == SECCOMP_SET_MODE_FILTER
1412  Return seccomp_set_mode_filter(flags, uargs)
1413  Case op == SECCOMP_GET_ACTION_AVAIL
1414  If flags != 0 Then Return -EINVAL
1417  Return seccomp_get_action_avail(uargs)
1418  Case op == SECCOMP_GET_NOTIF_SIZES
1419  If flags != 0 Then Return -EINVAL
1422  Return seccomp_get_notif_sizes(uargs)
1423  Default
1424  Return -EINVAL
Caller
NameDescribe
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.