42 lines
No EOL
972 B
Text
42 lines
No EOL
972 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2023 Alexandre Pujol <alexandre@pujol.io>
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}lib/cockpit/cockpit-pcp
|
|
profile cockpit-pcp @{exec_path} {
|
|
include <abstractions/base>
|
|
include <abstractions/nameservice-strict>
|
|
include <abstractions/disks-read>
|
|
|
|
network inet dgram,
|
|
network inet stream,
|
|
network inet6 dgram,
|
|
network inet6 stream,
|
|
|
|
signal (receive) peer=cockpit-bridge,
|
|
|
|
@{exec_path} mr,
|
|
|
|
/etc/pcp.conf r,
|
|
/etc/pcp/{,**} r,
|
|
|
|
/var/lib/pcp/{,**} rw,
|
|
|
|
/var/log/pcp/pmlogger/ r,
|
|
|
|
@{sys}/fs/cgroup/{,**/} r,
|
|
@{sys}/fs/cgroup/**/{memory,cpu}* r,
|
|
@{sys}/devices/platform/**/hwmon/hwmon[0-9]*/temp* r,
|
|
@{sys}/devices/platform/**/hwmon/hwmon[0-9]*/fan* r,
|
|
|
|
@{PROC}/diskstats r,
|
|
@{PROC}/swaps r,
|
|
owner @{PROC}/@{pid}/mounts r,
|
|
@{PROC}/@{pid}/net/dev r,
|
|
|
|
include if exists <local/cockpit-pcp>
|
|
} |