Function libseccomp::set_api[][src]

pub fn set_api(level: u32) -> Result<()>
Expand description

set_api forcibly sets the API level. General use of this function is strongly discouraged.

Returns an error if the API level could not be set. An error is always returned if the library is older than v2.4.0 See the seccomp_api_get(3) man page for details on available API levels: https://github.com/seccomp/libseccomp/blob/main/doc/man/man3/seccomp_api_get.3