feat(profile): revisit the monitorix profile.
This commit is contained in:
parent
ece81aa6cb
commit
eb642993d8
1 changed files with 51 additions and 54 deletions
|
|
@ -10,10 +10,11 @@ include <tunables/global>
|
||||||
@{exec_path} = @{bin}/monitorix
|
@{exec_path} = @{bin}/monitorix
|
||||||
profile monitorix @{exec_path} {
|
profile monitorix @{exec_path} {
|
||||||
include <abstractions/base>
|
include <abstractions/base>
|
||||||
include <abstractions/perl>
|
include <abstractions/consoles>
|
||||||
include <abstractions/nameservice-strict>
|
|
||||||
include <abstractions/fonts>
|
|
||||||
include <abstractions/fontconfig-cache-read>
|
include <abstractions/fontconfig-cache-read>
|
||||||
|
include <abstractions/fonts>
|
||||||
|
include <abstractions/nameservice-strict>
|
||||||
|
include <abstractions/perl>
|
||||||
|
|
||||||
capability net_admin,
|
capability net_admin,
|
||||||
capability chown,
|
capability chown,
|
||||||
|
|
@ -28,80 +29,76 @@ profile monitorix @{exec_path} {
|
||||||
network inet stream,
|
network inet stream,
|
||||||
network inet6 stream,
|
network inet6 stream,
|
||||||
|
|
||||||
ptrace (read),
|
ptrace read,
|
||||||
|
|
||||||
signal (receive) set=(hup) peer=logroate,
|
signal receive set=(hup) peer=logroate,
|
||||||
|
|
||||||
@{exec_path} mr,
|
@{exec_path} mr,
|
||||||
|
|
||||||
@{sh_path} rix,
|
@{sh_path} rix,
|
||||||
@{bin}/{,e}grep rix,
|
@{bin}/{,e}grep ix,
|
||||||
@{bin}/df rix,
|
@{bin}/{m,g,}awk ix,
|
||||||
@{bin}/cat rix,
|
@{bin}/cat ix,
|
||||||
@{bin}/tail rix,
|
@{bin}/df ix,
|
||||||
@{bin}/{m,g,}awk rix,
|
@{bin}/free ix,
|
||||||
@{bin}/free rix,
|
@{bin}/getconf ix,
|
||||||
@{sbin}/ss rix,
|
@{bin}/ps Px,
|
||||||
@{bin}/who rix,
|
@{bin}/sensors Px,
|
||||||
@{sbin}/lvm rix,
|
@{bin}/tail ix,
|
||||||
@{sbin}/xtables-nft-multi rix,
|
@{bin}/who Px,
|
||||||
@{bin}/sensors rix,
|
@{sbin}/lvm Px,
|
||||||
@{bin}/getconf rix,
|
@{sbin}/ss Px,
|
||||||
@{bin}/ps rix,
|
@{sbin}/xtables-nft-multi ix,
|
||||||
|
|
||||||
/etc/monitorix/monitorix.conf r,
|
/var/lib/monitorix/www/cgi/monitorix.cgi ix,
|
||||||
/etc/monitorix/conf.d/ r,
|
|
||||||
/etc/monitorix/conf.d/@{int2}-*.conf r,
|
/etc/monitorix/{,**} r,
|
||||||
|
|
||||||
|
/var/lib/monitorix/ rw,
|
||||||
|
/var/lib/monitorix/** rwk,
|
||||||
|
|
||||||
/var/log/monitorix w,
|
/var/log/monitorix w,
|
||||||
/var/log/monitorix-* w,
|
/var/log/monitorix-* w,
|
||||||
|
|
||||||
owner @{run}/monitorix.pid w,
|
/srv/http/monitorix/ rw,
|
||||||
|
/srv/http/monitorix/** rwk,
|
||||||
/var/lib/monitorix/*.rrd* rwk,
|
|
||||||
/var/lib/monitorix/www/** rw,
|
|
||||||
/var/lib/monitorix/www/cgi/monitorix.cgi rwix,
|
|
||||||
|
|
||||||
/ r,
|
/ r,
|
||||||
/tmp/ r,
|
/tmp/ r,
|
||||||
/etc/shadow r,
|
|
||||||
|
|
||||||
/dev/tty r,
|
owner @{run}/monitorix.pid w,
|
||||||
|
|
||||||
@{run}/utmp rk,
|
@{run}/utmp rk,
|
||||||
|
|
||||||
@{PROC}/ r,
|
|
||||||
@{PROC}/swaps r,
|
|
||||||
@{PROC}/diskstats r,
|
|
||||||
@{PROC}/loadavg r,
|
|
||||||
@{PROC}/sys/kernel/random/entropy_avail r,
|
|
||||||
@{PROC}/uptime r,
|
|
||||||
@{PROC}/interrupts r,
|
|
||||||
@{PROC}/sys/fs/dentry-state r,
|
|
||||||
@{PROC}/sys/fs/file-nr r,
|
|
||||||
@{PROC}/sys/fs/inode-nr r,
|
|
||||||
@{PROC}/sys/kernel/osrelease r,
|
|
||||||
owner @{PROC}/@{pid}/mountinfo r,
|
|
||||||
owner @{PROC}/@{pid}/mounts r,
|
|
||||||
owner @{PROC}/@{pid}/net/dev r,
|
|
||||||
owner @{PROC}/@{pid}/net/ip_tables_names r,
|
|
||||||
owner @{PROC}/@{pid}/net/ip6_tables_names r,
|
|
||||||
@{PROC}/@{pid}/net/udp{,6} r,
|
|
||||||
@{PROC}/@{pid}/net/tcp{,6} r,
|
|
||||||
@{PROC}/sys/kernel/pid_max r,
|
|
||||||
@{PROC}/@{pids}/stat r,
|
|
||||||
@{PROC}/@{pids}/cmdline r,
|
|
||||||
@{PROC}/@{pids}/fdinfo/ r,
|
|
||||||
@{PROC}/@{pids}/io r,
|
|
||||||
|
|
||||||
@{sys}/class/i2c-adapter/ r,
|
@{sys}/class/i2c-adapter/ r,
|
||||||
@{sys}/devices/@{pci}/i2c-*/{,**/}name r,
|
@{sys}/devices/@{pci}/i2c-*/{,**/}name r,
|
||||||
@{sys}/class/hwmon/ r,
|
@{sys}/class/hwmon/ r,
|
||||||
@{sys}/devices/**/thermal*/{,**} r,
|
@{sys}/devices/**/thermal*/{,**} r,
|
||||||
@{sys}/devices/**/hwmon*/{,**} r,
|
@{sys}/devices/**/hwmon*/{,**} r,
|
||||||
|
|
||||||
/etc/sensors3.conf r,
|
@{PROC}/ r,
|
||||||
/etc/sensors.d/ r,
|
@{PROC}/@{pid}/net/dev r,
|
||||||
|
@{PROC}/@{pid}/net/tcp{,6} r,
|
||||||
|
@{PROC}/@{pid}/net/udp{,6} r,
|
||||||
|
@{PROC}/@{pids}/cmdline r,
|
||||||
|
@{PROC}/@{pids}/fdinfo/ r,
|
||||||
|
@{PROC}/@{pids}/io r,
|
||||||
|
@{PROC}/@{pids}/stat r,
|
||||||
|
@{PROC}/diskstats r,
|
||||||
|
@{PROC}/interrupts r,
|
||||||
|
@{PROC}/loadavg r,
|
||||||
|
@{PROC}/swaps r,
|
||||||
|
@{PROC}/sys/fs/dentry-state r,
|
||||||
|
@{PROC}/sys/fs/file-nr r,
|
||||||
|
@{PROC}/sys/fs/inode-nr r,
|
||||||
|
@{PROC}/sys/kernel/osrelease r,
|
||||||
|
@{PROC}/sys/kernel/pid_max r,
|
||||||
|
@{PROC}/sys/kernel/random/entropy_avail r,
|
||||||
|
@{PROC}/uptime r,
|
||||||
|
owner @{PROC}/@{pid}/mountinfo r,
|
||||||
|
owner @{PROC}/@{pid}/mounts r,
|
||||||
|
owner @{PROC}/@{pid}/net/ip_tables_names r,
|
||||||
|
owner @{PROC}/@{pid}/net/ip6_tables_names r,
|
||||||
|
|
||||||
include if exists <local/monitorix>
|
include if exists <local/monitorix>
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue