feat(profile): update cups profiles.
This commit is contained in:
parent
ba217a261e
commit
2d3831221a
3 changed files with 45 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ profile cups-browsed @{exec_path} {
|
||||||
|
|
||||||
dbus receive bus=system path=/org/cups/cupsd/Notifier
|
dbus receive bus=system path=/org/cups/cupsd/Notifier
|
||||||
interface=org.cups.cupsd.Notifier
|
interface=org.cups.cupsd.Notifier
|
||||||
member=PrinterDeleted
|
member={PrinterDeleted,PrinterStopped}
|
||||||
peer=(name=@{busname}, label=cups-notifier-dbus),
|
peer=(name=@{busname}, label=cups-notifier-dbus),
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
@ -52,7 +52,10 @@ profile cups-browsed @{exec_path} {
|
||||||
/var/cache/cups/{,**} rw,
|
/var/cache/cups/{,**} rw,
|
||||||
/var/log/cups/{,**} rw,
|
/var/log/cups/{,**} rw,
|
||||||
|
|
||||||
|
owner @{tmp}/@{hex} rw,
|
||||||
|
|
||||||
@{run}/cups/certs/* r,
|
@{run}/cups/certs/* r,
|
||||||
|
@{run}/avahi-daemon/socket rw, # TODO: in abs 'avahi' ?
|
||||||
|
|
||||||
@{PROC}/sys/net/ipv6/conf/all/disable_ipv6 r,
|
@{PROC}/sys/net/ipv6/conf/all/disable_ipv6 r,
|
||||||
|
|
||||||
|
|
|
||||||
22
apparmor.d/groups/cups/ippfind
Normal file
22
apparmor.d/groups/cups/ippfind
Normal 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
|
||||||
19
apparmor.d/groups/cups/print-backends-cups
Normal file
19
apparmor.d/groups/cups/print-backends-cups
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue