<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Create_SELinux_Modul</id>
	<title>Create SELinux Modul - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.ixheim.de/index.php?action=history&amp;feed=atom&amp;title=Create_SELinux_Modul"/>
	<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Create_SELinux_Modul&amp;action=history"/>
	<updated>2026-06-28T19:47:54Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Xinux Wiki</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.ixheim.de/index.php?title=Create_SELinux_Modul&amp;diff=38476&amp;oldid=prev</id>
		<title>Thomas.will: Die Seite wurde neu angelegt: „ =Create file my-httpd-php-ping.te and put this in it= *cat my-httpd-php-ping.te &lt;pre&gt; module my-httpd-php-ping 1.0;  require {         type httpd_t;         c…“</title>
		<link rel="alternate" type="text/html" href="https://wiki.ixheim.de/index.php?title=Create_SELinux_Modul&amp;diff=38476&amp;oldid=prev"/>
		<updated>2022-11-22T07:27:16Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „ =Create file my-httpd-php-ping.te and put this in it= *cat my-httpd-php-ping.te &amp;lt;pre&amp;gt; module my-httpd-php-ping 1.0;  require {         type httpd_t;         c…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
=Create file my-httpd-php-ping.te and put this in it=&lt;br /&gt;
*cat my-httpd-php-ping.te&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module my-httpd-php-ping 1.0;&lt;br /&gt;
&lt;br /&gt;
require {&lt;br /&gt;
        type httpd_t;&lt;br /&gt;
        class capability { net_admin net_raw };&lt;br /&gt;
        class icmp_socket create;&lt;br /&gt;
        class rawip_socket { create getopt read setopt write };&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
#============= httpd_t ==============&lt;br /&gt;
allow httpd_t self:capability { net_admin net_raw };&lt;br /&gt;
allow httpd_t self:icmp_socket create;&lt;br /&gt;
allow httpd_t self:rawip_socket { create getopt read setopt write };&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
=Compile it to a SELinux module like so=&lt;br /&gt;
*checkmodule -M -m -o my-httpd-php-ping.mod my-httpd-php-ping.te&lt;br /&gt;
*semodule_package -o my-httpd-php-ping.pp -m my-httpd-php-ping.mod&lt;br /&gt;
=And install it:=&lt;br /&gt;
*semodule -i my-httpd-php-ping.pp&lt;br /&gt;
=Afterwards, enable SELinux again=&lt;br /&gt;
*setenforce 1&lt;br /&gt;
=Links=&lt;br /&gt;
*https://unix.stackexchange.com/questions/675203/selinux-blocks-ping-from-php-exec&lt;br /&gt;
*https://forums.centos.org/viewtopic.php?t=49172&lt;br /&gt;
*https://phpipam.net/news/selinux-policy-for-icmp-checks/&lt;/div&gt;</summary>
		<author><name>Thomas.will</name></author>
	</entry>
</feed>