Merge 0a8a4b47ba into 9db6bf4a35
This commit is contained in:
commit
942e6fd45a
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>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
## Allow reading the entire filesystem to search for filenames
|
||||||
|
/{,**} r,
|
||||||
|
|
||||||
|
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>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
## Allow reading the entire filesystem to search for strings
|
||||||
|
/{,**} r,
|
||||||
|
|
||||||
|
include if exists <local/rg>
|
||||||
|
}
|
||||||
|
|
||||||
|
# vim:syntax=apparmor
|
||||||
Loading…
Add table
Add a link
Reference in a new issue