Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 573670 - hardened-sources: silence elog warning
Summary: hardened-sources: silence elog warning
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-02 13:46 UTC by Toralf Förster
Modified: 2016-02-12 00:59 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.