grsec (2.6.11.12/2.1.6) + radvd on Debian Sarge

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

grsec (2.6.11.12/2.1.6) + radvd on Debian Sarge

Postby FRLinux » Fri Jun 24, 2005 5:39 pm

Hello,

I have hit an issue with GRSec which i haven't seen before. I used a 2.4 kernel with exactly the same GRSec settings as the ones i now use on a 2.6 kernel but radvd (Router Advertisement for ipv6 networks) now fails with the following message :

radvd[10057]: version 0.7.3 started
radvd[10057]: can't open /proc/net/if_inet6: Permission denied
radvd[10057]: syntax error in config file: /etc/radvd.conf

Has anyone seen that ? I was on Debian woody and am now running sarge, on the same box, same grsec settings.

Cheers,
Steph
FRLinux
 
Posts: 12
Joined: Fri Jun 24, 2005 5:04 pm

Postby Carceru » Fri Jun 24, 2005 5:51 pm

I have the exact same problem. The reason is that the directory /proc/net is readable by root only (permissions: dr-x------) and radvd is running as the radvd user and needs to read /proc/net/if_inet6

My solution was to change radvd to run as root. A better solution is appreciated. I don't think this is related to GRSec. I was running with woody on a 2.6 kernel with GRSec without a problem. The problem only occured when I switched to sarge. Guess under woody radvd was running as root.

To make radvd run as root change the line

OPTIONS="-u radvd -p $PIDFILE"

in /etc/init.d/radvd to

OPTIONS="-u root -p $PIDFILE"
Carceru
 
Posts: 12
Joined: Tue Jun 21, 2005 8:24 am

Postby FRLinux » Fri Jun 24, 2005 5:57 pm

Carceru wrote:To make radvd run as root change the line
OPTIONS="-u radvd -p $PIDFILE"
in /etc/init.d/radvd to
OPTIONS="-u root -p $PIDFILE"


Oh nice one, thanks a lot for this.
And you are right, radvd on woody was running as root.

Steph
FRLinux
 
Posts: 12
Joined: Fri Jun 24, 2005 5:04 pm

Postby FRLinux » Sun Jun 26, 2005 7:09 am

mikeeusa wrote:That's messy too though... and might not work well if you need to poll more often... and it will wear out the hdd more...


It will indeed, my little hdd is one of the first maxtor 40GB 5400rpm in a "no moving parts" router and it showed already some signs of growing bad sectors so i prefer to limit the number of writings i do on it :)

Steph
FRLinux
 
Posts: 12
Joined: Fri Jun 24, 2005 5:04 pm

Postby peritus_ » Mon Jun 27, 2005 4:02 pm

Run it as root and set up a proper grsecurity RBAC configuration and everything will be just fine. :)
peritus_
 
Posts: 5
Joined: Sat Mar 12, 2005 1:33 pm


Return to grsecurity support