systemd: base "RestrictAddressFamilies" on build options
This allows to not allow `AF_NETLINK` if `smbclient` is not enabled.
This commit is contained in:
@@ -27,8 +27,7 @@ NoNewPrivileges=yes
|
||||
ProtectKernelTunables=yes
|
||||
ProtectControlGroups=yes
|
||||
ProtectKernelModules=yes
|
||||
# AF_NETLINK is required by libsmbclient, or it will exit() .. *sigh*
|
||||
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX AF_NETLINK
|
||||
RestrictAddressFamilies=@address_families@
|
||||
RestrictNamespaces=yes
|
||||
|
||||
[Install]
|
||||
|
Reference in New Issue
Block a user