mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2025-01-30 14:55:15 +01:00
31 lines
721 B
Text
31 lines
721 B
Text
# apparmor.d - Full set of apparmor profiles
|
|
# Copyright (C) 2018-2021 Mikhail Morfikov
|
|
# SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
abi <abi/3.0>,
|
|
|
|
include <tunables/global>
|
|
|
|
@{exec_path} = /{usr/,}sbin/vnstatd
|
|
profile vnstatd @{exec_path} {
|
|
include <abstractions/base>
|
|
|
|
@{exec_path} mr,
|
|
|
|
# vnstat daemon config
|
|
/etc/vnstat.conf r,
|
|
|
|
# To determine capacity of a network interface
|
|
@{sys}/devices/pci[0-9]*/**/net/**/speed r,
|
|
@{sys}/devices/virtual/net/**/speed r,
|
|
|
|
# To collect interfaces' data
|
|
@{PROC}/@{pid}/net/dev r,
|
|
|
|
# To store the collected data
|
|
owner /var/lib/vnstat/ rw,
|
|
owner /var/lib/vnstat/vnstat.db rwk,
|
|
owner /var/lib/vnstat/vnstat.db-journal rw,
|
|
|
|
include if exists <local/vnstatd>
|
|
}
|