Lines Matching refs:seccomp
28 #include <seccomp.h>
88 #include "seccomp-util.h"
1573 scmp_filter_ctx seccomp;
1577 seccomp = seccomp_init(SCMP_ACT_ALLOW);
1578 if (!seccomp)
1581 r = seccomp_add_secondary_archs(seccomp);
1583 log_error_errno(r, "Failed to add secondary archs to seccomp filter: %m");
1591 r = seccomp_rule_add(seccomp, SCMP_ACT_ERRNO(EPERM), blacklist[i].syscall_num, 0);
1612 seccomp,
1619 log_error_errno(r, "Failed to add audit seccomp rule: %m");
1623 r = seccomp_attr_set(seccomp, SCMP_FLTATR_CTL_NNP, 0);
1629 r = seccomp_load(seccomp);
1631 log_debug_errno(r, "Kernel is probably not configured with CONFIG_SECCOMP. Disabling seccomp audit filter: %m");
1636 log_error_errno(r, "Failed to install seccomp audit filter: %m");
1641 seccomp_release(seccomp);