shell-things/var/lib/iwd/fix-networkmanager-iwd-selinux.bash
Aminda Suomalainen 0a9896314f
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.
2025-05-14 14:10:44 +03:00

9 lines
229 B
Bash
Executable File

#!/usr/bin/env bash
# This script should resolve SELINUX warnings about NetworkManager not
# permitted to unlink files.
set -x
find /var/lib/iwd/*.{psk,open} -exec semanage fcontext -a -t NetworkManager_etc_rw_t '{}' \;
set +x