Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 91435 - sysctl.conf insecure file permissions
Summary: sysctl.conf insecure file permissions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Default Configs (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Security
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-04 07:11 UTC by Romang
Modified: 2005-05-04 15:47 UTC (History)
1 user (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 Romang 2005-05-04 07:11:17 UTC
if sysctl.conf is used to configure grsecurity, all the grsecurity capabilities listed in sysctl.conf are world readable.

Normally this capabilies shouldn't be world readable in the fact that :

proc/sys/kernel/grsecurity/ is not world readable.

[zataz@www zataz]$cat /proc/sys/kernel/grsecurity/
cat: /proc/sys/kernel/grsecurity/: Permission denied



Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
sysctl.conf is world readable

Expected Results:  
sysctl.conf shouldn't be world readable
Comment 1 solar (RETIRED) gentoo-dev 2005-05-04 08:06:52 UTC
I fail to see this as a valid security problem. (No GLSA Please)
I have no objections to the default sysctl.conf permissions being 640

Mode 666 would be insecure, the existing 640 at tops is an info leak.
Comment 2 SpanKY gentoo-dev 2005-05-04 08:08:59 UTC
yeah, i have no problem updating sysctl.conf to be 640 in baselayout, but beyond that ...
Comment 3 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-05-04 08:21:42 UTC
SpanKY retaking bug. 640 seems fine with me.
Comment 4 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-05-04 08:22:30 UTC
Damn bug come here:-)
Comment 5 SpanKY gentoo-dev 2005-05-04 08:43:26 UTC
why ? the 'default config' of sysctl.conf is fine

this is only an issue if the user edits the file and adds their own stuff to it that happens to be considered sensitive ... but at that point, it's no longer a 'default config' :P
Comment 6 solar (RETIRED) gentoo-dev 2005-05-04 08:53:37 UTC
in comment #1 I ment 644 at tops vs 640
Comment 7 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2005-05-04 09:05:14 UTC
vapier, my broad understanding of "default configs" include file permissions. If you really want the bug take it and cc security.
Comment 8 SpanKY gentoo-dev 2005-05-04 11:00:39 UTC
the default permissions are not insecure

anyways, i'll just update baselayout to install as 640 and close the bug and everyone can be happy
Comment 9 SpanKY gentoo-dev 2005-05-04 15:47:15 UTC
fixed in portage