#------------------------------------------------------------------ # Copyright (C) 2025 Canonical Ltd. # # This program is free software; you can redistribute it and/or # modify it under the terms of version 2 of the GNU General Public # License published by the Free Software Foundation. #------------------------------------------------------------------ # vim: ft=apparmor # abi , include profile dig /usr/bin/dig { include include include include # Temporarily needed until fd delegation lands # Also needed while delegation from unconfined is broken include /usr/bin/dig mr, network inet dgram, network inet6 dgram, network inet stream, network inet6 stream, capability dac_override, capability dac_read_search, # +trace network (create,bind,getattr,send,receive) netlink raw, file r /proc/version_signature, # -f, -k, +tls-ca, +tls-certfile, +tls-keyfile file r @{HOME}/[^.]**, owner rw @{HOME}/.dig/**, ## denied by private-files-strict priority=1 owner r @{HOME}/.digrc, owner @{PROC}/@{pid}/task/@{tid}/comm rw, @{PROC}/sys/net/ipv4/ip_local_port_range r, # Site-specific additions and overrides. See local/README for details. include if exists }