From b2af7a631a2b8aca7d6bdc8f7ff4fdd5ec94220e Mon Sep 17 00:00:00 2001 From: doublez13 Date: Mon, 19 Feb 2024 16:40:23 -0700 Subject: [PATCH] whatis: initial profile AppArmor profile for whatis --- apparmor.d/profiles-s-z/whatis | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 apparmor.d/profiles-s-z/whatis diff --git a/apparmor.d/profiles-s-z/whatis b/apparmor.d/profiles-s-z/whatis new file mode 100644 index 00000000..b1295df1 --- /dev/null +++ b/apparmor.d/profiles-s-z/whatis @@ -0,0 +1,28 @@ +# apparmor.d - Full set of apparmor profiles +# Copyright (C) 2024 Zane Zakraisek +# SPDX-License-Identifier: GPL-2.0-only + +abi , + +include + +@{exec_path} = @{bin}/whatis +profile whatis @{exec_path} { + include + include + + @{exec_path} mr, + @{bin}/grep rix, + + /usr/{,**/}man/{,**/}{,whatis} r, + + /usr/share/man/{,**/}index.{bt,db,dir,pag} rk, + /var/cache/man/{,**/}index.{bt,db,dir,pag} rk, + + /etc/man_db.conf r, + /etc/manpath.config r, + + owner @{HOME}/.manpath r, + + include if exists +}