Re: Resetting SELinux to default

Thomas Cameron <[email protected]>
Newsgroups gmane.linux.redhat.fedora.selinux
Message-ID <[email protected]>
On 11/8/18 9:14 AM, Mahmood Naderan wrote:
> Hi,
> 
> What is the safest method to reset SELinux to its default configuration
> without reinstalling the operating system?

Generally, when you make changes to SELinux, a file with the extension
.local is created under /etc/selinux.

So to see all the changes that have been made, you can do

find /etc/selinux -name "*.local"

Then you can read those files and back out any changes which have been
made.

On my system, for instance, I have a file:

/etc/selinux/targeted/contexts/files/file_contexts.local

I just tested, and the booleans.local no longer seems to be created... I
know there used to be a booleans.local file created when you ran
setsebool -P. Has that gone away?

Thomas
_______________________________________________
selinux mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.