mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-29 22:35:15 +01:00
feat: add molly-guard profile.
This commit is contained in:
parent
e845a172c2
commit
85e7f58d3c
1 changed files with 37 additions and 0 deletions
37
apparmor.d/profiles-m-r/molly-guard
Normal file
37
apparmor.d/profiles-m-r/molly-guard
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
# apparmor.d - Full set of apparmor profiles
|
||||||
|
# Copyright (C) 2022 Alexandre Pujol <alexandre@pujol.io>
|
||||||
|
# SPDX-License-Identifier: GPL-2.0-only
|
||||||
|
|
||||||
|
abi <abi/3.0>,
|
||||||
|
|
||||||
|
include <tunables/global>
|
||||||
|
|
||||||
|
@{exec_path} = /{usr/,}lib/molly-guard/molly-guard
|
||||||
|
profile molly-guard @{exec_path} {
|
||||||
|
include <abstractions/base>
|
||||||
|
include <abstractions/consoles>
|
||||||
|
|
||||||
|
capability sys_ptrace,
|
||||||
|
|
||||||
|
ptrace (read),
|
||||||
|
|
||||||
|
@{exec_path} mr,
|
||||||
|
|
||||||
|
/{usr/,}bin/{,ba,da}sh rix,
|
||||||
|
/{usr/,}bin/hostname rix,
|
||||||
|
/{usr/,}bin/pgrep rix,
|
||||||
|
/{usr/,}bin/run-parts rix,
|
||||||
|
/{usr/,}bin/systemctl rPx -> child-systemctl,
|
||||||
|
/{usr/,}bin/tr rix,
|
||||||
|
/{usr/,}bin/tty rix,
|
||||||
|
|
||||||
|
/etc/molly-guard/{,**} r,
|
||||||
|
/etc/molly-guard/run.d/* rix,
|
||||||
|
|
||||||
|
@{PROC}/ r,
|
||||||
|
@{PROC}/@{pids}/cmdline r,
|
||||||
|
@{PROC}/sys/kernel/osrelease r,
|
||||||
|
@{PROC}/uptime r,
|
||||||
|
|
||||||
|
include if exists <local/molly-guard>
|
||||||
|
}
|
Loading…
Reference in a new issue