fix-networkmanager-iwd-selinux.bash: accidentally become oneliner find

The original script didn't handle spaces in SSIDs and then I noticed warning about find -exec being better than find in for which may be unreliable and after some manual reading I ended up with this.
This commit is contained in:
Aminda Suomalainen 2025-05-14 14:10:44 +03:00
parent da02c114ae
commit 0a9896314f
Signed by: Mikaela
GPG Key ID: 99392F62BAE30723

View File

@ -4,7 +4,5 @@
# permitted to unlink files.
set -x
for targetfile in $(find /var/lib/iwd/*.{psk,open}); do
semanage fcontext -a -t NetworkManager_etc_rw_t $targetfile
done
find /var/lib/iwd/*.{psk,open} -exec semanage fcontext -a -t NetworkManager_etc_rw_t '{}' \;
set +x