34 lines
943 B
Text
34 lines
943 B
Text
# 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} = @{libexec}/gsd-sharing
|
|
profile gsd-sharing @{exec_path} flags=(attach_disconnected) {
|
|
include <abstractions/base>
|
|
include <abstractions/dbus-network-manager-strict>
|
|
include <abstractions/dbus-session-strict>
|
|
include <abstractions/dbus-strict>
|
|
include <abstractions/dconf-write>
|
|
|
|
signal (receive) set=(term, hup) peer=gdm*,
|
|
|
|
dbus receive bus=system path=/org/freedesktop/NetworkManager
|
|
interface=org.freedesktop.DBus.Properties
|
|
member=PropertiesChanged,
|
|
|
|
@{exec_path} mr,
|
|
|
|
/usr/share/dconf/profile/gdm r,
|
|
/usr/share/gdm/greeter-dconf-defaults r,
|
|
/usr/share/glib-2.0/schemas/gschemas.compiled r,
|
|
|
|
/var/lib/gdm/.config/dconf/user r,
|
|
|
|
owner /dev/tty[0-9]* rw,
|
|
|
|
include if exists <local/gsd-sharing>
|
|
}
|