# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2025 valoq <valoq@mailbox.org>
# SPDX-License-Identifier: GPL-2.0-only

abi <abi/4.0>,

include <tunables/global>

@{exec_path} = @{bin}/whois
@{att} = ""
profile whois /{,usr/}bin/whois flags=(complain) {
  include <abstractions/base-strict>
  include <abstractions/nameservice-strict>

  network inet dgram,
  network inet6 dgram,
  network inet stream,
  network inet6 stream,
  network netlink raw,

  @{exec_path} mr,

  /etc/whois.conf r,

  include if exists <local/whois>
}

# vim:syntax=apparmor
