Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 689154 - sys-kernel/gentoo-sources: improve the default level of security/hardening
Summary: sys-kernel/gentoo-sources: improve the default level of security/hardening
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-07-02 13:31 UTC by Agostino Sarubbo
Modified: 2019-08-03 20:42 UTC (History)
3 users (show)

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 Agostino Sarubbo gentoo-dev 2019-07-02 13:31:51 UTC
Hello Kernel team,

I'm wondering if we can get ideas from this and then apply in our default configuration:
https://kernsec.org/wiki/index.php/Kernel_Self_Protection_Project/Recommended_Settings

Thanks
Comment 1 Michael 'veremitz' Everitt 2019-07-02 13:52:29 UTC
I was discussing this in the pentoo IRC channel recently, and there is a patch we could deploy via a 'hardened' USE flag potentially at https://patchwork.kernel.org/patch/10593391/ .

This takes the ideas from the link @ago mentions, and those from https://github.com/a13xp0p0v/kconfig-hardened-check .

I'm hoping we might be able to deploy this configuration with the lowest 'severity' levels on the Gentoo kernel-CI system to evaluate how well they integrate with Gentoo configs & patchsets.
Comment 2 Mike Pagano gentoo-dev 2019-07-03 13:19:08 UTC
Instead of a useflag, how about CONFIG_GENTOO_LINUX_KSPP or some other name in 4567_distro-Gentoo-Kconfig.patch ?

Then we can decide if it's part of CONFIG_GENTOO_LINUX or not 

Thoughts?
Comment 3 Michael 'veremitz' Everitt 2019-07-03 13:31:47 UTC
(In reply to Mike Pagano from comment #2)
> Instead of a useflag, how about CONFIG_GENTOO_LINUX_KSPP or some other name
> in 4567_distro-Gentoo-Kconfig.patch ?
> 
> Then we can decide if it's part of CONFIG_GENTOO_LINUX or not 
> 
> Thoughts?

Sounds like a good idea to me :]
Comment 4 Agostino Sarubbo gentoo-dev 2019-07-03 14:01:04 UTC
(In reply to Mike Pagano from comment #2)
> Instead of a useflag, how about CONFIG_GENTOO_LINUX_KSPP or some other name
> in 4567_distro-Gentoo-Kconfig.patch ?

++
Comment 5 Mike Pagano gentoo-dev 2019-07-09 11:54:50 UTC
Ok, select when CONFIG_GENTOO selected or make the user select it themselves.

I'm leaning to the latter.
Comment 6 Michael 'veremitz' Everitt 2019-07-09 11:59:25 UTC
I think we leave it as a user-enabled option, which 'unlocks' the other features. 

It would be good, I think, to write a short news item/PR thinger to alert users to the new 'feature' and let people work from there. It should limit the tidal wave of new bugs (?!) :]
Comment 7 Magnus Granberg gentoo-dev 2019-07-16 11:58:28 UTC
Would be good with a wiki page to.