mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 12:37:35 +00:00
Revert "seccomp: make do_resolve_add_rule() more strict"
This reverts commit dfddc8aa7e
.
Closes #2376.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
06b44d05bd
commit
24b9874f79
@ -500,12 +500,14 @@ bool do_resolve_add_rule(uint32_t arch, char *line, scmp_filter_ctx ctx,
|
|||||||
nr = seccomp_syscall_resolve_name(line);
|
nr = seccomp_syscall_resolve_name(line);
|
||||||
if (nr == __NR_SCMP_ERROR) {
|
if (nr == __NR_SCMP_ERROR) {
|
||||||
WARN("Failed to resolve syscall \"%s\"", line);
|
WARN("Failed to resolve syscall \"%s\"", line);
|
||||||
return false;
|
WARN("This syscall will NOT be blacklisted");
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nr < 0) {
|
if (nr < 0) {
|
||||||
WARN("Got negative return value %d for syscall \"%s\"", nr, line);
|
WARN("Got negative return value %d for syscall \"%s\"", nr, line);
|
||||||
return false;
|
WARN("This syscall will NOT be blacklisted");
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
memset(&arg_cmp, 0, sizeof(arg_cmp));
|
memset(&arg_cmp, 0, sizeof(arg_cmp));
|
||||||
|
Loading…
Reference in New Issue
Block a user