feat(profiles): general update.

This commit is contained in:
Alexandre Pujol 2023-09-01 22:50:43 +01:00
parent 0c151259d2
commit b2fa7bacb8
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
19 changed files with 108 additions and 72 deletions

View file

@ -1,5 +1,5 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
# Copyright (C) 2021-2023 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
@ -9,8 +9,10 @@ include <tunables/global>
@{exec_path} = @{lib}/apparmor/apparmor.systemd
profile apparmor.systemd @{exec_path} flags=(complain) {
include <abstractions/base>
include <abstractions/consoles>
include <abstractions/nameservice-strict>
capability dac_read_search,
capability mac_admin,
@{exec_path} mr,

View file

@ -22,7 +22,8 @@ profile dkms @{exec_path} flags=(attach_disconnected) {
unix (receive) type=stream,
@{exec_path} r,
@{exec_path} rm,
@{bin}/cat rix,
@{bin}/cp rix,
@{bin}/cut rix,

View file

@ -12,7 +12,8 @@ profile dkms-autoinstaller @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
@{exec_path} r,
@{exec_path} rm,
@{bin}/{,ba,da}sh rix,
@{bin}/dkms rPx,
@{bin}/echo rix,