Created attachment 382260 [details] build.log On a gentoo-sources system with no hardened or selinux bits installed I'm getting the following test failure when emerging keyutils-1.5.9-r1: #### Some tests require root privileges. #### It is recommended that this be run as root. Running with session keyring RHTS/keyctl/11735 Joined session keyring: 833263014 === /var/tmp/portage/sys-apps/keyutils-1.5.9-r1/work/keyutils-1.5.9-abi_x86_64.amd64/tests/bugzillas/bz1031154/test.out === ./runtest.sh: line 22: load_policy: command not found +++ ENTER SELINUX PERMISSIVE MODE ./runtest.sh: line 27: getenforce: command not found ./runtest.sh: line 32: setenforce: command not found FAILED +++ CREATE BIG KEY FAILED +++ CHECK BIG KEY ./runtest.sh: line 45: printf: no: invalid number FAILED +++ ACCESS INTERCONTEXT FAILED +++ EXAMINE AUDIT LOGS +++ RESTORE SELINUX MODE ./runtest.sh: line 78: setenforce: command not found FAILED make[1]: *** [run] Error 1 make[1]: Leaving directory `/var/tmp/portage/sys-apps/keyutils-1.5.9-r1/work/keyutils-1.5.9-abi_x86_64.amd64/tests' make: *** [test] Error 2 * ERROR: sys-apps/keyutils-1.5.9-r1::gentoo failed (test phase): As far as I can tell these tools are associated with SELinux and installed with sys-libs/selinux, but I'm not sure if this test should be attempted at all on a non-selinux system.
Created attachment 382262 [details] emerge --info
Considering this failure and bug 522050, has there been consideration for RESTRICT=test on this ebuild? After almost three years I don't know that there is another solution.
i've just disabled the test because it relies on changing the global system SELinux policies which is a terrible idea https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=41318c00bfbdba74249f88cde3e64ddfdc240cce