Compare commits
No commits in common. "fe2348a725246f3ed83e0f31a4330bfce5e2eb38" and "e7ecf8707d04cfcf5d9bb8363b9e3f717f58889f" have entirely different histories.
fe2348a725
...
e7ecf8707d
12
lnxrouter
12
lnxrouter
|
@ -2087,9 +2087,8 @@ run_wifi_ap_processes() {
|
||||||
echo
|
echo
|
||||||
echo "Starting hostapd"
|
echo "Starting hostapd"
|
||||||
|
|
||||||
if COMPLAIN_CMD="$(command -v aa-complain || command -v complain)"; then
|
if which complain > /dev/null 2>&1; then
|
||||||
echo "Setting hostapd to AppArmor complain mode..."
|
complain hostapd
|
||||||
"$COMPLAIN_CMD" hostapd
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# hostapd '-P' works only when use '-B' (run in background)
|
# hostapd '-P' works only when use '-B' (run in background)
|
||||||
|
@ -2109,9 +2108,10 @@ start_dnsmasq() {
|
||||||
echo
|
echo
|
||||||
echo "Starting dnsmasq"
|
echo "Starting dnsmasq"
|
||||||
|
|
||||||
if COMPLAIN_CMD="$(command -v aa-complain || command -v complain)"; then
|
if which complain > /dev/null 2>&1; then
|
||||||
echo "Setting dnsmasq to AppArmor complain mode..."
|
# openSUSE's apparmor does not allow dnsmasq to read files.
|
||||||
"$COMPLAIN_CMD" dnsmasq
|
# remove restriction.
|
||||||
|
complain dnsmasq
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Using '-d'(no daemon) dnsmasq will not turn into 'nobody'
|
# Using '-d'(no daemon) dnsmasq will not turn into 'nobody'
|
||||||
|
|
Loading…
Reference in New Issue