From c7862e54aaf52fc97cc00af04c58704e1f862533 Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Mar 08 2007 16:15:36 +0000 Subject: - Do not fail on permission denied in getsebool --- diff --git a/libselinux-rhat.patch b/libselinux-rhat.patch index e69de29..f8d82b5 100644 --- a/libselinux-rhat.patch +++ b/libselinux-rhat.patch @@ -0,0 +1,20 @@ +diff --exclude-from=exclude -N -u -r nsalibselinux/utils/getsebool.c libselinux-2.0.5/utils/getsebool.c +--- nsalibselinux/utils/getsebool.c 2006-11-16 17:15:17.000000000 -0500 ++++ libselinux-2.0.5/utils/getsebool.c 2007-03-08 11:07:32.000000000 -0500 +@@ -75,14 +75,14 @@ + fprintf(stderr, "Error getting active value for %s\n", + names[i]); + rc = -1; +- goto out; ++ continue; + } + pending = security_get_boolean_pending(names[i]); + if (pending < 0) { + fprintf(stderr, "Error getting pending value for %s\n", + names[i]); + rc = -1; +- goto out; ++ continue; + } + if (pending != active) { + printf("%s --> %s pending: %s\n", names[i], diff --git a/libselinux.spec b/libselinux.spec index 9dfba62..01ed972 100644 --- a/libselinux.spec +++ b/libselinux.spec @@ -2,7 +2,7 @@ Summary: SELinux library and simple utilities Name: libselinux Version: 2.0.5 -Release: 1%{?dist} +Release: 2%{?dist} License: Public domain (uncopyrighted) Group: System Environment/Libraries Source: http://www.nsa.gov/selinux/archives/%{name}-%{version}.tgz @@ -121,6 +121,9 @@ exit 0 %{_libdir}/python*/site-packages/selinux.py* %changelog +* Tue Mar 8 2007 Dan Walsh - 2.0.5-2 +- Do not fail on permission denied in getsebool + * Tue Feb 27 2007 Dan Walsh - 2.0.5-1 - Upgrade to upstream * Merged init_selinuxmnt() and is_selinux_enabled() improvements from Steve Grubb.