Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bind9 complaining about lack of threads support
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
haven
Tux's lil' helper
Tux's lil' helper


Joined: 19 Nov 2003
Posts: 141
Location: Belfast, Uk

PostPosted: Wed Sep 07, 2011 6:46 am    Post subject: Bind9 complaining about lack of threads support Reply with quote

Just found an interesting issue with bind after an update. Starting bind with:
Code:
 start-stop-daemon --start --pidfile /var/run/named/named.pid --nicelevel 0 --exec /usr/sbin/named -- -u named -n 2

Leads to the following error:
Code:
named: -u with Linux threads not supported: no capabilities support or capabilities disabled at build time


Bind was built with threads support so this confused me a little. Removing "-u named" and running as root worked just fine.

Turns out its due to lack of the "caps" user flag but this is not obvious from the error.

Posting this in-case anyone else has the same issue, just add the caps use flag and it should run as a non-root user once again.

My bind use flags:

Code:
[ebuild   R    ] net-dns/bind-9.8.1  USE="berkdb caps dlz geoip gost gssapi ipv6 ssl threads xml -doc -idn -ldap -mysql -odbc -pkcs11 -postgres -rpz -sdb-ldap (-selinux) -urandom" 0 kB


Regards

Haven
Back to top
View user's profile Send private message
theotherjoe
Guru
Guru


Joined: 22 Nov 2003
Posts: 393

PostPosted: Wed Oct 12, 2011 5:32 am    Post subject: Reply with quote

haven, thanks for posting!
had the same error message and couldn't figure out what was going on.
Code:
named: -u with Linux threads not supported: no capabilities support or capabilities
disabled at build time

simply enabling caps flag and I am back to a working NS in a
non-root setup. saved a lot of digging!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum