-
Notifications
You must be signed in to change notification settings - Fork 187
Open
Description
This should be useful eg, for systemd/systemd#3882 .
I did a tentative patch for systemd that reads if Seccomp is mentioned in /proc/self/status:
bool is_seccomp_enabled() {
_cleanup_free_ char* field = NULL;
return get_proc_field("/proc/self/status", "Seccomp", "\n", &field) == 0;
}But I think it is best if libseccomp provides a canonical way to test for the availability of seccomp.