From 3a37efb551532b1d31b8edfe2834a1e1b5dd83c9 Mon Sep 17 00:00:00 2001 From: odomingao Date: Mon, 15 Jul 2024 11:44:51 -0300 Subject: [PATCH] Update hyprlock --- apparmor.d/groups/hypr/hyprlock | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/apparmor.d/groups/hypr/hyprlock b/apparmor.d/groups/hypr/hyprlock index c42950629..9f400c90b 100644 --- a/apparmor.d/groups/hypr/hyprlock +++ b/apparmor.d/groups/hypr/hyprlock @@ -8,31 +8,22 @@ include @{exec_path} = @{bin}/hyprlock -profile hyprlock /{,usr/}{,s}bin/hyprlock { +profile hyprlock @{exec_path} { include - include + include include - include + include include - include - include - include - - capability audit_write, network netlink raw, @{exec_path} mr, - @{bin}/unix_chkpwd mrix, - /etc/login.defs r, - /etc/pam.d/* r, /etc/security/faillock.conf r, /etc/shells r, - owner /etc/shadow r, - owner @{XDG_PICTURES_DIR}/** r, - owner @{XDG_WALLPAPERS_DIR}/** r, + owner @{HOME}/@{XDG_WALLPAPERS_DIR}/** r, + owner @{user_pictures_dirs}/** r, owner @{user_config_dirs}/hypr/hyprlock.conf r, @@ -44,4 +35,3 @@ profile hyprlock /{,usr/}{,s}bin/hyprlock { } # vim:syntax=apparmor -