feat(profile): update cups profiles.

This commit is contained in:
Alexandre Pujol 2025-08-22 18:16:43 +02:00
parent ba217a261e
commit 2d3831221a
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
3 changed files with 45 additions and 1 deletions

View file

@ -38,7 +38,7 @@ profile cups-browsed @{exec_path} {
dbus receive bus=system path=/org/cups/cupsd/Notifier
interface=org.cups.cupsd.Notifier
member=PrinterDeleted
member={PrinterDeleted,PrinterStopped}
peer=(name=@{busname}, label=cups-notifier-dbus),
@{exec_path} mr,
@ -52,7 +52,10 @@ profile cups-browsed @{exec_path} {
/var/cache/cups/{,**} rw,
/var/log/cups/{,**} rw,
owner @{tmp}/@{hex} rw,
@{run}/cups/certs/* r,
@{run}/avahi-daemon/socket rw, # TODO: in abs 'avahi' ?
@{PROC}/sys/net/ipv6/conf/all/disable_ipv6 r,

View file

@ -0,0 +1,22 @@
# 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}/ippfind
profile ippfind @{exec_path} {
include <abstractions/base>
include <abstractions/bus-system>
include <abstractions/bus/org.freedesktop.Avahi>
@{exec_path} mr,
@{bin}/echo rix,
include if exists <local/ippfind>
}
# vim:syntax=apparmor

View file

@ -0,0 +1,19 @@
# 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} = @{lib}/@{multiarch}/print-backends/cups
profile print-backends-cups @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
@{exec_path} mr,
include if exists <local/print-backends-cups>
}
# vim:syntax=apparmor