2022-08-31 23:10:41 +02:00
|
|
|
# apparmor.d - Full set of apparmor profiles
|
2024-02-07 00:16:21 +01:00
|
|
|
# Copyright (C) 2022-2024 Alexandre Pujol <alexandre@pujol.io>
|
2022-08-31 23:10:41 +02:00
|
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
|
|
|
|
abi <abi/3.0>,
|
|
|
|
|
|
|
|
include <tunables/global>
|
|
|
|
|
2023-07-09 15:23:22 +02:00
|
|
|
@{exec_path} = @{lib}/cups/backend/usb
|
2022-08-31 23:10:41 +02:00
|
|
|
profile cups-backend-usb @{exec_path} {
|
|
|
|
include <abstractions/base>
|
|
|
|
include <abstractions/devices-usb>
|
|
|
|
|
2024-05-01 15:22:42 +02:00
|
|
|
capability net_admin,
|
|
|
|
|
2022-08-31 23:10:41 +02:00
|
|
|
network netlink raw,
|
|
|
|
|
|
|
|
@{exec_path} mr,
|
|
|
|
|
|
|
|
/usr/share/cups/usb/{,**} r,
|
|
|
|
|
|
|
|
/etc/cups/ppd/*.ppd r,
|
|
|
|
/etc/papersize r,
|
|
|
|
|
|
|
|
include if exists <local/cups-backend-usb>
|
2024-06-15 16:13:21 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
# vim:syntax=apparmor
|