mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-29 22:35:15 +01:00
feat(profiles): add gsettings.
This commit is contained in:
parent
8bdce8bd62
commit
98a1a00a14
9 changed files with 31 additions and 6 deletions
|
@ -72,6 +72,7 @@ profile systemd /{usr/,}lib/systemd/systemd flags=(complain) {
|
|||
/{usr/,}bin/gjs rPx,
|
||||
/{usr/,}bin/gnome-keyring-daemon rPx,
|
||||
/{usr/,}bin/gnome-shell rPx,
|
||||
/{usr/,}bin/gsettings rPx,
|
||||
/{usr/,}lib/dconf/dconf-service rPx,
|
||||
/{usr/,}lib/gvfs/gvfs-* rPx,
|
||||
/{usr/,}lib/gvfs/gvfsd* rPx,
|
||||
|
|
|
@ -19,7 +19,7 @@ profile dbus-run-session @{exec_path} {
|
|||
/{usr/,}bin/dbus-daemon rPx,
|
||||
/{usr/,}bin/gnome-session rix,
|
||||
/{usr/,}bin/gnome-shell rPx,
|
||||
/{usr/,}bin/gsettings rix,
|
||||
/{usr/,}bin/gsettings rPx,
|
||||
@{libexec}/gnome-session-binary rPx,
|
||||
|
||||
/usr/share/glib-2.0/schemas/gschemas.compiled r,
|
||||
|
|
|
@ -45,7 +45,7 @@ profile gdm-wayland-session @{exec_path} {
|
|||
/{usr/,}bin/gettext.sh r,
|
||||
/{usr/,}bin/gnome-session rix,
|
||||
/{usr/,}bin/grep rix,
|
||||
/{usr/,}bin/gsettings rix,
|
||||
/{usr/,}bin/gsettings rPx,
|
||||
/{usr/,}bin/head rix,
|
||||
/{usr/,}bin/id rix,
|
||||
/{usr/,}bin/locale rix,
|
||||
|
|
|
@ -24,7 +24,7 @@ profile gdm-xsession @{exec_path} {
|
|||
/{usr/,}bin/gettext rix,
|
||||
/{usr/,}bin/gettext.sh r,
|
||||
/{usr/,}bin/gnome-session rix,
|
||||
/{usr/,}bin/gsettings rix,
|
||||
/{usr/,}bin/gsettings rPx,
|
||||
/{usr/,}bin/id rix,
|
||||
/{usr/,}bin/locale rix,
|
||||
/{usr/,}bin/locale-check rix,
|
||||
|
|
|
@ -138,7 +138,7 @@ profile gnome-session-binary @{exec_path} flags=(attach_disconnected) {
|
|||
/{usr/,}bin/env rix,
|
||||
/{usr/,}bin/gnome-session rix,
|
||||
/{usr/,}bin/grep rix,
|
||||
/{usr/,}bin/gsettings rix,
|
||||
/{usr/,}bin/gsettings rPx,
|
||||
/{usr/,}bin/gsettings-data-convert rix,
|
||||
/{usr/,}bin/mkdir rix,
|
||||
/{usr/,}bin/session-migration rix,
|
||||
|
|
|
@ -35,7 +35,7 @@ profile mullvad-gui @{exec_path} {
|
|||
"/opt/Mullvad VPN/*.so*" mr,
|
||||
|
||||
/{usr/,}bin/{,ba,da}sh rix,
|
||||
/{usr/,}bin/gsettings rix,
|
||||
/{usr/,}bin/gsettings rPx,
|
||||
/{usr/,}bin/xdg-open rPx,
|
||||
|
||||
"/opt/Mullvad VPN/{,**}" r,
|
||||
|
|
23
apparmor.d/profiles-g-l/gsettings
Normal file
23
apparmor.d/profiles-g-l/gsettings
Normal file
|
@ -0,0 +1,23 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /{usr/,}bin/gsettings
|
||||
profile gsettings @{exec_path} {
|
||||
include <abstractions/base>
|
||||
include <abstractions/dconf-write>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
/usr/share/glib-2.0/schemas/gschemas.compiled r,
|
||||
/usr/share/dconf/profile/gdm r,
|
||||
/usr/share/gdm/greeter-dconf-defaults r,
|
||||
|
||||
owner /dev/tty[0-9]* rw,
|
||||
|
||||
include if exists <local/gsettings>
|
||||
}
|
|
@ -39,7 +39,7 @@ profile xdm-xsession @{exec_path} {
|
|||
@{libexec}/gnome-session-binary rPx,
|
||||
/{usr/,}bin/gnome rix,
|
||||
/{usr/,}bin/gnome-session rix,
|
||||
/{usr/,}bin/gsettings rix,
|
||||
/{usr/,}bin/gsettings rPx,
|
||||
|
||||
@{etc_ro}/X11/xdm/sys.xsession rix,
|
||||
@{etc_ro}/X11/xinit/xinitrc.d/50-systemd-user.sh rix,
|
||||
|
|
|
@ -113,6 +113,7 @@ grub-syslinux2cfg complain
|
|||
gsd-media-keys attach_disconnected,complain
|
||||
gsd-print-notifications attach_disconnected,complain
|
||||
gsd-printer attach_disconnected,complain
|
||||
gsettings complain
|
||||
gvfsd-dav complain
|
||||
hostnamectl complain
|
||||
ibus-engine-table complain
|
||||
|
|
Loading…
Reference in a new issue