Use 'aa-complain' instead of 'complain' to remove dnsmasq restriction

This commit is contained in:
tipex360 2023-05-10 05:06:48 +01:00
parent aabe18aa57
commit 89c5988e37

View File

@ -1879,10 +1879,10 @@ if [[ "$SHARE_METHOD" != "bridge" ]]; then
if [[ $NO_DNSMASQ -eq 0 ]]; then if [[ $NO_DNSMASQ -eq 0 ]]; then
iptables -w -I INPUT -p udp -m udp --dport 67 -j ACCEPT || die iptables -w -I INPUT -p udp -m udp --dport 67 -j ACCEPT || die
if which complain > /dev/null 2>&1; then if which aa-complain > /dev/null 2>&1; then
# openSUSE's apparmor does not allow dnsmasq to read files. # openSUSE's apparmor does not allow dnsmasq to read files.
# remove restriction. # remove restriction.
complain dnsmasq aa-complain dnsmasq
fi fi
umask 0033 umask 0033