feat(profiles): general update.

This commit is contained in:
Alexandre Pujol 2023-09-12 22:59:07 +01:00
parent 6c397882ad
commit 6db83003c7
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
33 changed files with 98 additions and 56 deletions

View file

@ -26,7 +26,7 @@ profile aa-enforce @{exec_path} {
/etc/inputrc r,
owner /snap/core[0-9]*/@{int}/etc/apparmor.d/{,**} rw,
owner /snap/core@{int}/@{int}/etc/apparmor.d/{,**} rw,
owner /var/lib/snapd/apparmor/{,**} rw,
owner @{PROC}/@{pid}/fd r,

View file

@ -28,6 +28,11 @@ profile boltd @{exec_path} flags=(attach_disconnected) {
interface=org.freedesktop.DBus.Properties
member=GetAll,
dbus receive bus=system path=/org/freedesktop/PolicyKit1/Authority
interface=org.freedesktop.PolicyKit1.Authority
member=Changed
peer=(name=:*, label=polkitd),
dbus receive bus=system path=/org/freedesktop/bolt
interface=org.freedesktop.bolt1.Manager
member=ListDevices,

View file

@ -1,4 +1,5 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
include <tunables/global>
@ -17,16 +18,16 @@ profile chpasswd @{exec_path} {
/etc/.pwd.lock wk,
/etc/login.defs r,
/etc/shadow rw,
/etc/shadow.@{int} w,
/etc/shadow.lock w, # change to 'd'
/etc/shadow.lock l -> /etc/shadow.@{int},
/etc/shadow- w,
/etc/shadow+ rw,
/etc/passwd rw,
/etc/passwd.@{int} w,
/etc/passwd.lock w, # change to 'd'
/etc/passwd.lock l -> /etc/passwd.@{int},
/etc/passwd.lock w,
/etc/shadow rw,
/etc/shadow- w,
/etc/shadow.@{int} w,
/etc/shadow.lock l -> /etc/shadow.@{int},
/etc/shadow.lock w,
/etc/shadow+ rw,
include if exists <local/chpasswd>
}

View file

@ -56,7 +56,7 @@ profile dkms @{exec_path} flags=(attach_disconnected) {
@{bin}/{,g,m}awk rix,
@{bin}/update-secureboot-policy rPUx,
@{lib}/gcc/@{multiarch}/@{int}/* rix,
@{lib}/gcc/@{multiarch}/@{int}*/* rix,
@{lib}/linux-kbuild-*/scripts/** rix,
@{lib}/linux-kbuild-*/tools/objtool/objtool rix,
@{lib}/llvm-[0-9]*/bin/clang rix,