Skip to content

Commit

Permalink
Merge pull request #314 from TiPEX360/arch-opensuse-create_ap-fix
Browse files Browse the repository at this point in the history
Use 'aa-complain' instead of 'complain' to remove dnsmasq restriction
  • Loading branch information
lakinduakash authored May 17, 2023
2 parents aabe18a + 7b61d13 commit 6a236ac
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/scripts/create_ap
Original file line number Diff line number Diff line change
Expand Up @@ -1879,10 +1879,12 @@ if [[ "$SHARE_METHOD" != "bridge" ]]; then
if [[ $NO_DNSMASQ -eq 0 ]]; then
iptables -w -I INPUT -p udp -m udp --dport 67 -j ACCEPT || die

if which complain > /dev/null 2>&1; then
# openSUSE's apparmor does not allow dnsmasq to read files.
# remove restriction.
complain dnsmasq

# apparmor does not allow dnsmasq to read files.
# remove restriction.

if COMPLAIN_CMD=$(command -v complain || command -v aa-complain); then
$COMPLAIN_CMD dnsmasq
fi

umask 0033
Expand Down

0 comments on commit 6a236ac

Please sign in to comment.