mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-03-04 06:34:43 +01:00
Create profile for yara (uses booleans)
This commit is contained in:
parent
a793e711e5
commit
608e3b8e78
1 changed files with 28 additions and 0 deletions
28
apparmor.d/profiles-s-z/yara
Normal file
28
apparmor.d/profiles-s-z/yara
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2025 Zane Zakraisek <zz@eng.utah.edu>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/4.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
include <tunables/booleans>
|
||||||
|
|
||||||
|
@{exec_path} = {/usr,}/bin/yara
|
||||||
|
profile yara @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
capability dac_override dac_read_search,
|
||||||
|
|
||||||
|
if $ANTIVIRUS_CAN_PTRACE {
|
||||||
|
ptrace (read, trace),
|
||||||
|
capability sys_ptrace,
|
||||||
|
}
|
||||||
|
|
||||||
|
/{,**} r,
|
||||||
|
|
||||||
|
deny capability sys_admin,
|
||||||
|
|
||||||
|
include if exists <local/yara>
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue