# apparmor.d - Full set of apparmor profiles # Copyright (C) 2022-2024 Alexandre Pujol # SPDX-License-Identifier: GPL-2.0-only abi , include @{exec_path} = @{lib}/molly-guard/molly-guard profile molly-guard @{exec_path} { include include capability sys_ptrace, ptrace (read), @{exec_path} mr, @{sh_path} rix, @{bin}/{,e,p}grep rix, @{bin}/hostname rix, @{bin}/run-parts rix, @{bin}/systemctl rCx -> systemctl, @{bin}/tr rix, @{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, profile systemctl { include include include if exists } include if exists } # vim:syntax=apparmor