mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-02-07 02:35:06 +01:00
34 lines
No EOL
867 B
Text
34 lines
No EOL
867 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2022-2024 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = @{lib}/{,cups-pk-helper/}cups-pk-helper-mechanism
|
|
@{exec_path} += @{lib}/@{multiarch}/cups-pk-helper-mechanism
|
|
profile cups-pk-helper-mechanism @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/bus-system>
|
|
include <abstractions/bus/org.freedesktop.PolicyKit1>
|
|
include <abstractions/nameservice-strict>
|
|
|
|
capability dac_read_search,
|
|
capability sys_nice,
|
|
|
|
network inet stream,
|
|
network inet6 stream,
|
|
|
|
#aa:dbus own bus=system name=org.opensuse.CupsPkHelper.Mechanism path=/
|
|
|
|
@{exec_path} mr,
|
|
|
|
/etc/cups/ppd/*.ppd r,
|
|
|
|
owner /tmp/[a-z0-9]* rw,
|
|
|
|
@{run}/cups/cups.sock rw,
|
|
|
|
include if exists <local/cups-pk-helper-mechanism>
|
|
} |