<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
		<id>https://wiki.tonioc.ovh/index.php?action=history&amp;feed=atom&amp;title=SELinux_cr%C3%A9er_un_module_d%27exception</id>
		<title>SELinux créer un module d'exception - Historique des versions</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.tonioc.ovh/index.php?action=history&amp;feed=atom&amp;title=SELinux_cr%C3%A9er_un_module_d%27exception"/>
		<link rel="alternate" type="text/html" href="https://wiki.tonioc.ovh/index.php?title=SELinux_cr%C3%A9er_un_module_d%27exception&amp;action=history"/>
		<updated>2026-04-17T14:02:23Z</updated>
		<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://wiki.tonioc.ovh/index.php?title=SELinux_cr%C3%A9er_un_module_d%27exception&amp;diff=415&amp;oldid=prev</id>
		<title>Toine le 22 janvier 2021 à 17:46</title>
		<link rel="alternate" type="text/html" href="https://wiki.tonioc.ovh/index.php?title=SELinux_cr%C3%A9er_un_module_d%27exception&amp;diff=415&amp;oldid=prev"/>
				<updated>2021-01-22T17:46:59Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&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 style=&quot;vertical-align: top;&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Version du 22 janvier 2021 à 17:46&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-l20&quot; &gt;Ligne 20 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 20 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Appliquer le module&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Appliquer le module&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; # semodule -i mysemodule.pp&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; # semodule -i mysemodule.pp&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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:Linux]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; 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:SELinux]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Toine</name></author>	</entry>

	<entry>
		<id>https://wiki.tonioc.ovh/index.php?title=SELinux_cr%C3%A9er_un_module_d%27exception&amp;diff=414&amp;oldid=prev</id>
		<title>Toine : Page créée avec « Objectif: se débarrasser de certaines alertes SELinux qu'on ne peut pas traiter avec restorecon, chcon.   Pour cela il faut les packages policycoreutils et checkpolicy (r... »</title>
		<link rel="alternate" type="text/html" href="https://wiki.tonioc.ovh/index.php?title=SELinux_cr%C3%A9er_un_module_d%27exception&amp;diff=414&amp;oldid=prev"/>
				<updated>2021-01-22T17:44:00Z</updated>
		
		<summary type="html">&lt;p&gt;Page créée avec « Objectif: se débarrasser de certaines alertes SELinux qu&amp;#039;on ne peut pas traiter avec restorecon, chcon.   Pour cela il faut les packages policycoreutils et checkpolicy (r... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Objectif: se débarrasser de certaines alertes SELinux qu'on ne peut pas traiter avec restorecon, chcon. &lt;br /&gt;
&lt;br /&gt;
Pour cela il faut les packages policycoreutils et checkpolicy (rhel8).&lt;br /&gt;
On va extraire les alertes SElinux de l'audit log, créer le module texte et le compiler puis l'appliquer.&lt;br /&gt;
&lt;br /&gt;
Extraire les logs (par exemple toutes les alertes): &lt;br /&gt;
  # grep &amp;quot;avc:  denied&amp;quot; /var/log/audit/audit.log &amp;gt; mysemodule.log&lt;br /&gt;
&lt;br /&gt;
Laisser dans ce fichier uniquement les lignes correspondant aux alertes à supprimer, puis générer les règles correspondantes&lt;br /&gt;
  # cat mysemodule.txt | audit2allow -r &amp;gt; mysemodule.te&lt;br /&gt;
&lt;br /&gt;
Ajouter une ligne en tête de fichier définissant le module, par exemple &lt;br /&gt;
  module mysemodule 1.0.0;&lt;br /&gt;
&lt;br /&gt;
Compiler le module:&lt;br /&gt;
  # rm -f mysemodule.mod mysemodule.pp &lt;br /&gt;
  # checkmodule -M -m -o mysemodule.mod mysemodule.te&lt;br /&gt;
  # semodule_package -o mysemodule.pp -m mysemodule.mod&lt;br /&gt;
&lt;br /&gt;
Appliquer le module&lt;br /&gt;
  # semodule -i mysemodule.pp&lt;/div&gt;</summary>
		<author><name>Toine</name></author>	</entry>

	</feed>