mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-19 01:18:16 +01:00
feat(abs): add app/bus
Useful to confine dbus access in scripts.
This commit is contained in:
parent
04c2cabeb6
commit
64c2ee5fe9
1 changed files with 18 additions and 0 deletions
18
apparmor.d/abstractions/app/bus
Normal file
18
apparmor.d/abstractions/app/bus
Normal file
|
@ -0,0 +1,18 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
# Minimal set of rules for dbus-send/dbus-launch.
|
||||
|
||||
include <abstractions/nameservice-strict>
|
||||
|
||||
@{bin}/dbus-launch mix,
|
||||
@{bin}/dbus-send mix,
|
||||
|
||||
@{bin}/dbus-daemon Px -> dbus-session,
|
||||
|
||||
owner @{HOME}/.dbus/session-bus/@{hex}-@{int} w,
|
||||
|
||||
include if exists <abstractions/app/bus.d>
|
||||
|
||||
# vim:syntax=apparmor
|
Loading…
Reference in a new issue