qbittorrent: Avoid using nscd
This commit is contained in:
parent
7fc8a4694c
commit
3a12a3f53a
|
@ -94,6 +94,16 @@ in
|
||||||
# Increase number of open file descriptors (default: 1024)
|
# Increase number of open file descriptors (default: 1024)
|
||||||
LimitNOFILE = 65536;
|
LimitNOFILE = 65536;
|
||||||
|
|
||||||
|
# Avoid using nscd (leaks dns)
|
||||||
|
InaccessiblePaths = [
|
||||||
|
"/run/nscd"
|
||||||
|
];
|
||||||
|
# Make correct resolv.conf available for unit
|
||||||
|
BindReadOnlyPaths = [
|
||||||
|
"/etc/netns/qbittorrent/resolv.conf:/etc/resolv.conf"
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
# systemd-analyze --no-pager security qbittorrent.service
|
# systemd-analyze --no-pager security qbittorrent.service
|
||||||
CapabilityBoundingSet = null;
|
CapabilityBoundingSet = null;
|
||||||
PrivateDevices = true;
|
PrivateDevices = true;
|
||||||
|
|
Loading…
Reference in a new issue