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

Bug 573670

Summary: hardened-sources: silence elog warning
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Anthony Basile <blueness>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Toralf Förster gentoo-dev 2016-02-02 13:46:09 UTC
The warning should just appear if the package is not installed:

t44 hardened-sources # diff -b hardened-sources-4.3.5.ebuild /usr/portage/sys-kernel/hardened-sources/hardened-sources-4.3.5.ebuild
38,40d37
<       local myconf=$"(use_hasversion $GRADM_COMPAT)"
<       elog myconf="$myconf"
<       if [[ -z "$myconf" ]]; then
49d45
<       fi
Comment 1 Anthony Basile gentoo-dev 2016-02-12 00:59:08 UTC
(In reply to Toralf Förster from comment #0)
> The warning should just appear if the package is not installed:
> 
> t44 hardened-sources # diff -b hardened-sources-4.3.5.ebuild
> /usr/portage/sys-kernel/hardened-sources/hardened-sources-4.3.5.ebuild
> 38,40d37
> <       local myconf=$"(use_hasversion $GRADM_COMPAT)"
> <       elog myconf="$myconf"
> <       if [[ -z "$myconf" ]]; then
> 49d45
> <       fi

No, because you might have kernels of different version of grsecurity installed.  Eg. for a while there were kernels for grsec version 3.0 and 3.1.  You would need the corresponding gradm for rbac to work.

The warning is for cases like that, so no, it should not be removed.