apparmor.d/apparmor.d/groups/virt/cockpit-session
REmerald 68d1222029 feat(groups/{u,v,w,x}*): vim syntax support
Add vim modeline instructing the editor to use syntax plugin provided by apparmor.
Continuation of #395 to keep the diff list relatively short.
2024-06-16 17:31:42 +01:00

58 lines
1.3 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} = @{lib}/cockpit/cockpit-session
profile cockpit-session @{exec_path} flags=(attach_disconnected) {
include <abstractions/base>
include <abstractions/authentication>
include <abstractions/nameservice-strict>
include <abstractions/shells>
capability audit_write,
capability dac_read_search,
capability net_admin,
capability setgid,
capability setuid,
network netlink raw,
@{exec_path} mr,
@{shells_path} rix,
@{bin}/cockpit-bridge rPx,
@{lib}/cockpit/cockpit-pcp rPx,
@{etc_ro}/environment r,
@{etc_ro}/security/limits.d/{,*.conf} r,
/etc/cockpit/disallowed-users r,
/etc/group r,
/etc/machine-id r,
/etc/motd r,
/etc/motd.d/ r,
/etc/shells r,
@{run}/faillock/@{user} rwk,
@{run}/systemd/sessions/*.ref rw,
@{run}/utmp rwk,
@{run}/motd.d/{,*} r,
@{run}/cockpit/active.motd r,
/var/log/btmp rw,
/var/log/lastlog rw,
/var/log/wtmp rwk,
owner @{PROC}/@{pid}/loginuid rw,
owner @{PROC}/@{pid}/uid_map r,
@{PROC}/@{pids}/fd/ r,
/dev/tty rw,
include if exists <local/cockpit-session>
}
# vim:syntax=apparmor