pub unsafe extern "C" fn seccomp_api_get() -> c_uintExpand description
Query the library’s level of API support
This function returns an API level value indicating the current supported functionality. It is important to note that this level of support is determined at runtime and therefore can change based on the running kernel and system configuration (e.g. any previously loaded seccomp filters). This function can be called multiple times, but it only queries the system the first time it is called, the API level is cached and used in subsequent calls.
The current API levels are described below:
- 0
- reserved
- 1
- base level
- 2
- support for the
SCMP_FLTATR_CTL_TSYNCfilter attribute - uses the
seccomp(2)syscall instead of theprctl(2)syscall
- support for the
- 3
- support for the
SCMP_FLTATR_CTL_LOGfilter attribute - support for the
SCMP_ACT_LOGaction - support for the
SCMP_ACT_KILL_PROCESSaction
- support for the
- 4
- support for the
SCMP_FLTATR_CTL_SSBfilter attribute
- support for the
- 5
- support for the
SCMP_ACT_NOTIFYaction and notify APIs
- support for the
- 6
- support the simultaneous use of
SCMP_FLTATR_CTL_TSYNCand notify APIs
- support the simultaneous use of
- 7
- support for the
SCMP_FLTATR_CTL_WAITKILLfilter attribute
- support for the