Skip to content

Commit

Permalink
feat(profile): minor kde improvment on opensuse.
Browse files Browse the repository at this point in the history
see #208
  • Loading branch information
roddhjav committed Nov 23, 2023
1 parent 31bc5a6 commit ef10231
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion apparmor.d/groups/gpg/gpg
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ profile gpg @{exec_path} {
@{bin}/gpg-connect-agent rPx,
@{bin}/gpgconf rPx,
@{bin}/gpgsm rPx,
@{lib}/gnupg/scdaemon rPx,
@{lib}/{,gnupg/}scdaemon rPx,

/etc/inputrc r,

Expand Down
2 changes: 1 addition & 1 deletion apparmor.d/groups/gpg/gpg-agent
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ profile gpg-agent @{exec_path} {

@{bin}/pinentry{,-*} rPx,
@{bin}/scdaemon rPx,
@{lib}/gnupg/scdaemon rPx,
@{lib}/{,gnupg/}scdaemon rPx,

/usr/share/gnupg/* r,

Expand Down
2 changes: 1 addition & 1 deletion apparmor.d/groups/gpg/gpgconf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ profile gpgconf @{exec_path} {
@{bin}/gpgsm rPx,
@{bin}/pinentry-* rPx,
@{bin}/scdaemon rPx,
@{lib}/gnupg/scdaemon rPx,
@{lib}/{,gnupg/}scdaemon rPx,
@{lib}/keyboxd rPUx,

/etc/gcrypt/hwf.deny r,
Expand Down
2 changes: 1 addition & 1 deletion apparmor.d/groups/gpg/scdaemon
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ abi <abi/3.0>,

include <tunables/global>

@{exec_path} = @{bin}/scdaemon @{lib}/gnupg/scdaemon
@{exec_path} = @{bin}/scdaemon @{lib}/{,gnupg/}scdaemon
profile scdaemon @{exec_path} {
include <abstractions/base>
include <abstractions/devices-usb>
Expand Down
4 changes: 2 additions & 2 deletions apparmor.d/groups/kde/kded5
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ profile kded5 @{exec_path} {
owner @{user_cache_dirs}/#@{int} rw,
owner @{user_cache_dirs}/icon-cache.kcache rw,

@{user_config_dirs}/kcookiejarrc.lock rwk,
@{user_config_dirs}/kcookiejarrc{,.@{rand6}} rwl -> @{user_config_dirs}/#@{int},
owner @{user_config_dirs}/#@{int} rw,
owner @{user_config_dirs}/bluedevilglobalrc.lock rwk,
owner @{user_config_dirs}/bluedevilglobalrc{,.@{rand6}} rwl -> @{user_config_dirs}/#@{int},
Expand All @@ -83,8 +85,6 @@ profile kded5 @{exec_path} {
owner @{user_config_dirs}/kcminputrc r,
owner @{user_config_dirs}/kconf_updaterc rw,
owner @{user_config_dirs}/kconf_updaterc.lock rwk,
owner @{user_config_dirs}/kcookiejarrc.lock rwk,
owner @{user_config_dirs}/kcookiejarrc{,.@{rand6}} rwl -> @{user_config_dirs}/#@{int},
owner @{user_config_dirs}/kdebugrc r,
owner @{user_config_dirs}/kded5rc.lock rwk,
owner @{user_config_dirs}/kded5rc{,.@{rand6}} rwl -> @{user_config_dirs}/#@{int},
Expand Down
8 changes: 4 additions & 4 deletions apparmor.d/groups/kde/sddm
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ profile sddm @{exec_path} flags=(attach_disconnected,mediate_deleted) {
ptrace (read),
ptrace (trace) peer=@{profile_name},

signal (send) set=term peer=kwin_wayland,
signal (send) set=(term) peer=kwin_wayland,
signal (send) set=(kill, term) peer=startplasma,
signal (send) set=term peer=startplasma-wayland,
signal (send) set=term peer=sddm-greeter,
signal (send) set=(term) peer=startplasma-wayland,
signal (send) set=(term) peer=sddm-greeter,
signal (send) set=(kill, term) peer=xorg,

@{exec_path} mr,
Expand Down Expand Up @@ -77,7 +77,7 @@ profile sddm @{exec_path} flags=(attach_disconnected,mediate_deleted) {
@{bin}/dbus-update-activation-environment rCx -> dbus,
@{bin}/gnome-keyring-daemon rPx,
@{bin}/kwalletd5 rPx,
@{bin}/startplasma-wayland rPx,
@{bin}/startplasma-wayland rPUx,
@{bin}/startplasma-x11 rPx,
@{bin}/systemctl rPx -> child-systemctl,
@{bin}/xrdb rPx,
Expand Down
4 changes: 2 additions & 2 deletions apparmor.d/groups/kde/xdm-xsession
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ profile xdm-xsession @{exec_path} {
@{bin}/basename rix,
@{bin}/cat rix,
@{bin}/dirname rix,
@{bin}/gpg-agent rix,
@{bin}/gpg-connect-agent rix,
@{bin}/gpg-agent rPx,
@{bin}/gpg-connect-agent rPx,
@{bin}/grep rix,
@{bin}/locale rix,
@{bin}/manpath rix,
Expand Down
4 changes: 2 additions & 2 deletions apparmor.d/profiles-g-l/gajim
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ profile gajim @{exec_path} {
@{bin}/gpgconf mr,
@{bin}/gpgsm mr,

@{bin}/gpg-agent rix,
@{lib}/gnupg/scdaemon rix,
@{bin}/gpg-agent rix,
@{lib}/{,gnupg/}scdaemon rix,

owner @{run}/user/@{uid}/gnupg/d.*/ rw,
owner @{run}/user/@{uid}/gnupg/d.*/S.gpg-agent{,.extra,.browser,.ssh} w,
Expand Down

0 comments on commit ef10231

Please sign in to comment.