Page 1 of 1

Problems with named and unlink

PostPosted: Tue Jun 15, 2004 7:27 pm
by mceith
Hello,

Im having troubles with named. The error:

grsec: denied unlink of /chroot/named/var/run/named.pid by /usr/local/sbin/named[named:6412] uid/euid:40/40 gid/egid:40/40, parent /sbin/init[init:1] uid/euid:0/0 gid/egid:0/0

Im running bind in chroot environment. Here is the acl for named:

subject /usr/local/sbin/named idr
/chroot/named/etc/namedb rw
/chroot/named/dev rw
/chroot/named/var/run/named.pid rw
/bin/ln rx
/bin/rm rx
/bin/unlink rx
/chroot/named r
+CAP_ALL
+CAP_SYS_CHROOT
+CAP_NET_BIND_SERVICE

Can anyone help me? thx :wink:

PostPosted: Tue Jun 15, 2004 8:36 pm
by spender
/chroot/named/var/run/named.pid rw

needs to be

/chroot/named/var/run/named.pid rwcd

-Brad

PostPosted: Tue Jun 15, 2004 8:55 pm
by mceith
spender wrote:/chroot/named/var/run/named.pid rw

needs to be

/chroot/named/var/run/named.pid rwcd

-Brad


That solved the problem, thx :D

Hope we will have docs for 2.0 soon.