Add all gsd-* profiles.

This commit is contained in:
Alexandre Pujol 2021-04-02 10:26:15 +01:00
parent e3d08f3de7
commit b6152def16
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
18 changed files with 554 additions and 0 deletions

View file

@ -0,0 +1,27 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = /{usr/,}lib/gsd-print-notifications
profile gsd-print-notifications @{exec_path} flags=(attach_disconnected complain) {
include <abstractions/base>
include <abstractions/nameservice-strict>
network inet stream,
network inet6 stream,
signal (send) set=(hup) peer=gsd-printer,
@{exec_path} mr,
/{usr/,}lib/gsd-printer rPx,
owner @{PROC}/@{pid}/fd/ r,
owner /dev/tty[0-9]* rw,
include if exists <local/gsd-print-notifications>
}