add profile for whois

This commit is contained in:
valoq 2025-06-18 22:27:18 +02:00
parent d01b7ce7d6
commit 1833cbae0e
No known key found for this signature in database
GPG key ID: 19F09A0FB865CBD8

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