mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
nixos/pppd: allow AF_NETLINK
The pppd daemon starting with version 2.4.9 uses rtnetlink to configure the ipv6 peer address on the ppp interface. It therefore requires allowing AF_NETLINK sockets.
This commit is contained in:
parent
8abcc6ba09
commit
ee26807e35
@ -111,7 +111,17 @@ in
|
||||
ProtectKernelTunables = false;
|
||||
ProtectSystem = "strict";
|
||||
RemoveIPC = true;
|
||||
RestrictAddressFamilies = "AF_PACKET AF_UNIX AF_PPPOX AF_ATMPVC AF_ATMSVC AF_INET AF_INET6 AF_IPX";
|
||||
RestrictAddressFamilies = [
|
||||
"AF_ATMPVC"
|
||||
"AF_ATMSVC"
|
||||
"AF_INET"
|
||||
"AF_INET6"
|
||||
"AF_IPX"
|
||||
"AF_NETLINK"
|
||||
"AF_PACKET"
|
||||
"AF_PPPOX"
|
||||
"AF_UNIX"
|
||||
];
|
||||
RestrictNamespaces = true;
|
||||
RestrictRealtime = true;
|
||||
RestrictSUIDSGID = true;
|
||||
|
Loading…
Reference in New Issue
Block a user