Commit 2f41a8a8 authored by Tycho Andersen's avatar Tycho Andersen Committed by Pavel Emelyanov

check: dump seccomp filters is in --ms

As of 4.4,
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=f8e529ed9
c/r of seccomp filters is supported, so let's check for it in --ms.
Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent fe76ccde
...@@ -663,11 +663,6 @@ static int check_ptrace_dump_seccomp_filters(void) ...@@ -663,11 +663,6 @@ static int check_ptrace_dump_seccomp_filters(void)
pid_t pid; pid_t pid;
int ret = 0, len; int ret = 0, len;
if (opts.check_ms_kernel) {
pr_warn("Skipping PTRACE_SECCOMP_GET_FILTER check");
return 0;
}
pid = fork_and_ptrace_attach(setup_seccomp_filter); pid = fork_and_ptrace_attach(setup_seccomp_filter);
if (pid < 0) if (pid < 0)
return -1; return -1;
......
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