]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
unbound.service.in: drop CAP_IPC_LOCK
authorMaryse47 <41080948+Maryse47@users.noreply.github.com>
Tue, 28 Jan 2020 17:42:41 +0000 (18:42 +0100)
committerMaryse47 <41080948+Maryse47@users.noreply.github.com>
Tue, 28 Jan 2020 17:42:41 +0000 (18:42 +0100)
CAP_IPC_LOCK controls whether a process can lock pages into physical
memory (for instance to prevent passwords or private keys from
being swapped to disk), e.g. mmap() with the MAP_LOCKED flag or
shmctl() with the SHM_LOCK command, neither of which seem to be
used by unbound.

contrib/unbound.service.in
contrib/unbound_portable.service.in

index e3361db59f76b24b50f661ee5e2291ef1297dd9f..ec6b3ba28020fcc529e9c748b0fcb3e539d05e8a 100644 (file)
@@ -54,7 +54,7 @@ ExecReload=+/bin/kill -HUP $MAINPID
 ExecStart=@UNBOUND_SBIN_DIR@/unbound -d
 NotifyAccess=main
 Type=notify
-CapabilityBoundingSet=CAP_IPC_LOCK CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID CAP_SYS_CHROOT CAP_SYS_RESOURCE CAP_NET_RAW CAP_CHOWN
+CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID CAP_SYS_CHROOT CAP_SYS_RESOURCE CAP_NET_RAW CAP_CHOWN
 MemoryDenyWriteExecute=true
 NoNewPrivileges=true
 PrivateDevices=true
index 9e830cd21443b4d9d6ae572919fe9bd330ad816f..a77df49fab29559b57d5c799d985d859bb89d772 100644 (file)
@@ -28,7 +28,7 @@ ExecReload=+/bin/kill -HUP $MAINPID
 ExecStart=@UNBOUND_SBIN_DIR@/unbound -d
 NotifyAccess=main
 Type=notify
-CapabilityBoundingSet=CAP_IPC_LOCK CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID CAP_SYS_CHROOT CAP_SYS_RESOURCE CAP_NET_RAW CAP_CHOWN
+CapabilityBoundingSet=CAP_NET_BIND_SERVICE CAP_SETGID CAP_SETUID CAP_SYS_CHROOT CAP_SYS_RESOURCE CAP_NET_RAW CAP_CHOWN
 MemoryDenyWriteExecute=true
 NoNewPrivileges=true
 PrivateDevices=true