fix-networkmanager-iwd-selinux.bash

This commit is contained in:
Aminda Suomalainen 2024-08-11 09:28:15 +03:00
parent 40dceee1b6
commit e0096c8302
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
# This script should resolve SELINUX warnings about NetworkManager not
# 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
set +x