Dear all,
I am having trouble to start up chrooted service named. With SElinux enabled, the service will not start (Permition on /var/named/chroot/etc/rndc.key denied), when starting it from root commandline by /usr/sbin/named -u named -t /var/named/chroot everything is all right. With disabled SElinux service will start properly. Trying to disable SElinux for named service only with bolean "setsebool -P named_disable_trans 1" gives me error "libsemanage.dbase_llist_set: record not found in the database".
Any help warmly appreciated
Thanks!
[SOLVED] named service and SElinux
Re: named service and SElinux
What is the output from
[code]
ls -laZ /var/named/chroot/etc/rndc.key
[/code]
[code]
ls -laZ /var/named/chroot/etc/rndc.key
[/code]
Re: named service and SElinux
[root@zoidberg etc]# ls -laZ /var/named/chroot/etc/rndc.key
-rw-r-----. root named unconfined_u:object_r:user_home_t:s0 /var/named/chroot/etc/rndc.key
thanks for super fast reply!
-rw-r-----. root named unconfined_u:object_r:user_home_t:s0 /var/named/chroot/etc/rndc.key
thanks for super fast reply!
Re: named service and SElinux
Yeah, your files are mislabelled. Try
[code]
touch /.autorelabel
reboot
[/code]
(the 2nd command reboots your machine so only do this when it's convenient!)
[code]
touch /.autorelabel
reboot
[/code]
(the 2nd command reboots your machine so only do this when it's convenient!)
Re: named service and SElinux
thank you TrevorH, everything all right here for now..
..that was simple ;-)
Thank you once again!
..that was simple ;-)
Thank you once again!
- AlanBartlett
- Forum Moderator
- Posts: 9345
- Joined: 2007/10/22 11:30:09
- Location: ~/Earth/UK/England/Suffolk
- Contact:
[SOLVED] named service and SElinux
Thank you for reporting back with your success.
On your behalf, and for posterity, this thread is marked [SOLVED].
On your behalf, and for posterity, this thread is marked [SOLVED].