feat(profile): add initial profile for papers.
This commit is contained in:
parent
efba6e164e
commit
5a448cb39d
2 changed files with 52 additions and 1 deletions
51
apparmor.d/groups/gnome/papers
Normal file
51
apparmor.d/groups/gnome/papers
Normal file
|
|
@ -0,0 +1,51 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2025 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/4.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = @{bin}/papers
|
||||||
|
profile papers @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/common/gnome>
|
||||||
|
include <abstractions/ssl_certs>
|
||||||
|
include <abstractions/user-download-strict>
|
||||||
|
include <abstractions/user-read-strict>
|
||||||
|
include <abstractions/user-write-strict>
|
||||||
|
|
||||||
|
#aa:dbus talk bus=session name=org.gtk.vfs label="gvfsd{,-*}"
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
@{open_path} Cx -> open,
|
||||||
|
|
||||||
|
/usr/share/poppler/{,**} r,
|
||||||
|
|
||||||
|
owner @{user_share_dirs}/gvfs-metadata/{,*} r,
|
||||||
|
|
||||||
|
owner @{tmp}/.goutputstream-@{rand6} rw,
|
||||||
|
owner @{tmp}/gtkprint_@{rand6} rw,
|
||||||
|
owner @{tmp}/gtkprint@{rand6} rw,
|
||||||
|
|
||||||
|
@{run}/mount/utab r,
|
||||||
|
|
||||||
|
owner @{PROC}/@{pid}/mountinfo r,
|
||||||
|
owner @{PROC}/@{pid}/stat r,
|
||||||
|
|
||||||
|
profile open {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/app/open>
|
||||||
|
|
||||||
|
@{browsers_path} Px,
|
||||||
|
@{help_path} Px,
|
||||||
|
@{bin}/papers Px,
|
||||||
|
|
||||||
|
include if exists <local/papers_open>
|
||||||
|
}
|
||||||
|
|
||||||
|
include if exists <local/papers>
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:syntax=apparmor
|
||||||
|
|
@ -257,7 +257,7 @@ nvidia-persistenced complain
|
||||||
ollama attach_disconnected,complain
|
ollama attach_disconnected,complain
|
||||||
os-prober attach_disconnected,complain
|
os-prober attach_disconnected,complain
|
||||||
pam_kwallet_init complain
|
pam_kwallet_init complain
|
||||||
pam-tmpdir-helper complain
|
papers complain
|
||||||
passimd attach_disconnected,complain
|
passimd attach_disconnected,complain
|
||||||
pkla-admin-identities complain
|
pkla-admin-identities complain
|
||||||
pkla-check-authorization complain
|
pkla-check-authorization complain
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue