Hosts file access

Miroslav Grepl mgrepl at redhat.com
Fri May 23 05:31:06 UTC 2014


On 05/22/2014 06:35 PM, Emmett Culley wrote:
> 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
> --
> selinux mailing list
> selinux at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/selinux
What AVC message are you getting?

What OS?

Regards,
Miroslav


More information about the selinux mailing list