Add httpd-unix-sock
authorRalf Ertzinger <ralf@skytale.net>
Sun, 17 Nov 2019 13:25:04 +0000 (13:25 +0000)
committerRalf Ertzinger <ralf@skytale.net>
Sun, 17 Nov 2019 13:25:04 +0000 (13:25 +0000)
httpd-unix-sock/httpd-unix-sock.fc [new file with mode: 0644]
httpd-unix-sock/httpd-unix-sock.if [new file with mode: 0644]
httpd-unix-sock/httpd-unix-sock.te [new file with mode: 0644]

diff --git a/httpd-unix-sock/httpd-unix-sock.fc b/httpd-unix-sock/httpd-unix-sock.fc
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/httpd-unix-sock/httpd-unix-sock.if b/httpd-unix-sock/httpd-unix-sock.if
new file mode 100644 (file)
index 0000000..3eb6a30
--- /dev/null
@@ -0,0 +1 @@
+## <summary></summary>
diff --git a/httpd-unix-sock/httpd-unix-sock.te b/httpd-unix-sock/httpd-unix-sock.te
new file mode 100644 (file)
index 0000000..ef11af9
--- /dev/null
@@ -0,0 +1,10 @@
+policy_module(httpd-unix-sock, 0.0.1)
+
+require {
+    type httpd_t;
+    type unconfined_service_t;
+}
+
+files_search_pids(httpd_t);
+files_write_generic_pid_pipes(httpd_t);
+allow httpd_t unconfined_service_t:unix_stream_socket { getattr connectto };