add consoles abstraction where needed

This commit is contained in:
nobodysu 2022-05-23 00:24:43 +03:00
parent 99106a2231
commit 26f92f0c7c
4 changed files with 6 additions and 0 deletions

View file

@ -10,6 +10,7 @@ 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>

View file

@ -8,6 +8,7 @@ include <tunables/global>
@{exec_path} = /{,usr/}bin/host
profile host @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/openssl>
include <abstractions/nameservice-strict>

View file

@ -8,6 +8,7 @@ include <tunables/global>
@{exec_path} = /{,usr/}bin/nslookup
profile nslookup @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/openssl>
include <abstractions/nameservice-strict>

View file

@ -8,6 +8,7 @@ include <tunables/global>
@{exec_path} = /{,usr/}bin/ss
profile ss @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/nameservice-strict>
capability net_admin,
@ -41,5 +42,7 @@ profile ss @{exec_path} {
owner @{PROC}/@{pids}/mounts r,
@{sys}/fs/cgroup/{,**/} r,
owner /dev/tty[0-9]* rw,
include if exists <local/ss>
}