add search tools
This commit is contained in:
parent
d9ecbdbe4b
commit
13b8c8d232
2 changed files with 42 additions and 0 deletions
21
apparmor.d/profiles-a-f/fd
Normal file
21
apparmor.d/profiles-a-f/fd
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2025 valoq <valoq@mailbox.ofd>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/4.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{bin}/fd
|
||||
profile fd @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
## Allow reading the entire filesystem to search for filenames
|
||||
/{,**} r,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
include if exists <local/fd>
|
||||
}
|
||||
|
||||
# vim:syntax=apparmor
|
||||
21
apparmor.d/profiles-m-r/rg
Normal file
21
apparmor.d/profiles-m-r/rg
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# apparmor.d - Full set of apparmor profiles
|
||||
# Copyright (C) 2025 valoq <valoq@mailbox.org>
|
||||
# SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
abi <abi/4.0>,
|
||||
|
||||
include <tunables/global>
|
||||
|
||||
@{exec_path} = @{bin}/rg
|
||||
profile rg @{exec_path} {
|
||||
include <abstractions/base>
|
||||
|
||||
## Allow reading the entire filesystem to search for strings
|
||||
/{,**} r,
|
||||
|
||||
@{exec_path} mr,
|
||||
|
||||
include if exists <local/rg>
|
||||
}
|
||||
|
||||
# vim:syntax=apparmor
|
||||
Loading…
Add table
Add a link
Reference in a new issue