diff --git a/net/ieee8021xclient/Makefile b/net/ieee8021xclient/Makefile index 62a4f27387..11a057abe4 100644 --- a/net/ieee8021xclient/Makefile +++ b/net/ieee8021xclient/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ieee8021xclient -PKG_RELEASE:=3 +PKG_RELEASE:=4 PKG_LICENSE:=GPL-2.0-or-later include $(INCLUDE_DIR)/package.mk diff --git a/net/ieee8021xclient/files/ieee8021xclient.sh b/net/ieee8021xclient/files/ieee8021xclient.sh index 7681fb9d66..aaf1bb42d4 100755 --- a/net/ieee8021xclient/files/ieee8021xclient.sh +++ b/net/ieee8021xclient/files/ieee8021xclient.sh @@ -72,6 +72,14 @@ network={ ${eap_workaround:+eap_workaround=1} } EOF + + # The file carries the 802.1X identity and password, so keep it private. + # wpa_supplicant drops privileges and runs as the "network" user since + # OpenWrt 21.02, so hand the file to that user instead of making it + # world readable. + chown network:network "$_config" + chmod 600 "$_config" + ubus wait_for wpa_supplicant ubus call wpa_supplicant config_add "{ \"driver\":\"wired\", \"iface\": \"$ifname\", \"config\": \"$_config\" }" }