diff options
| author | Simon McVittie <smcv@collabora.com> | 2021-10-08 19:00:13 +0100 |
|---|---|---|
| committer | Alexander Larsson <alexl@redhat.com> | 2021-10-11 09:52:48 +0200 |
| commit | 97e128c2c1520202486b5e165e1734cbb421568a (patch) | |
| tree | 1de02ebf4152183249a8465332b6f938e3dca7a5 | |
| parent | 946dd5d8a88cb948a716611d587a186103d11104 (diff) | |
| download | flatpak-97e128c2c1520202486b5e165e1734cbb421568a.tar.gz | |
Fix handling of syscalls only allowed by --devel
This was incorrectly looking at errno instead of -r.
Fixes: 0b38b0f0 "run: Handle unknown syscalls as intended"
Signed-off-by: Simon McVittie <smcv@collabora.com>
(cherry picked from commit 3fc8c672676ae016f8e7cc90481b2feecbad9861)
| -rw-r--r-- | common/flatpak-run.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/flatpak-run.c b/common/flatpak-run.c index 3da5f332..feaedc6c 100644 --- a/common/flatpak-run.c +++ b/common/flatpak-run.c @@ -3101,7 +3101,7 @@ setup_seccomp (FlatpakBwrap *bwrap, r = seccomp_rule_add (seccomp, SCMP_ACT_ERRNO (errnum), scall, 0); /* See above for the meaning of EFAULT. */ - if (errno == EFAULT) + if (r == -EFAULT) flatpak_debug2 ("Unable to block syscall %d: syscall not known to libseccomp?", scall); else if (r < 0) |
