apparmor.d/apparmor.d/profiles-m-r/mono-sgen
Alexandre Pujol 3f69b9fec4
feat(profile): use the new @{tmp} variable.
It is only used with the owner statement.
2024-05-02 22:12:02 +01:00

46 lines
1 KiB
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021-2024 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{bin}/mono-sgen
profile mono-sgen @{exec_path} {
include <abstractions/base>
include <abstractions/audio-client>
include <abstractions/freedesktop.org>
include <abstractions/graphics>
include <abstractions/nameservice-strict>
include <abstractions/ssl_certs>
include <abstractions/wayland>
network inet dgram,
network inet6 dgram,
network inet stream,
network inet6 stream,
network netlink raw,
@{exec_path} mr,
@{bin}/ r,
/{usr/,}local/bin/ r,
@{bin}/* rPUx,
/usr/share/.mono/{,**} rw,
/etc/mono/{,**} r,
/etc/machine-id r,
owner @{user_config_dirs}/openra/{,**} rw,
owner @{user_config_dirs}/.mono/{,**} r,
owner @{tmp}/*.* rw,
owner @{tmp}/CASESENSITIVETEST* rw,
owner /dev/shm/mono.* rw,
owner @{PROC}/@{pid}/fd/ r,
include if exists <local/mono-sgen>
}