]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Edit the systemd unit file, `CAP_BPF` is no longer enough 14281/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 4 Jun 2024 14:28:31 +0000 (16:28 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 4 Jun 2024 14:28:31 +0000 (16:28 +0200)
We used to be able to use only `CAP_BPF` since kernel 5.8, but the
eBPF verifier has been made more strict a few versions later and we
now require `CAP_SYS_ADMIN` again.

pdns/dnsdistdist/dnsdist.service.in

index eb75e7632a511bd478340c2f8e0f6195c9b521a8..bd810fd912cbe7d868fbec3c7b7b415a95a0564a 100644 (file)
@@ -25,10 +25,10 @@ LimitNOFILE=16384
 # LimitMEMLOCK=infinity
 
 # Sandboxing
-# Note: adding CAP_SYS_ADMIN (or CAP_BPF for Linux >= 5.8) is required to use eBPF support,
+# Note: adding CAP_SYS_ADMIN is required to use eBPF support,
 # and CAP_NET_RAW to be able to set the source interface to contact a backend
 # If an AppArmor policy is in use, it might have to be updated to allow dnsdist to keep the
-# capability: adding a 'capability bpf,' (for CAP_BPF) line to the policy is usually enough.
+# capability: adding a 'capability sys_admin,' line to the policy is usually enough.
 CapabilityBoundingSet=CAP_NET_BIND_SERVICE
 AmbientCapabilities=CAP_NET_BIND_SERVICE
 LockPersonality=true