apparmor.d/apparmor.d/profiles-m-r/molly-guard
REmerald 40a30dc310 fix(profiles-m-r): move vim modeline
Move vim syntax comment to the end of the file, separated by newline, as requested in #380.
2024-06-15 17:20:22 +03:00

46 lines
977 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2022-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{lib}/molly-guard/molly-guard
profile molly-guard @{exec_path} {
include <abstractions/base>
include <abstractions/consoles>
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 <abstractions/base>
include <abstractions/app/systemctl>
include if exists <local/molly-guard_systemctl>
}
include if exists <local/molly-guard>
}
# vim:syntax=apparmor