- Fix unitialized variable in avcstat.c

This commit is contained in:
Daniel J Walsh 2004-12-27 11:53:31 +00:00
parent e836ab9afb
commit 4f73d76fa3
2 changed files with 16 additions and 1 deletions

10
libselinux-rhat.patch Normal file
View File

@ -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;

View File

@ -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 <dwalsh@redhat.com> 1.19.3-2
- Fix unitialized variable in avcstat.c
* Tue Nov 30 2004 Dan Walsh <dwalsh@redhat.com> 1.19.3-1
- Upgrade to upstream
* Removed some trivial utils that were not useful or redundant.