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

10 lines
288 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 '{}' \;
find /var/lib/iwd/*.{psk,open} -exec restorecon -v '{}' \;
set +x