nixos/snapserver: add AF_NETLINK to allowed address families
This is necessary for Librespot, which is spawned by snapserver in the same cgroup. Librespot requires querying local ip links and addresses for MDNS (Zeroconf/Avahi), and does so through NETLINK interface.
This commit is contained in:
parent
a36cc03d96
commit
255882fbcc
@ -286,7 +286,7 @@ in {
|
|||||||
ProtectKernelTunables = true;
|
ProtectKernelTunables = true;
|
||||||
ProtectControlGroups = true;
|
ProtectControlGroups = true;
|
||||||
ProtectKernelModules = true;
|
ProtectKernelModules = true;
|
||||||
RestrictAddressFamilies = "AF_INET AF_INET6 AF_UNIX";
|
RestrictAddressFamilies = "AF_INET AF_INET6 AF_UNIX AF_NETLINK";
|
||||||
RestrictNamespaces = true;
|
RestrictNamespaces = true;
|
||||||
RuntimeDirectory = name;
|
RuntimeDirectory = name;
|
||||||
StateDirectory = name;
|
StateDirectory = name;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user