Function libseccomp::get_api[][src]

pub fn get_api() -> Result<u32>
Expand description

get_api returns the API level supported by the system.

Returns a positive int containing the API level, or 0 with an error if the API level could not be detected due to the library being 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