mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-24 20:08:11 +01:00
feat(abs): use dconf in dconf-write.
This commit is contained in:
parent
3285de675f
commit
75f25ebaec
2 changed files with 18 additions and 17 deletions
|
@ -7,25 +7,12 @@
|
||||||
|
|
||||||
abi <abi/4.0>,
|
abi <abi/4.0>,
|
||||||
|
|
||||||
dbus send bus=session path=/ca/desrt/dconf/Writer/user
|
include <abstractions/dconf>
|
||||||
interface=ca.desrt.dconf.Writer
|
|
||||||
member=Change
|
|
||||||
peer=(name=ca.desrt.dconf), # no peer's labels
|
|
||||||
|
|
||||||
dbus receive bus=session path=/ca/desrt/dconf/Writer/user
|
owner @{user_config_dirs}/glib-2.0/settings/keyfile w,
|
||||||
interface=ca.desrt.dconf.Writer
|
|
||||||
member=Notify
|
|
||||||
peer=(name=:*, label=dconf-service),
|
|
||||||
|
|
||||||
/usr/share/dconf/profile/gdm r,
|
owner @{run}/user/@{uid}/dconf/ w,
|
||||||
|
owner @{run}/user/@{uid}/dconf/user w,
|
||||||
/etc/dconf/** r,
|
|
||||||
|
|
||||||
owner @{user_config_dirs}/dconf/user r,
|
|
||||||
owner @{user_config_dirs}/glib-2.0/settings/keyfile rw,
|
|
||||||
|
|
||||||
owner @{run}/user/@{uid}/dconf/ rw,
|
|
||||||
owner @{run}/user/@{uid}/dconf/user rw,
|
|
||||||
|
|
||||||
include if exists <abstractions/dconf-write.d>
|
include if exists <abstractions/dconf-write.d>
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,20 @@
|
||||||
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
# Copyright (C) 2024 Alexandre Pujol <alexandre@pujol.io>
|
||||||
# SPDX-License-Identifier: GPL-2.0-only
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
dbus send bus=session path=/ca/desrt/dconf/Writer/user
|
||||||
|
interface=ca.desrt.dconf.Writer
|
||||||
|
member=Change
|
||||||
|
peer=(name=ca.desrt.dconf), # no peer's labels
|
||||||
|
|
||||||
|
dbus receive bus=session path=/ca/desrt/dconf/Writer/user
|
||||||
|
interface=ca.desrt.dconf.Writer
|
||||||
|
member=Notify
|
||||||
|
peer=(name=:*, label=dconf-service),
|
||||||
|
|
||||||
|
/usr/share/dconf/profile/gdm r,
|
||||||
|
|
||||||
owner @{user_config_dirs}/glib-2.0/settings/keyfile r,
|
owner @{user_config_dirs}/glib-2.0/settings/keyfile r,
|
||||||
|
|
||||||
|
owner @{run}/user/@{uid}/dconf/ r,
|
||||||
|
|
||||||
# vim:syntax=apparmor
|
# vim:syntax=apparmor
|
||||||
|
|
Loading…
Reference in a new issue