feat(profiles): add ubuntu-advantage-desktop-daemon.

This commit is contained in:
Alexandre Pujol 2022-09-26 14:59:54 +01:00
parent 205c2d7184
commit 9f2b68dd5d
No known key found for this signature in database
GPG Key ID: C5469996F0DF68EC

View File

@ -0,0 +1,40 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{libexec}/ubuntu-advantage-desktop-daemon
profile ubuntu-advantage-desktop-daemon @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/dbus-strict>
include <abstractions/nameservice-strict>
capability sys_nice,
dbus send bus=system path=/org/freedesktop/DBus
interface=org.freedesktop.DBus
member=RequestName
peer=(name=org.freedesktop.DBus),
dbus receive bus=system path=/com/canonical/UbuntuAdvantage/Manager
interface=org.freedesktop.DBus.Introspectable
member=Introspect,
dbus receive bus=system path=/
interface=org.freedesktop.DBus.Introspectable
member=Introspect,
dbus receive bus=system path=/
interface=org.freedesktop.DBus.ObjectManager
member=GetManagedObjects,
dbus bind bus=system
name=com.canonical.UbuntuAdvantage,
@{exec_path} mr,
include if exists <local/ubuntu-advantage-desktop-daemon>
}