Unverified Commit 23b50e75 by Stéphane Graber Committed by GitHub

Merge pull request #3041 from brauner/2019-06-12/seccomp_notify_fixes

seccomp: do not set SECCOMP_FILTER_FLAG_NEW_LISTENER
parents 29597423 f73adb35
......@@ -944,11 +944,6 @@ static int parse_config_v2(FILE *f, char *line, size_t *line_bufsz, struct lxc_c
#if HAVE_DECL_SECCOMP_NOTIFY_FD
if ((rule.action == SCMP_ACT_NOTIFY) &&
!conf->seccomp.notifier.wants_supervision) {
ret = seccomp_attr_set(conf->seccomp.seccomp_ctx,
SECCOMP_FILTER_FLAG_NEW_LISTENER, 1);
if (ret)
goto bad_rule;
conf->seccomp.notifier.wants_supervision = true;
TRACE("Set SECCOMP_FILTER_FLAG_NEW_LISTENER attribute");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment