Bug 92312 - Bind does not run chrooted on selinux (+fix)
Bug#: 92312 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: kaiowas@gentoo.org Reported By: daniel@dthaler.de
Component: Hardened
URL: 
Summary: Bind does not run chrooted on selinux (+fix)
Keywords:  
Status Whiteboard: 
Opened: 2005-05-11 15:57 0000
Description:   Opened: 2005-05-11 15:57 0000
The selinux policy for bind does not define any labels for the chroot dir and
bind also wants cap_dac_read_search when chrooting.

I'm attaching my modified named.fc and named.te files
Note that I've hardcoded my chroot dir (/var/chroot/dns) in named.fc

------- Comment #1 From Daniel Thaler 2005-05-11 15:58:37 0000 -------
Created an attachment (id=58703) [details]
modified named.fc

------- Comment #2 From Daniel Thaler 2005-05-11 15:59:04 0000 -------
Created an attachment (id=58704) [details]
modified named.te

------- Comment #3 From petre rodan (RETIRED) 2005-05-26 03:13:24 0000 -------
ok, I haven't found any pointers in fhs for proper chroot tree placement, so
/var/chroot/dns is as good as any other location ;)

fix will be available shortly in selinux-bind-20050526

thanks for the bug report