---
 RHEL6/input/fixes/bash/no_nis_inclusions_common |   30 +++++++++++++++++++++++
 1 files changed, 30 insertions(+), 0 deletions(-)
 create mode 100755 RHEL6/input/fixes/bash/no_nis_inclusions_common

diff --git a/RHEL6/input/fixes/bash/no_nis_inclusions_common 
b/RHEL6/input/fixes/bash/no_nis_inclusions_common
new file mode 100755
index 0000000..b63e077
--- /dev/null
+++ b/RHEL6/input/fixes/bash/no_nis_inclusions_common
@@ -0,0 +1,30 @@
+# Copyright (c) 2012 Tresys Technology LLC, Columbia, Maryland, USA
+#
+# This software was developed by Tresys Technology LLC
+# with U.S. Government sponsorship.
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 2.1 of the License, or (at your option) any later version.
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+
+# Delete entries that begin with the +: nis entry.
+#
+#  arguments:
+#    delete_nis_lines(FILE)
+#      FILE  - File to check for nis lines.
+#
+delete_nis_lines(){
+       FILE=$1
+       
+       [ -f "$FILE" ] || exit 1
+
+       /bin/sed -i -e "/^\+\:.*/d" "$FILE"
+}
-- 
1.7.1

_______________________________________________
scap-security-guide mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/scap-security-guide

Reply via email to