Closed tqre closed 4 years ago
Ok this was sorted. I had /tmp mounted as noexec. However, another error occurs:
==> Starting check()...
/bin/sh: checkpolicy: command not found
./secilc test/policy.cil
./secilc -c -O -M 1 -f /dev/null -o opt-actual.bin test/opt-input.cil
Bad policy version: -O
Usage: ./secilc [OPTION]... FILE...
<<< secilc usage omitted >>>
make: *** [Makefile:33: test] Error 1
==> ERROR: A failure occurred in check().
Aborting...
Affected scripts: build.sh
+ build_and_install_all.sh
Building and installing checkpolicy
before secilc
remedies this issue, I'll see if I can make a working pull request.
Kernel:
Linux selinux 5.7.10.a-1-hardened #1 SMP PREEMPT Wed, 22 Jul 2020 17:37:59 +0000 x86_64 GNU/Linux
Running in a QEMU/kvm machine, host runs Arch Linux.Using the
build.sh
script, running the secilc test fail: I had to change .zstd references to .zst for the script to work.