View previous topic :: View next topic |
Author |
Message |
krotuss Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 01 Aug 2008 Posts: 247
|
Posted: Fri Jan 05, 2024 10:27 pm Post subject: CONFIG_IKCONFIG_PROC - security implications |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Hu Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
Joined: 06 Mar 2007 Posts: 23113
|
Posted: Fri Jan 05, 2024 11:24 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|