<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://leo.leung.xyz/wiki/index.php?action=history&amp;feed=atom&amp;title=How_to_disable_SELinux</id>
	<title>How to disable SELinux - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://leo.leung.xyz/wiki/index.php?action=history&amp;feed=atom&amp;title=How_to_disable_SELinux"/>
	<link rel="alternate" type="text/html" href="https://leo.leung.xyz/wiki/index.php?title=How_to_disable_SELinux&amp;action=history"/>
	<updated>2026-10-11T07:03:58Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://leo.leung.xyz/wiki/index.php?title=How_to_disable_SELinux&amp;diff=7319&amp;oldid=prev</id>
		<title>Leo at 22:30, 18 August 2023</title>
		<link rel="alternate" type="text/html" href="https://leo.leung.xyz/wiki/index.php?title=How_to_disable_SELinux&amp;diff=7319&amp;oldid=prev"/>
		<updated>2023-08-18T22:30:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 22:30, 18 August 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[&lt;/ins&gt;SELinux&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]] &lt;/ins&gt;(Security Enhanced Linux) is a Linux kernel security module which allows the system to enforce access controls. You may want to disable it on systems where you do not need this level of security.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;SELinux (Security Enhanced Linux) is a Linux kernel security module which allows the system to enforce access controls. You may want to disable it on systems where you do not need this level of security.&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Is SElinux enabled? ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Is SElinux enabled? ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l43&quot;&gt;Line 43:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 42:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# vi /etc/selinux/config&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;# vi /etc/selinux/config&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Navbox Linux}}[[Category:Linux]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:LinuxUtilities]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki:diff:1.41:old-7318:rev-7319:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Leo</name></author>
	</entry>
	<entry>
		<id>https://leo.leung.xyz/wiki/index.php?title=How_to_disable_SELinux&amp;diff=7318&amp;oldid=prev</id>
		<title>Leo: Created page with &quot;  SELinux (Security Enhanced Linux) is a Linux kernel security module which allows the system to enforce access controls. You may want to disable it on systems where you do not need this level of security.  == Is SElinux enabled? == Check the status of SELinux with &lt;code&gt;sestatus&lt;/code&gt; and look for the &#039;&lt;code&gt;SELinux status&lt;/code&gt;&#039; and &#039;&lt;code&gt;Current mode&lt;/code&gt;&#039;: {{Highlight | code = # sestatus SELinux status:                 enabled SELinuxfs mount:                /sy...&quot;</title>
		<link rel="alternate" type="text/html" href="https://leo.leung.xyz/wiki/index.php?title=How_to_disable_SELinux&amp;diff=7318&amp;oldid=prev"/>
		<updated>2023-08-18T22:28:25Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;  SELinux (Security Enhanced Linux) is a Linux kernel security module which allows the system to enforce access controls. You may want to disable it on systems where you do not need this level of security.  == Is SElinux enabled? == Check the status of SELinux with &amp;lt;code&amp;gt;sestatus&amp;lt;/code&amp;gt; and look for the &amp;#039;&amp;lt;code&amp;gt;SELinux status&amp;lt;/code&amp;gt;&amp;#039; and &amp;#039;&amp;lt;code&amp;gt;Current mode&amp;lt;/code&amp;gt;&amp;#039;: {{Highlight | code = # sestatus SELinux status:                 enabled SELinuxfs mount:                /sy...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
SELinux (Security Enhanced Linux) is a Linux kernel security module which allows the system to enforce access controls. You may want to disable it on systems where you do not need this level of security.&lt;br /&gt;
&lt;br /&gt;
== Is SElinux enabled? ==&lt;br /&gt;
Check the status of SELinux with &amp;lt;code&amp;gt;sestatus&amp;lt;/code&amp;gt; and look for the &amp;#039;&amp;lt;code&amp;gt;SELinux status&amp;lt;/code&amp;gt;&amp;#039; and &amp;#039;&amp;lt;code&amp;gt;Current mode&amp;lt;/code&amp;gt;&amp;#039;:&lt;br /&gt;
{{Highlight&lt;br /&gt;
| code = # sestatus&lt;br /&gt;
SELinux status:                 enabled&lt;br /&gt;
SELinuxfs mount:                /sys/fs/selinux&lt;br /&gt;
SELinux root directory:         /etc/selinux&lt;br /&gt;
Loaded policy name:             targeted&lt;br /&gt;
Current mode:                   enforcing&lt;br /&gt;
Mode from config file:          enforcing&lt;br /&gt;
Policy MLS status:              enabled&lt;br /&gt;
Policy deny_unknown status:     allowed&lt;br /&gt;
Memory protection checking:     actual (secure)&lt;br /&gt;
Max kernel policy version:      33&lt;br /&gt;
| lang = terminal&lt;br /&gt;
}}&lt;br /&gt;
The mode tells you:&lt;br /&gt;
&lt;br /&gt;
* Enforcing – SELinux is active and enforcing its policy rules.&lt;br /&gt;
* Permissive – SELinux permits every thing, but logs the events it would normally deny in enforcing mode.&lt;br /&gt;
* Disabled – SELinux is not enforcing rules or logging anything.&lt;br /&gt;
&lt;br /&gt;
If SELinux is in enforcing mode, you can disable it in the next section below.&lt;br /&gt;
&lt;br /&gt;
===Disabling SELinux===&lt;br /&gt;
To temporarily disable SELinux:{{highlight|lang=terminal|code=&lt;br /&gt;
## Use the setenforce command&lt;br /&gt;
# setenforce 0&lt;br /&gt;
&lt;br /&gt;
## or, on older kernels:&lt;br /&gt;
# echo 0 &amp;gt; /selinux/enforce&lt;br /&gt;
&lt;br /&gt;
## or, on newer kernels (the /selinux fs has been moved to /sys/fs/selinux)&lt;br /&gt;
# echo 0 &amp;gt; /sys/fs/selinux/enforce&lt;br /&gt;
&lt;br /&gt;
}}To permanently disable SELinux:{{highlight|lang=terminal|code=&lt;br /&gt;
# sed -i --follow-symlinks &amp;#039;s/SELINUX=enforcing/SELINUX=disabled/g&amp;#039; /etc/sysconfig/selinux&lt;br /&gt;
## or manually set SELINUX=disabled &lt;br /&gt;
# vi /etc/selinux/config&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Leo</name></author>
	</entry>
</feed>