Fix sesinetd errors under Linux (Fedora) or basically SELinux

Here is another quick tip; fix sesinetd errors under Linux specifically SELinux. Basically SELinux means Security Enhanced Linux and what I understand is that it prevents any modified or untrusted code or service to run and sesinetd is one of them. It basically doesn't allow the sesinetd to run on system startup.

The fix is simple; update the security context of the sesinetd service.

First check the security context:

cd /etc/init.d/
ls -Zla

This will print the security context of each file:

-rwxr-xr-x.  1 root root unconfined_u:object_r:etc_t:s0          5144 May 18 14:41 sesinetd

The easiest way is to copy the security context from one of the service scripts that are able to run, in my case I copy the context from livesys:

chcon --reference=livesys sesinetd

That's all, after this:

ls -Zla


prints:

-rwxr-xr-x.  1 root root system_u:object_r:initrc_exec_t:s0      5144 May 18 14:41 sesinetd


Then you either restart your computer or restart the sesinetd service:

systemctl restart sesinetd

Comments