mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-16 08:23:47 +01:00
6c30e362ee
* add consoles abstraction where needed * not now
38 lines
837 B
Plaintext
38 lines
837 B
Plaintext
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2019-2021 Mikhail Morfikov
|
|
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}bin/dig
|
|
profile dig @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/consoles>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/openssl>
|
|
|
|
capability dac_override,
|
|
capability dac_read_search,
|
|
|
|
network inet dgram,
|
|
network inet6 dgram,
|
|
network inet stream,
|
|
network inet6 stream,
|
|
network netlink raw,
|
|
|
|
@{exec_path} mr,
|
|
|
|
owner @{HOME}/.digrc r,
|
|
owner @{HOME}/batch_mode.dig r,
|
|
owner @{HOME}/tsig.key r,
|
|
|
|
/tmp/batch_mode.dig r,
|
|
|
|
owner @{PROC}/@{pids}/task/@{tid}/comm rw,
|
|
|
|
include if exists <local/dig>
|
|
}
|