Le 12/08/2023 à 18:41, Reindl Harald a écrit :
Am 12.08.23 um 18:36 schrieb François Patte:
Le 12/08/2023 à 18:29, Reindl Harald a écrit :
Am 12.08.23 um 17:18 schrieb François Patte:
Bonjour,
I am currently unable to start nftables service, the answer is:
internal:0:0-0: Error: Could not open file
"/etc/sysconfig/nftables.conf": Permission denied
file /etc/sysconfig/nftables.conf exists and have 755 permissions.
What can I do?
sounds like SELinux / AppAmor problem - that's why you should provide
informations about your system - we don't even know your distribution
nor do you provide your service unit or even the init-system
system is fedora 36
EOL since 2023‑05‑16 which is *3 months ago*
F37 was released 2022-11-16
it's time to plan upgrade to F38 currently
don't run a bleeding edge distro when you can't cope with updates!
It is a server at ovh and they installed this version... Now they
propose f38, I'll upgrade.
selinux policy is enforced
nftables is enabled
And yes, it is a selinux problem: if I setenforce to 0, I can start
nftables (but I found this solution after posting....)
I can go back to setenforce 1 without annoying nftables but, the problem
remains if I reboot the machine.
Google: "fedora restore selinux context of a specific file"
https://www.thegeekstuff.com/2017/05/restorecon-examples/
Thank you, this solved the problem.
F.P.