apparmor.d/apparmor.d/groups/virt/cockpit-certificate-helper

31 lines
No EOL
674 B
Text

# apparmor.d - Full set of apparmor profiles
# Copyright (C) 2021 Alexandre Pujol <alexandre@pujol.io>
# SPDX-License-Identifier: GPL-2.0-only
abi <abi/3.0>,
include <tunables/global>
@{exec_path} = @{lib}/cockpit/cockpit-certificate-helper
profile cockpit-certificate-helper @{exec_path} {
include <abstractions/base>
include <abstractions/nameservice-strict>
@{exec_path} mr,
@{bin}/{,ba,da}sh rix,
@{bin}/chmod rix,
@{bin}/id rix,
@{bin}/mkdir rix,
@{bin}/mv rix,
@{bin}/rm rix,
@{bin}/sscg rix,
@{bin}/tr rix,
/etc/machine-id r,
owner @{run}/cockpit/certificate-helper/{,**} rw,
include if exists <local/cockpit-certificate-helper>
}