mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
feat(profiles): add ubuntu-advantage-desktop-daemon.
This commit is contained in:
parent
205c2d7184
commit
9f2b68dd5d
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…
Reference in New Issue
Block a user