Merge pull request #3038 from brauner/master

seccomp: s/SCMP_FLTATR_NEW_LISTENER/SECCOMP_FILTER_FLAG_NEW_LISTENER/g
This commit is contained in:
Stéphane Graber 2019-06-11 17:53:05 -04:00 committed by GitHub
commit b322965e7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -945,12 +945,12 @@ static int parse_config_v2(FILE *f, char *line, size_t *line_bufsz, struct lxc_c
if ((rule.action == SCMP_ACT_NOTIFY) && if ((rule.action == SCMP_ACT_NOTIFY) &&
!conf->seccomp.notifier.wants_supervision) { !conf->seccomp.notifier.wants_supervision) {
ret = seccomp_attr_set(conf->seccomp.seccomp_ctx, ret = seccomp_attr_set(conf->seccomp.seccomp_ctx,
SCMP_FLTATR_NEW_LISTENER, 1); SECCOMP_FILTER_FLAG_NEW_LISTENER, 1);
if (ret) if (ret)
goto bad_rule; goto bad_rule;
conf->seccomp.notifier.wants_supervision = true; conf->seccomp.notifier.wants_supervision = true;
TRACE("Set SCMP_FLTATR_NEW_LISTENER attribute"); TRACE("Set SECCOMP_FILTER_FLAG_NEW_LISTENER attribute");
} }
#endif #endif