Skip to content

Commit

Permalink
seccomp: Forge return values for *chown32
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
aszlig committed Nov 16, 2016
1 parent ed64976 commit 4e1a2cd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/libstore/build.cc
Expand Up @@ -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);
Expand Down

0 comments on commit 4e1a2cd

Please sign in to comment.