mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-22 01:57:43 +00:00
Merge add apparmor profile for dig
MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1525 Approved-by: Ryan Lee <rlee287@yahoo.com> Approved-by: Maxime Bélair <maxime.belair@canonical.com> Merged-by: Maxime Bélair <maxime.belair@canonical.com>
This commit is contained in:
commit
97dc70606b
46
profiles/apparmor.d/dig
Normal file
46
profiles/apparmor.d/dig
Normal file
@ -0,0 +1,46 @@
|
||||
#------------------------------------------------------------------
|
||||
# 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 <abi/4.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
profile dig /usr/bin/dig {
|
||||
include <abstractions/base>
|
||||
include <abstractions/nameservice-strict>
|
||||
include <abstractions/private-files-strict>
|
||||
include <abstractions/ssl_certs>
|
||||
|
||||
/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,
|
||||
|
||||
# Site-specific additions and overrides. See local/README for details.
|
||||
include if exists <local/dig>
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user