From 75eba5f2d34ff165b968cf98d1bfd2f1075c0ffa Mon Sep 17 00:00:00 2001 From: desbma-s1n Date: Thu, 26 Oct 2023 17:55:21 +0200 Subject: [PATCH] fix: list of address families missing some chars --- src/systemd/options.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/systemd/options.rs b/src/systemd/options.rs index 96713f1..8041148 100644 --- a/src/systemd/options.rs +++ b/src/systemd/options.rs @@ -1104,12 +1104,13 @@ pub fn build_options( // https://www.freedesktop.org/software/systemd/man/systemd.exec.html#RestrictAddressFamilies= // https://man7.org/linux/man-pages/man7/address_families.7.html + // curl https://man7.org/linux/man-pages/man7/address_families.7.html | grep -o 'AF_[A-Za-z0-9]*' | sort -u | xargs -I'{}' echo \"'{}'\", let afs = [ "AF_ALG", "AF_APPLETALK", "AF_ATMPVC", "AF_ATMSVC", - "AF_AX", + "AF_AX25", "AF_BLUETOOTH", "AF_BRIDGE", "AF_CAIF", @@ -1117,8 +1118,9 @@ pub fn build_options( "AF_DECnet", "AF_ECONET", "AF_IB", - "AF_IEEE", + "AF_IEEE802154", "AF_INET", + "AF_INET6", "AF_IPX", "AF_IRDA", "AF_ISDN", @@ -1144,7 +1146,7 @@ pub fn build_options( "AF_UNIX", "AF_VSOCK", "AF_WANPIPE", - "AF_X", + "AF_X25", "AF_XDP", ]; options.push(OptionDescription {