Create profile for taskwarrior-tui

This commit is contained in:
doublez13 2024-04-05 08:41:07 -06:00 committed by Alex
parent c81253de14
commit 8f5c5867f3

View File

@ -0,0 +1,32 @@
# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2024 Zane Zakraisek <zz@eng.utah.edu>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/taskwarrior-tui
profile taskwarrior-tui @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
@{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 <local/taskwarrior-tui>
}