feat(profiles): add ubuntu-advantage-desktop-daemon.
This commit is contained in:
parent
205c2d7184
commit
9f2b68dd5d
1 changed files with 40 additions and 0 deletions
40
apparmor.d/groups/ubuntu/ubuntu-advantage-desktop-daemon
Normal file
40
apparmor.d/groups/ubuntu/ubuntu-advantage-desktop-daemon
Normal 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>
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue