mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-23 03:39:22 +01:00
fix-networkmanager-iwd-selinux.bash
This commit is contained in:
parent
40dceee1b6
commit
e0096c8302
10
var/lib/iwd/fix-networkmanager-iwd-selinux.bash
Executable file
10
var/lib/iwd/fix-networkmanager-iwd-selinux.bash
Executable 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
|
Loading…
Reference in New Issue
Block a user