/proc error with 1.99g + gentoo 2.4.20r5
Posted: Sat May 31, 2003 11:04 am
Hi,
i enabled /proc restrictions, my .config contains
#
# Filesystem Protections
#
CONFIG_GRKERNSEC_PROC=y
CONFIG_GRKERNSEC_PROC_USER=y
now i have an interesting problem:
beeing the root user, access to the /proc tree is prohibited at first, but allowed after a few tries. example:
# ls -la /proc/sys
-r--r--r-- 11 root root 0 May 31 17:00 /proc/sys
and one second later...
# ls -la /proc/sys
total 0
dr-xr-xr-x 11 root root 0 May 31 17:00 .
dr-xr-xr-x 128 root root 0 May 31 2003 ..
dr-xr-xr-x 2 root root 0 May 31 17:00 abi
dr-xr-xr-x 2 root root 0 May 31 17:00 debug
dr-xr-xr-x 5 root root 0 May 31 17:00 dev
dr-xr-xr-x 3 root root 0 May 31 17:00 fs
dr-xr-xr-x 4 root root 0 May 31 17:00 kernel
dr-xr-xr-x 7 root root 0 May 31 17:00 net
dr-xr-xr-x 2 root root 0 May 31 17:00 proc
dr-xr-xr-x 2 root root 0 May 31 17:00 sched
dr-xr-xr-x 2 root root 0 May 31 17:00 vm
this means that setting some keys does not work at startup, but if i try it manually after i login, it works.
anybody with an explanation / similar problem ?
i enabled /proc restrictions, my .config contains
#
# Filesystem Protections
#
CONFIG_GRKERNSEC_PROC=y
CONFIG_GRKERNSEC_PROC_USER=y
now i have an interesting problem:
beeing the root user, access to the /proc tree is prohibited at first, but allowed after a few tries. example:
# ls -la /proc/sys
-r--r--r-- 11 root root 0 May 31 17:00 /proc/sys
and one second later...
# ls -la /proc/sys
total 0
dr-xr-xr-x 11 root root 0 May 31 17:00 .
dr-xr-xr-x 128 root root 0 May 31 2003 ..
dr-xr-xr-x 2 root root 0 May 31 17:00 abi
dr-xr-xr-x 2 root root 0 May 31 17:00 debug
dr-xr-xr-x 5 root root 0 May 31 17:00 dev
dr-xr-xr-x 3 root root 0 May 31 17:00 fs
dr-xr-xr-x 4 root root 0 May 31 17:00 kernel
dr-xr-xr-x 7 root root 0 May 31 17:00 net
dr-xr-xr-x 2 root root 0 May 31 17:00 proc
dr-xr-xr-x 2 root root 0 May 31 17:00 sched
dr-xr-xr-x 2 root root 0 May 31 17:00 vm
this means that setting some keys does not work at startup, but if i try it manually after i login, it works.
anybody with an explanation / similar problem ?