From 50e0512a281a7cf8e71d87aab79e9563d4da897a Mon Sep 17 00:00:00 2001 From: Lucas Alvares Gomes Date: Tue, 11 Jun 2013 09:44:10 +0100 Subject: [PATCH] Add disable-selinux element. Having all security enabled is not always interesting, e.g. when developing or testing new elements. Change-Id: I828ecedc805ce4f89d60d185994eaa9c651d436a --- elements/disable-selinux/post-install.d/15-disable-selinux | 3 +++ 1 file changed, 3 insertions(+) create mode 100755 elements/disable-selinux/post-install.d/15-disable-selinux diff --git a/elements/disable-selinux/post-install.d/15-disable-selinux b/elements/disable-selinux/post-install.d/15-disable-selinux new file mode 100755 index 00000000..8f54798b --- /dev/null +++ b/elements/disable-selinux/post-install.d/15-disable-selinux @@ -0,0 +1,3 @@ +#!/bin/bash + +sed -i "s%^\(SELINUX=\s*\).*$%SELINUX=disabled%" /etc/selinux/config