mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-18 00:48:10 +01:00
feat(dbus): add/update dbus abstraction.
This commit is contained in:
parent
8f1052546e
commit
dc3f292d45
5 changed files with 34 additions and 6 deletions
|
@ -7,4 +7,14 @@
|
|||
member=GetAll
|
||||
peer=(name=:*, label=packagekitd),
|
||||
|
||||
dbus send bus=system path=/org/freedesktop/PackageKit
|
||||
interface=org.freedesktop.DBus.Introspectable
|
||||
member=Introspect
|
||||
peer=(name=org.freedesktop.PackageKit, label=packagekitd),
|
||||
|
||||
dbus send bus=system path=/org/freedesktop/PackageKit
|
||||
interface=org.freedesktop.PackageKit
|
||||
member=StateHasChanged
|
||||
peer=(name=org.freedesktop.PackageKit, label=packagekitd),
|
||||
|
||||
include if exists <abstractions/bus/org.freedesktop.PackageKit.d>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
dbus send bus=system path=/org/freedesktop/login1/session/*
|
||||
interface=org.freedesktop.login1.Session
|
||||
member={ReleaseDevice,TakeControl,TakeDevice,SetBrightness,SetLockedHint,SetIdleHint}
|
||||
peer=(name=:*, label=systemd-logind),
|
||||
peer=(name="{:*,org.freedesktop.login1}", label=systemd-logind),
|
||||
|
||||
dbus receive bus=system path=/org/freedesktop/login1/session/*
|
||||
interface=org.freedesktop.DBus.Properties
|
||||
|
@ -25,6 +25,6 @@
|
|||
dbus receive bus=system path=/org/freedesktop/login1/session/*
|
||||
interface=org.freedesktop.login1.Session
|
||||
member={PauseDevice,Unlock}
|
||||
peer=(name=:*, label=systemd-logind),
|
||||
peer=(name="{:*,org.freedesktop.login1}", label=systemd-logind),
|
||||
|
||||
include if exists <abstractions/bus/org.freedesktop.login1.Session.d>
|
||||
|
|
10
apparmor.d/abstractions/bus/org.freedesktop.resolve1
Normal file
10
apparmor.d/abstractions/bus/org.freedesktop.resolve1
Normal file
|
@ -0,0 +1,10 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
dbus send bus=system path=/org/freedesktop/resolve1
|
||||
interface=org.freedesktop.resolve1.Manager
|
||||
member={SetLink*,ResolveHostname}
|
||||
peer=(name=org.freedesktop.resolve1, label=systemd-resolved),
|
||||
|
||||
include if exists <abstractions/bus/org.freedesktop.resolve1.d>
|
|
@ -5,11 +5,16 @@
|
|||
dbus send bus=session path=/org/gtk/Private/RemoteVolumeMonitor
|
||||
interface=org.gtk.Private.RemoteVolumeMonitor
|
||||
member={List,IsSupported,VolumeChanged,VolumeMount,MountAdded}
|
||||
peer=(name=:*, label=gvfs-*-monitor),
|
||||
peer=(name=:*, label=gvfs-udisks2-volume-monitor),
|
||||
|
||||
dbus receive bus=session path=/org/gtk/Private/RemoteVolumeMonitor
|
||||
interface=org.gtk.Private.RemoteVolumeMonitor
|
||||
member={MountAdded,VolumeChanged}
|
||||
peer=(name=:*, label=gvfs-*-volume-monitor),
|
||||
member={MountAdded,MountChanged,VolumeChanged,VolumeRemoved}
|
||||
peer=(name=:*, label=gvfs-udisks2-volume-monitor),
|
||||
|
||||
dbus receive bus=session path=/org/gtk/Private/RemoteVolumeMonitor
|
||||
interface=org.gtk.Private.RemoteVolumeMonitor
|
||||
member={VolumeAdded,DriveDisconnected,DriveConnected,DriveChanged}
|
||||
peer=(name=:*, label=gvfs-udisks2-volume-monitor),
|
||||
|
||||
include if exists <abstractions/bus/org.gtk.Private.RemoteVolumeMonitor.d>
|
||||
|
|
|
@ -45,6 +45,9 @@ profile at-spi-bus-launcher @{exec_path} flags=(attach_disconnected) {
|
|||
/var/log/lightdm/seat[0-9]*-greeter.log w,
|
||||
|
||||
@{run}/systemd/users/@{uid} r,
|
||||
owner @{run}/user/@{uid}/at-spi/ rw,
|
||||
owner @{run}/user/@{uid}/at-spi/bus rw,
|
||||
owner @{run}/user/@{uid}/at-spi/bus_@{int} rw,
|
||||
|
||||
@{sys}/kernel/security/apparmor/.access rw,
|
||||
@{sys}/kernel/security/apparmor/features/dbus/mask r,
|
||||
|
|
Loading…
Reference in a new issue