[PATCH 03/26] Moved RHEL6 selinux_state.sh to shared
Shawn Wells
shawn at redhat.com
Tue Apr 15 18:30:44 UTC 2014
-------------- next part --------------
>From 7c1782c045ab262e391765e00c915a6337701acc Mon Sep 17 00:00:00 2001
From: Shawn Wells <shawn at redhat.com>
Date: Sun, 13 Apr 2014 01:01:00 -0400
Subject: [PATCH 03/26] Moved RHEL6 selinux_state.sh to shared
[shawn at SSG-RHEL6 bash]$ mv selinux_state.sh ../../../../../shared/fixes/bash/
[shawn at SSG-RHEL6 bash]$ ln -s ../../../../../shared/fixes/bash/selinux_state.sh .
[shawn at SSG-RHEL6 bash]$ git add ../../../../../shared/fixes/bash/selinux_state.sh ; git add selinux_state.sh ; git commit
---
RHEL/6/input/fixes/bash/selinux_state.sh | 9 +--------
shared/fixes/bash/selinux_state.sh | 8 ++++++++
2 files changed, 9 insertions(+), 8 deletions(-)
mode change 100644 => 120000 RHEL/6/input/fixes/bash/selinux_state.sh
create mode 100644 shared/fixes/bash/selinux_state.sh
diff --git a/RHEL/6/input/fixes/bash/selinux_state.sh b/RHEL/6/input/fixes/bash/selinux_state.sh
deleted file mode 100644
index c7d39ac..0000000
--- a/RHEL/6/input/fixes/bash/selinux_state.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-source ./templates/support.sh
-populate var_selinux_state
-
-grep -q ^SELINUX= /etc/selinux/config && \
- sed -i "s/SELINUX=.*/SELINUX=$var_selinux_state/g" /etc/selinux/config
-if ! [ $? -eq 0 ]; then
- echo "SELINUX=$var_selinux_state" >> /etc/selinux/config
-fi
diff --git a/RHEL/6/input/fixes/bash/selinux_state.sh b/RHEL/6/input/fixes/bash/selinux_state.sh
new file mode 120000
index 0000000..bb7dce8
--- /dev/null
+++ b/RHEL/6/input/fixes/bash/selinux_state.sh
@@ -0,0 +1 @@
+../../../../../shared/fixes/bash/selinux_state.sh
\ No newline at end of file
diff --git a/shared/fixes/bash/selinux_state.sh b/shared/fixes/bash/selinux_state.sh
new file mode 100644
index 0000000..c7d39ac
--- /dev/null
+++ b/shared/fixes/bash/selinux_state.sh
@@ -0,0 +1,8 @@
+source ./templates/support.sh
+populate var_selinux_state
+
+grep -q ^SELINUX= /etc/selinux/config && \
+ sed -i "s/SELINUX=.*/SELINUX=$var_selinux_state/g" /etc/selinux/config
+if ! [ $? -eq 0 ]; then
+ echo "SELINUX=$var_selinux_state" >> /etc/selinux/config
+fi
--
1.7.1
More information about the scap-security-guide
mailing list