about summary refs log tree commit diff
diff options
context:
space:
mode:
authoraszlig <aszlig@redmoonstudios.org>2016-11-16T16·27+0100
committeraszlig <aszlig@redmoonstudios.org>2016-11-16T16·29+0100
commit4e1a2cd537b5b910937499c544043ddac291843e (patch)
tree884bfa8fce2722a458bdd580cab745278e57eefd
parented64976cec43f9f067a40fc6921b5513a19fd757 (diff)
seccomp: Forge return values for *chown32
These syscalls are only available in 32bit architectures, but libseccomp
should handle them correctly even if we're on native architectures that
do not have these syscalls.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
-rw-r--r--src/libstore/build.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 6fc6220e0524..b411b7de7c10 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -1654,6 +1654,10 @@ void setupSeccomp(void) {
     }
 #endif
 
+    FORCE_SUCCESS(chown32);
+    FORCE_SUCCESS(fchown32);
+    FORCE_SUCCESS(lchown32);
+
     FORCE_SUCCESS(chown);
     FORCE_SUCCESS(fchown);
     FORCE_SUCCESS(fchownat);