apparmor.d -> profiles
This commit is contained in:
parent
c408a878b7
commit
e9b8e62fcd
726 changed files with 0 additions and 0 deletions
38
profiles/vnstatd
Normal file
38
profiles/vnstatd
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
# vim:syntax=apparmor
|
||||
# ------------------------------------------------------------------
|
||||
#
|
||||
# Copyright (C) 2018-2021 Mikhail Morfikov
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or
|
||||
# modify it under the terms of version 2 of the GNU General Public
|
||||
# License published by the Free Software Foundation.
|
||||
#
|
||||
# ------------------------------------------------------------------
|
||||
|
||||
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>
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue