From b72552bdf214319b14896ef1af5c8d9c6f7be271 Mon Sep 17 00:00:00 2001 From: odomingao Date: Tue, 22 Oct 2024 10:45:28 -0300 Subject: [PATCH] Create pypr --- apparmor.d/groups/hyprland/pypr | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 apparmor.d/groups/hyprland/pypr diff --git a/apparmor.d/groups/hyprland/pypr b/apparmor.d/groups/hyprland/pypr new file mode 100644 index 00000000..2f489e05 --- /dev/null +++ b/apparmor.d/groups/hyprland/pypr @@ -0,0 +1,30 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2024 odomingao +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = @{bin}/pypr +profile pypr @{exec_path} flags=(attach_disconnected) { + include + include + include + + signal send set=(term kill), + + ptrace read, + + @{exec_path} mr, + + owner @{user_config_dirs}/hypr/pyprland.toml r, + + owner @{run}/user/@{uid}/hypr/*/.pyprland.sock rw, + + owner /dev/tty@{int} rw, # file_inherit + + include if exists +} + +# vim:syntax=apparmor