Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 421531

Summary: sys-apps/keyutils should check for CONFIG_KEYS
Product: Gentoo Linux Reporter: Hans de Graaff <graaff>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal CC: robbat2
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Hans de Graaff gentoo-dev Security 2012-06-17 08:38:38 UTC
I'm getting the following test failure with sys-apps/keyutils-1.5.5:

make[1]: Entering directory `/var/tmp/portage/sys-apps/keyutils-1.5.5/work/keyutils-1.5.5/tests'
bash runtest.sh  keyctl/update/userupdate keyctl/update/noargs keyctl/update/bad-args keyctl/unlink/valid keyctl/unlink/noargs keyctl/unlink/bad-args keyctl/unlink/all keyctl/timeout/valid keyctl/timeout/noargs keyctl/timeout/bad-args keyctl/show/noargs keyctl/session/valid keyctl/session/bad-args keyctl/search/valid keyctl/search/noargs keyctl/search/bad-args keyctl/revoke/valid keyctl/revoke/noargs keyctl/revoke/bad-args keyctl/requesting/noargs keyctl/reading/valid keyctl/reading/noargs keyctl/reading/bad-args keyctl/pupdate/userupdate keyctl/pupdate/noargs keyctl/pupdate/bad-args keyctl/permitting/valid keyctl/permitting/noargs keyctl/permitting/bad-args keyctl/padd/useradd keyctl/padd/noargs keyctl/padd/bad-args keyctl/noargs keyctl/newring/valid keyctl/newring/noargs keyctl/newring/bad-args keyctl/listing/valid keyctl/listing/noargs keyctl/listing/bad-args keyctl/link/valid keyctl/link/recursion keyctl/link/noargs keyctl/link/bad-args keyctl/instantiating/noargs keyctl/instantiating/bad-args keyctl/describing/valid keyctl/describing/noargs keyctl/describing/bad-args keyctl/clear/valid keyctl/clear/noargs keyctl/clear/bad-args keyctl/add/useradd keyctl/add/noargs keyctl/add/bad-args
#### Some tests require root privileges.
#### It is recommended that this be run as root.
keyctl_describe: Function not implemented
Running with session keyring RHTS/keyctl/23736
keyctl_join_session_keyring: Function not implemented
make[1]: *** [run] Error 1
make[1]: Leaving directory `/var/tmp/portage/sys-apps/keyutils-1.5.5/work/keyutils-1.5.5/tests'
make: *** [test] Error 2
emake failed


After some digging around I think this happens because CONFIG_KEYS(*) is not set in my kernel. It would be nice if the ebuild would warn me of this, and possibly not run the tests if the kernel option is not enabled.

* I haven't tested yet if enabling this option actually helps, but it looks like it does. The keyutils documentation doesn't mention any kernel option at all... Also note that the kernel help text for this option mentions: "If you are unsure as to whether this is required, answer N."
Comment 1 Hans de Graaff gentoo-dev Security 2012-06-24 04:41:13 UTC
It looks like CONFIG_KEYS_DEBUG_PROC_KEYS is also needed to run the full test suite.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2014-01-04 23:37:24 UTC
Fixed in CVS