feat(abs): add snapcraft dbus reference call.
This commit is contained in:
parent
fce5de8d19
commit
93c94836e2
3 changed files with 53 additions and 0 deletions
21
apparmor.d/abstractions/bus/session/io.snapcraft.Launcher
Normal file
21
apparmor.d/abstractions/bus/session/io.snapcraft.Launcher
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2025 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
# Allow use of snapd's internal xdg-open
|
||||
|
||||
abi <abi/4.0>,
|
||||
|
||||
dbus send bus=session path=/
|
||||
interface=com.canonical.SafeLauncher
|
||||
member=OpenURL
|
||||
peer=(name=@{busname}, label=snap),
|
||||
|
||||
dbus send bus=session path=/io/snapcraft/Launcher
|
||||
interface=io.snapcraft.Launcher
|
||||
member={OpenURL,OpenFile}
|
||||
peer=(name=@{busname}, label=snap),
|
||||
|
||||
include if exists <abstractions/bus/session/io.snapcraft.Launcher.d>
|
||||
|
||||
# vim:syntax=apparmor
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2023-2024 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
# Can identify and launch other snaps.
|
||||
|
||||
abi <abi/4.0>,
|
||||
|
||||
dbus send bus=session path=/io/snapcraft/PrivilegedDesktopLauncher
|
||||
interface=io.snapcraft.PrivilegedDesktopLauncher
|
||||
member=OpenDesktopEntry
|
||||
peer=(name=io.snapcraft.Launcher, label=snap),
|
||||
|
||||
include if exists <abstractions/bus/session/io.snapcraft.PrivilegedDesktopLauncher.d>
|
||||
|
||||
# vim:syntax=apparmor
|
||||
16
apparmor.d/abstractions/bus/session/io.snapcraft.Settings
Normal file
16
apparmor.d/abstractions/bus/session/io.snapcraft.Settings
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2025 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
# Allow use of snapd's internal 'xdg-settings'
|
||||
|
||||
abi <abi/4.0>,
|
||||
|
||||
dbus send bus=session path=/io/snapcraft/Settings
|
||||
interface=io.snapcraft.Settings
|
||||
member={Check,CheckSub,Get,GetSub,Set,SetSub}
|
||||
peer=(name=io.snapcraft.Settings, label=snap),
|
||||
|
||||
include if exists <abstractions/bus/session/io.snapcraft.Settings.d>
|
||||
|
||||
# vim:syntax=apparmor
|
||||
Loading…
Add table
Add a link
Reference in a new issue