diff --git a/libselinux-rhat.patch b/libselinux-rhat.patch new file mode 100644 index 0000000..506d03a --- /dev/null +++ b/libselinux-rhat.patch @@ -0,0 +1,10 @@ +--- libselinux-1.19.3/utils/avcstat.c.rhat 2004-12-03 14:40:34.000000000 -0500 ++++ libselinux-1.19.3/utils/avcstat.c 2004-12-27 06:48:49.000000000 -0500 +@@ -166,6 +166,7 @@ + "hits", "misses", "allocs", "reclaims", "frees"); + + memset(&tot, 0, sizeof(tot)); ++ memset(&last, 0, sizeof(last)); + + while ((line = strtok(NULL, "\n"))) { + struct avc_cache_stats tmp; diff --git a/libselinux.spec b/libselinux.spec index cb670b0..604b441 100644 --- a/libselinux.spec +++ b/libselinux.spec @@ -1,11 +1,12 @@ Summary: SELinux library and simple utilities Name: libselinux Version: 1.19.3 -Release: 1 +Release: 2 License: Public domain (uncopyrighted) Group: System Environment/Libraries Source: http://www.nsa.gov/selinux/archives/%{name}-%{version}.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot +Patch: libselinux-rhat.patch %description Security-enhanced Linux is a patch of the Linux® kernel and a number @@ -33,6 +34,7 @@ needed for developing SELinux applications. %prep %setup -q +%patch -p1 -b .rhat %build make CFLAGS="-g %{optflags}" @@ -83,6 +85,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_mandir}/man8/* %changelog +* Mon Dec 27 2004 Dan Walsh 1.19.3-2 +- Fix unitialized variable in avcstat.c + * Tue Nov 30 2004 Dan Walsh 1.19.3-1 - Upgrade to upstream * Removed some trivial utils that were not useful or redundant.