]> 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:20:55 +0000 (13:20 +0200)
commitbdf93ee7896f4055f862ae82e6eadcf35f7f9cc9
tree2bc9f7e8997d30cadeff6b514798e5fa43b43c5a
parentc6ff9f1d192dbb48cd32dab881a511dd9565d376
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