# apparmor.d - Full set of apparmor profiles # Copyright (C) 2018-2021 Mikhail Morfikov # SPDX-License-Identifier: GPL-2.0-only abi , include @{exec_path} = /{usr/,}sbin/vnstatd profile vnstatd @{exec_path} { include @{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 }