feat(profile): general update.

This commit is contained in:
Alexandre Pujol 2024-10-14 19:32:48 +01:00
parent 48751f75b2
commit 185dc96d45
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
48 changed files with 165 additions and 120 deletions

View file

@ -1,4 +1,5 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/4.0>,

View file

@ -11,10 +11,8 @@ profile file-roller @{exec_path} {
include <abstractions/base>
include <abstractions/bus/org.freedesktop.portal.Desktop>
include <abstractions/common/gnome>
include <abstractions/deny-sensitive-home>
include <abstractions/nameservice-strict>
include <abstractions/user-download-strict>
include <abstractions/user-read-strict>
include <abstractions/user-write-strict>
#aa:dbus own bus=session name=org.gnome.ArchiveManager1
#aa:dbus own bus=session name=org.gnome.FileRoller
@ -23,6 +21,9 @@ profile file-roller @{exec_path} {
@{open_path} rPx -> child-open-help,
@{bin}/mv rix,
@{bin}/rm rix,
# Archivers
@{bin}/7z rix,
@{bin}/7zz rix,
@ -38,6 +39,11 @@ profile file-roller @{exec_path} {
@{bin}/zstd rix,
@{lib}/p7zip/7z rix,
# Full access to user's data
@{MOUNTS}/** rw,
owner @{HOME}/** rw,
owner @{tmp}/** rw,
@{run}/mount/utab r,
owner @{PROC}/@{pid}/mountinfo r,

View file

@ -62,6 +62,8 @@ profile flatpak @{exec_path} flags=(attach_disconnected,mediate_deleted,complain
owner @{HOME}/.var/ w,
owner @{HOME}/.var/app/{,**} rw,
owner @{user_documents_dirs}/ rw,
owner @{user_cache_dirs}/flatpak/{,**} rw,
owner @{user_config_dirs}/pulse/client.conf r,
owner @{user_config_dirs}/user-dirs.dirs r,