Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CONFIG_IKCONFIG_PROC - security implications
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
krotuss
Apprentice
Apprentice


Joined: 01 Aug 2008
Posts: 218

PostPosted: Fri Jan 05, 2024 10:27 pm    Post subject: CONFIG_IKCONFIG_PROC - security implications Reply with quote

Hi, what are security implications of using "CONFIG_IKCONFIG_PROC=y"? "/proc/config.gz" is world readable (can it be changed?), but for that matter also "/etc/kernels/kernel-config-*". Doesn't exposing kernel config to attacker make it easier to identify potential security vulnerabilities? Or, in reality, it doesn't make much difference?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21644

PostPosted: Fri Jan 05, 2024 11:24 pm    Post subject: Reply with quote

Permissions for this pseudo-file are hardcoded in the kernel; you would need a kernel patch to change them. See kernel/configs.c.

Yes, you should never give an attacker any information, because knowing anything makes their lives easier. Ideally, you should not let them run any code of their choosing on the system, in which case they will have a much harder time triggering any vulnerabilities.

I expect that in practice most attackers will not bother examining the kernel configuration, and will just blindly attempt any exploits they think might work. They might check your kernel version, or just try everything they know to try.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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