Categories
Development Linux

How to recursively remove all SELinux contexts?

I am trying to make my production environment equivalent to my staging environment. On production, SELinux contexts were applied. If I list the files in a directory, I see the dot at the end of the permission string, like…

drwxrwxr-x.

How can I recursively remove all contexts? I have disabled SELinux at /etc/selinux/config, but when I reboot, the contexts still are visible when I list the files in a directory.

Leave a Reply

Your email address will not be published. Required fields are marked *