Hosts file access

Emmett Culley lst_manage at webengineer.com
Thu May 22 16:35:41 UTC 2014


I am continually getting getattr and read AVC errors.  From my research, I believe it is because my hosts file gets modified each time I VPN into my work network.

I cause the host names and IP addresses that are part of the internal work network to be appended to the hosts file upon the VPN connection and then restore the original hosts file upon disconnection.

I have tried restorecon /etc/hosts, but I  still get the warnings. I have also done the mypol fixes suggested in the troubleshooting dialog's details page.  Nothing I do resolves this issue.

How can I prevent these AVC errors?  Or at least properly modify my hosts file (and possibly others) the SELinux way?

Emmett


More information about the selinux mailing list