mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-12-01 15:59:22 +01:00
11 lines
258 B
Bash
11 lines
258 B
Bash
|
#!/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
|