More consoles requirement after sshd introduction (#44)

* consoles requirement after sshd introduction

* one more
This commit is contained in:
nobodysu 2022-06-01 17:50:05 +00:00 committed by GitHub
parent e2b7f6594c
commit b4f7ed185c
Failed to generate hash of commit
9 changed files with 17 additions and 0 deletions

View file

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

View file

@ -9,6 +9,7 @@ include <tunables/global>
@{exec_path} = /{usr/,}bin/last{,b}
profile last @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/nameservice-strict>
include <abstractions/wutmp>
@ -21,5 +22,8 @@ profile last @{exec_path} {
@{PROC}/@{pids}/loginuid r,
/var/log/wtmp r,
/var/log/btmp{,.[0-9]*} r,
include if exists <local/last>
}

View file

@ -9,6 +9,7 @@ include <tunables/global>
@{exec_path} = /{usr/,}bin/lastlog
profile lastlog @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/nameservice-strict>
network netlink raw,
@ -18,5 +19,7 @@ profile lastlog @{exec_path} {
/var/log/lastlog r,
/etc/login.defs r,
@{run}/systemd/userdb/io.systemd.DynamicUser w,
include if exists <local/lastlog>
}

View file

@ -9,6 +9,7 @@ include <tunables/global>
@{exec_path} = /{usr/,}bin/lscpu
profile lscpu @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
@{exec_path} mr,

View file

@ -10,6 +10,7 @@ include <tunables/global>
@{exec_path} = /{usr/,}bin/passwd
profile passwd @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/authentication>
include <abstractions/nameservice-strict>
include <abstractions/wutmp>

View file

@ -11,6 +11,7 @@ include <tunables/global>
@{exec_path} = /{usr/,}bin/top
profile top @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/wutmp>
include <abstractions/nameservice-strict>

View file

@ -9,6 +9,7 @@ include <tunables/global>
@{exec_path} = /{usr/,}bin/uptime
profile uptime @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/wutmp>
@{exec_path} mr,

View file

@ -9,8 +9,12 @@ include <tunables/global>
@{exec_path} = /{usr/,}bin/usb-devices
profile usb-devices @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/devices-usb>
capability dac_read_search,
deny capability dac_override,
@{exec_path} r,
/{usr/,}bin/{,ba,da}sh rix,

View file

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