Merge pull request #9 from nobodysu/bind-utils
bind-utils: add host and nslookup.
This commit is contained in:
commit
16096bbd85
3 changed files with 54 additions and 2 deletions
|
|
@ -24,9 +24,13 @@ profile dig @{exec_path} {
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
owner @{PROC}/@{pid}/task/@{tid}/comm rw,
|
|
||||||
|
|
||||||
owner @{HOME}/.digrc r,
|
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>
|
include if exists <local/dig>
|
||||||
}
|
}
|
||||||
|
|
|
||||||
24
apparmor.d/profiles-g-l/host
Normal file
24
apparmor.d/profiles-g-l/host
Normal 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>
|
||||||
|
}
|
||||||
24
apparmor.d/profiles-m-r/nslookup
Normal file
24
apparmor.d/profiles-m-r/nslookup
Normal 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>
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue