mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-02-20 17:05:36 +01:00
feat(profile): cleanup handling of gnome session.
This commit is contained in:
parent
52a2ae8c23
commit
d9ca201519
4 changed files with 21 additions and 16 deletions
18
apparmor.d/groups/gnome/gdm-prime-defaut
Normal file
18
apparmor.d/groups/gnome/gdm-prime-defaut
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
|
||||
|
||||
abi <abi/3.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = /etc/gdm{3,}/{Init,Prime}/Default
|
||||
profile gdm-defaut @{exec_path} flags=(complain) {
|
||||
include <abstractions/base>
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
include if exists <local/gdm-prime-defaut>
|
||||
}
|
||||
|
||||
# vim:syntax=apparmor
|
|
@ -34,21 +34,14 @@ profile gdm-session @{exec_path} {
|
|||
|
||||
# only: xorg
|
||||
@{bin}/Xorg rPx,
|
||||
/etc/gdm{3,}/Prime/Default rix,
|
||||
/etc/gdm{3,}/Prime/Default rPx,
|
||||
/etc/gdm{3,}/Xsession rPx,
|
||||
|
||||
/usr/share/gdm{3,}/gdm.schemas r,
|
||||
|
||||
/etc/default/locale r,
|
||||
/etc/gdm{3,}/custom.conf r,
|
||||
/etc/gdm{3,}/daemon.conf r,
|
||||
/etc/locale.conf r,
|
||||
/etc/sysconfig/console r,
|
||||
/etc/sysconfig/displaymanager r,
|
||||
/etc/sysconfig/language r,
|
||||
/etc/sysconfig/mail r,
|
||||
/etc/sysconfig/proxy r,
|
||||
/etc/sysconfig/windowmanager r,
|
||||
|
||||
owner @{gdm_cache_dirs}/gdm/ rw,
|
||||
owner @{gdm_cache_dirs}/gdm/Xauthority rw,
|
||||
|
|
|
@ -37,9 +37,6 @@ profile gnome-control-center @{exec_path} flags=(attach_disconnected) {
|
|||
|
||||
unix (send, receive, connect) type=stream peer=(addr="@/home/*/.cache/ibus/dbus-????????", label=ibus-daemon),
|
||||
|
||||
dbus bus=session,
|
||||
dbus bus=system,
|
||||
|
||||
#aa:dbus own bus=session name=org.gnome.Settings
|
||||
|
||||
#aa:dbus talk bus=session name=org.gnome.Mutter label=gnome-shell
|
||||
|
@ -68,7 +65,7 @@ profile gnome-control-center @{exec_path} flags=(attach_disconnected) {
|
|||
@{bin}/pkexec rCx -> pkexec,
|
||||
@{bin}/software-properties-gtk rPx,
|
||||
@{bin}/usermod rPx,
|
||||
@{lib}/{,@{multiarch}/}webkit{2,}gtk-*/WebKitNetworkProcess rPx,
|
||||
@{lib}/{,@{multiarch}/}webkit{2,}gtk-*/WebKitNetworkProcess rix,
|
||||
@{lib}/cups/backend/snmp rPx,
|
||||
@{lib}/gnome-control-center-goa-helper rPx,
|
||||
@{lib}/gnome-control-center-print-renderer rPx,
|
||||
|
|
|
@ -51,10 +51,7 @@ profile gnome-session-binary @{exec_path} flags=(attach_disconnected) {
|
|||
@{exec_path} mr,
|
||||
|
||||
@{sh_path} rix,
|
||||
@{bin}/dbus-daemon rPx -> dbus-session,
|
||||
@{bin}/env rix,
|
||||
@{bin}/gnome-session rPx,
|
||||
@{bin}/gnome-shell rPx,
|
||||
@{bin}/tput rix,
|
||||
@{bin}/session-migration rPx,
|
||||
|
||||
@{lib}/gnome-session-check-accelerated rix,
|
||||
|
|
Loading…
Add table
Reference in a new issue