Closed theKAKAN closed 3 years ago
The SELinux policy is not part of vnstat, it is part of the Fedora package selinux-policy
, see https://github.com/fedora-selinux/selinux-policy/blob/rawhide/policy/modules/contrib/vnstatd.te.
The first issue seems to be a wrong file context issue, which should have been resolved by running restorecon
.
The second issue looks like a missing permission, please report a bug to the Fedora package selinux-policy
.
Hello, I just installed vnstat using
sudo dnf install vnstat
and after trying to start it usingsudo systemctl start vnstat
, I constantly ran into issues, and it stopped abruptly.After poking around for some time, it seems like the issue is with SELinux policy not allowing read access on the database file(s). Here's the log that I had:
After running:
I ran into issues with the DB's mmap access( which sounds more of a F34 issue than vnstat one tbh )
So, running:
did fix it for me.
Thank you for this wonderful tool, and do say if you need any other information
In case it helps, I'm running stock Fedora 34 and here's some more information
vnStat version: