mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-02-21 17:35:50 +01:00
whatis: initial profile
AppArmor profile for whatis
This commit is contained in:
parent
434fc6e954
commit
b2af7a631a
1 changed files with 28 additions and 0 deletions
28
apparmor.d/profiles-s-z/whatis
Normal file
28
apparmor.d/profiles-s-z/whatis
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# 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}/whatis
|
||||||
|
profile whatis @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/consoles>
|
||||||
|
|
||||||
|
@{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 <local/whatis>
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue