# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2026 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only

# Allow ingress DNS connection

  abi <abi/4.0>,

  include <abstractions/network/tcp>
  include <abstractions/network/udp>

  network bind tcp port=53,
  network (accept listen send receive) tcp port=53,

  network bind udp port=53,
  network (send receive) udp port=53,

  include if exists <abstractions/network/in/domain.d>

# vim:syntax=apparmor
