Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
make hardening.config
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2142

PostPosted: Wed Oct 16, 2024 12:13 pm    Post subject: make hardening.config Reply with quote

There's a relatively new (kernel 6.7) "hardening.config" "make" target for the kernel. I thought I'd try it. It clams to set various settings which provide more security without too heavy a performance overhead.
It's easy to use - in your kernel build directory (usually /usr/src/linux for vanilla Gentoo setups), and run
Code:
make hardening.config

It keeps the rest of your configuration untouched.

It added a few more checks to my kernel - I disabled some I thought were overkill for my environment. I'll report back later if I notice any performance impact.
(Note that I use git sources from kernel.org rather than gentoo-sources; maybe the latter arleady include the hardened settings.)
_________________
Greybeard
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4956
Location: Bavaria

PostPosted: Wed Oct 16, 2024 12:47 pm    Post subject: Reply with quote

I would just like to point out that there are two files (for x86):

/usr/src/linux/kernel/configs/hardening.config
/usr/src/linux/arch/x86/configs/hardening.config

(also mentioned here: https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Kernel_Hardening_with_KSPP )
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54561
Location: 56N 3W

PostPosted: Wed Oct 16, 2024 12:51 pm    Post subject: Reply with quote

Beaten by a short _ead.

gentoo-sources does include several preset knobs for hardening
You can use the groups or set them to your taste
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
user
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 211

PostPosted: Wed Oct 16, 2024 1:57 pm    Post subject: Reply with quote

Hi,
package app-admin/kernel-hardening-checker is also helpful for searching through unstructured kernel config options regarding hardening items.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum