sandlock icon indicating copy to clipboard operation
sandlock copied to clipboard

A new failing test on RISCV

Open congwang-mk opened this issue 4 months ago • 0 comments

failures:

---- test_learn_then_run_collapse stdout ----

thread 'test_learn_then_run_collapse' (31781) panicked at crates/sandlock-cli/tests/learn_integration.rs:192:5:
run failed with collapsed profile: cat: /usr/bin/true: Permission denied
hint: if a denial caused this, extend the profile with:
  sandlock learn --merge /tmp/.tmpU8ntZM -- cat /usr/bin/true

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    test_learn_then_run_collapse

test result: FAILED. 10 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.37s

This is probably because on RISCV, the following commands are symlinks:

$ ls -lh /usr/bin/cat
lrwxrwxrwx 1 root root 30 Mar 30 09:50 /usr/bin/cat -> ../lib/cargo/bin/coreutils/cat
$ ls -lh /usr/bin/ls
lrwxrwxrwx 1 root root 29 Mar 30 09:50 /usr/bin/ls -> ../lib/cargo/bin/coreutils/ls
$ ls -lh /usr/bin/env
lrwxrwxrwx 1 root root 30 Mar 30 09:50 /usr/bin/env -> ../lib/cargo/bin/coreutils/env

congwang-mk avatar Jul 28 '26 05:07 congwang-mk