mirror of
https://github.com/safing/portmaster
synced 2025-09-07 21:19:11 +00:00
10 lines
No EOL
307 B
Bash
10 lines
No EOL
307 B
Bash
#!/bin/bash
|
|
|
|
#
|
|
# Remove selinux permissions for portmaster-core if we have semanage
|
|
# available.
|
|
#
|
|
if command -V semanage >/dev/null 2>&1; then
|
|
semanage fcontext --delete $(realpath /usr/lib)'/portmaster/portmaster-core' || :
|
|
restorecon -R /usr/lib/portmaster/portmaster-core 2>/dev/null >&2 || :
|
|
fi |