mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-24 20:08:11 +01:00
Create pypr
This commit is contained in:
parent
887b2b0d62
commit
b72552bdf2
1 changed files with 30 additions and 0 deletions
30
apparmor.d/groups/hyprland/pypr
Normal file
30
apparmor.d/groups/hyprland/pypr
Normal file
|
@ -0,0 +1,30 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2024 odomingao
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/4.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{bin}/pypr
|
||||
profile pypr @{exec_path} flags=(attach_disconnected) {
|
||||
include <abstractions/base>
|
||||
include <abstractions/app-launcher-user>
|
||||
include <abstractions/consoles>
|
||||
|
||||
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 <local/pypr>
|
||||
}
|
||||
|
||||
# vim:syntax=apparmor
|
Loading…
Reference in a new issue