fix: minor profiles fixes.

This commit is contained in:
Alexandre Pujol 2023-09-10 12:41:47 +01:00
parent 4f10cf802e
commit b9fb4b72d2
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
6 changed files with 11 additions and 8 deletions

View file

@ -19,7 +19,7 @@ profile aa-enforce @{exec_path} {
@{bin}/ r,
@{bin}/apparmor_parser rPx,
/usr/share/terminfo/x/* r,
/usr/share/terminfo/{,**} r,
/etc/apparmor/logprof.conf r,
/etc/apparmor.d/{,**} rw,

View file

@ -1,5 +1,6 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2019-2021 Mikhail Morfikov
# Copyright (C) 2021-2023 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
@ -42,12 +43,12 @@ profile adduser @{exec_path} {
/etc/adduser.conf r,
/etc/skel/{,.*} r,
@{run}/adduser wk,
# To create user dirs and copy files from /etc/skel/ to them
@{HOME}/ rw,
@{HOME}/.* w,
/var/lib/*/{,*} rw,
@{run}/adduser wk,
include if exists <local/adduser>
}