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 +}