diff --git a/apparmor.d/profiles-s-z/taskwarrior-tui b/apparmor.d/profiles-s-z/taskwarrior-tui new file mode 100644 index 00000000..f3678ff8 --- /dev/null +++ b/apparmor.d/profiles-s-z/taskwarrior-tui @@ -0,0 +1,32 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2024 Zane Zakraisek +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = @{bin}/taskwarrior-tui +profile taskwarrior-tui @{exec_path} { + include + include + + @{exec_path} mr, + + @{bin}/task rPx, + + /usr/share/{doc/,}task{warrior,}/** r, + + owner @{HOME}/.taskrc r, + owner @{HOME}/.task/{,**} rwlk, + + owner @{user_share_dirs}/taskwarrior-tui/{,**} rwk, + owner @{user_config_dirs}/taskwarrior-tui/{,**} r, + + owner @{PROC}/@{pid}/cgroup r, + owner @{PROC}/@{pid}/mountinfo r, + + @{sys}/fs/cgroup/**/cpu.max r, + + include if exists +}