add profile for whois

This commit is contained in:
valoq 2025-06-18 22:27:18 +02:00 committed by Alex
parent 97d5fe3f68
commit a79e46acdd

View file

@ -0,0 +1,27 @@
# 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
profile whois @{exec_path} {
include <abstractions/base>
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.d>
}
# vim:syntax=apparmor