Skip to content

Sandbox unit tests fail on Aarch64

Summary

Running the Tor 0.4.7.7 test suite on an Aarch64 system shows failures in test_sandbox:

sandbox/open_filename: [forking]
  FAIL src/test/test_sandbox.c:158: open: Operation not permitted [1]
  [open_filename FAILED]
sandbox/opendir_dirname: [forking]
  FAIL src/test/test_sandbox.c:264: opendir: Operation not permitted [1]
  [opendir_dirname FAILED]
sandbox/openat_filename: [forking]
  FAIL src/test/test_sandbox.c:242: openat: Operation not permitted [1]
  [openat_filename FAILED]
sandbox/chmod_filename: [forking]
  FAIL src/test/test_sandbox.c:184: chmod: Operation not permitted [1]
  [chmod_filename FAILED]
sandbox/chown_filename: [forking]
  FAIL src/test/test_sandbox.c:202: chown: Operation not permitted [1]
  [chown_filename FAILED]
sandbox/rename_filename: [forking]
  FAIL src/test/test_sandbox.c:222: rename: Operation not permitted [1]
  [rename_filename FAILED]

This is with libseccomp v2.5.3, I haven't tried any other version. libseccomp's own test suite passes fine on the same system.

Environment

  • Which version of Tor are you using? 0.4.7.7
  • Which operating system are you using? NixOS (master)
  • Which installation method did you use? n/a (pre-install)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information