Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 519062 - sys-apps/keyutils fails test: bugzillas/bz1031154
Summary: sys-apps/keyutils fails test: bugzillas/bz1031154
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2014-08-04 18:01 UTC by Hans de Graaff
Modified: 2017-01-19 16:55 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,6.67 KB, text/x-log)
2014-08-04 18:01 UTC, Hans de Graaff
Details
emerge --info (emerge-info.txt,19.09 KB, text/plain)
2014-08-04 18:02 UTC, Hans de Graaff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hans de Graaff gentoo-dev Security 2014-08-04 18:01:50 UTC
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.
Comment 1 Hans de Graaff gentoo-dev Security 2014-08-04 18:02:23 UTC
Created attachment 382262 [details]
emerge --info
Comment 2 A. Wilcox (awilfox) 2017-01-19 01:35:49 UTC
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.
Comment 3 SpanKY gentoo-dev 2017-01-19 16:55:53 UTC
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