Compare commits

..

1 Commits

Author SHA1 Message Date
Diogo Carvalho 33337c39a2
Merge 77b4189d97 into e7ecf8707d 2024-10-13 07:32:00 +03:00
1 changed files with 6 additions and 6 deletions

View File

@ -2100,9 +2100,8 @@ run_wifi_ap_processes() {
echo
echo "Starting hostapd"
if COMPLAIN_CMD="$(command -v aa-complain || command -v complain)"; then
echo "Setting hostapd to AppArmor complain mode..."
"$COMPLAIN_CMD" hostapd
if which complain > /dev/null 2>&1; then
complain hostapd
fi
# hostapd '-P' works only when use '-B' (run in background)
@ -2122,9 +2121,10 @@ start_dnsmasq() {
echo
echo "Starting dnsmasq"
if COMPLAIN_CMD="$(command -v aa-complain || command -v complain)"; then
echo "Setting dnsmasq to AppArmor complain mode..."
"$COMPLAIN_CMD" dnsmasq
if which complain > /dev/null 2>&1; then
# openSUSE's apparmor does not allow dnsmasq to read files.
# remove restriction.
complain dnsmasq
fi
# Using '-d'(no daemon) dnsmasq will not turn into 'nobody'