Skip to content
Unverified Commit 903659e7 authored by Christian Ehrhardt's avatar Christian Ehrhardt
Browse files

seccomp: ensure rules are loaded in seccomp_memory_deny_write_execute



If seccomp_memory_deny_write_execute was fatally failing to load rules it
already returned a bad retval.
But if any adding filters failed it skipped the subsequent seccomp_load and
always returned an rc of 0 even if no rule was loaded at all.

Lets fix this requiring to (non fatally-failing) load at least one rule set.

Signed-off-by: default avatarChristian Ehrhardt <christian.ehrhardt@canonical.com>
parent bed4668d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment