]> git.ipfire.org Git - thirdparty/bind9.git/commit
Only request permitted capabilities in non-libcap builds
authorMichał Kępień <michal@isc.org>
Tue, 26 Jun 2018 11:18:00 +0000 (13:18 +0200)
committerMichał Kępień <michal@isc.org>
Tue, 26 Jun 2018 11:19:58 +0000 (13:19 +0200)
commit4b0129f34b9060016f0b2be856c23ec6bbee706e
tree763476ddc5662d4986e2edc5d21f0b046aef32bc
parent94d8ec0b211f4d825ffe5c7b18b9d54f1c444d0e
Only request permitted capabilities in non-libcap builds

While libcap-enabled builds check whether any capability named requests
is within the permitted capability set, non-libcap builds just try
requesting them, which potentially causes a misleading error message to
be output ("Operation not permitted: please ensure that the capset
kernel module is loaded").  Ensure non-libcap builds also check whether
any requested capability is within the permitted capability set.

(cherry picked from commit 8c66f32e53761dfa033dab3d366594683d24ce28)
bin/named/unix/os.c