SELinux and NTP problem.
Hello,
I use the last version of the Fedora Server and I want to configure SELinux for the NTP service. According to https://wiki.samba.org/index.php/Tim...ing_and_Policy tutorial, I tried to configure SELinux, but I got below error: Code:
# chcon -u system_u -t ntpd_t /usr/local/samba/var/lib/ntp_signd Code:
# sestatus https://paste.ubuntu.com/p/JnxMtTsqg5/ And I did: Code:
# ausearch -c 'chcon' --raw | audit2allow -M my-chcon How can I solve it? Thank you. |
the command "seinfo -afile_type -x" for me gives the following file types for ntpd.
Code:
# seinfo -afile_type -x | grep ntp Try using a valid file type. |
Thanks you.
I got below error: Code:
# seinfo -afile_type -x | grep ntp Code:
# dnf install seinfo |
Quote:
Code:
sudo yum whatprovides seinfo |
From https://docs.fedoraproject.org/en-US...icy_Suite.html, I gather that seinfo doesn't exist anymore as a command (although it's not stated very clearly), but only as a python module.
|
@berndbausch. No, it still does. See https://github.com/SELinuxProject/setools/wiki.
|
Well, by "exists" I meant "available in Fedora repos". Of course, there is plenty of software that you can install on your operating system without endorsement from the distro. Installing SEtools on Fedora seems to be requiring a fair bit of hoop-jumping.
|
The thing is setools are part of Fedora. Particularly, seinfo is provided by package setools-console.
|
Quote:
|
Quote:
Code:
# seinfo -afile_type -x | grep ntp |
Quote:
Quote:
|
All times are GMT -5. The time now is 10:36 AM. |