Skip to content

Commit

Permalink
fix: list of address families missing some chars
Browse files Browse the repository at this point in the history
  • Loading branch information
desbma-s1n committed Oct 26, 2023
1 parent 5382435 commit 75eba5f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/systemd/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1104,21 +1104,23 @@ 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",
"AF_CAN",
"AF_DECnet",
"AF_ECONET",
"AF_IB",
"AF_IEEE",
"AF_IEEE802154",
"AF_INET",
"AF_INET6",
"AF_IPX",
"AF_IRDA",
"AF_ISDN",
Expand All @@ -1144,7 +1146,7 @@ pub fn build_options(
"AF_UNIX",
"AF_VSOCK",
"AF_WANPIPE",
"AF_X",
"AF_X25",
"AF_XDP",
];
options.push(OptionDescription {
Expand Down

0 comments on commit 75eba5f

Please sign in to comment.