apparmor.d/apparmor.d/profiles-m-r/molly-guard
REmerald e362aa9107 feat(profiles-m-r): vim syntax support
Add vim modeline instructing the editor to use the syntax plugin provided by apparmor.
2024-06-09 19:44:15 +03:00

45 lines
No EOL
975 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
# vim:syntax=apparmor
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>
}