shell-things/var/lib/iwd/fix-networkmanager-iwd-selinux.bash

11 lines
258 B
Bash
Raw Permalink Normal View History

2024-08-11 08:28:15 +02:00
#!/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