Merge pull request #9 from nobodysu/bind-utils

bind-utils: add host and nslookup.
This commit is contained in:
Alex 2022-01-22 12:12:24 +01:00 committed by GitHub
commit 16096bbd85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 54 additions and 2 deletions

View File

@ -24,9 +24,13 @@ profile dig @{exec_path} {
@{exec_path} mr,
owner @{PROC}/@{pid}/task/@{tid}/comm rw,
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>
}

View File

@ -0,0 +1,24 @@
# apparmor.d - Full set of apparmor profiles
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{,usr/}bin/host
profile host @{exec_path} {
include <abstractions/base>
include <abstractions/openssl>
include <abstractions/nameservice-strict>
network inet dgram,
network inet6 dgram,
network inet stream,
network inet6 stream,
@{exec_path} r,
owner @{PROC}/@{pids}/task/@{tid}/comm rw,
include if exists <local/host>
}

View File

@ -0,0 +1,24 @@
# apparmor.d - Full set of apparmor profiles
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{,usr/}bin/nslookup
profile nslookup @{exec_path} {
include <abstractions/base>
include <abstractions/openssl>
include <abstractions/nameservice-strict>
network inet dgram,
network inet6 dgram,
network inet stream,
network inet6 stream,
@{exec_path} r,
owner @{PROC}/@{pids}/task/@{tid}/comm rw,
include if exists <local/nslookup>
}