- Fix unitialized variable problem
This commit is contained in:
parent
22cadfa754
commit
5242278d81
@ -1,12 +1,11 @@
|
|||||||
diff --exclude-from=exclude -N -u -r nsalibsepol/src/genbools.c libsepol-1.5.9/src/genbools.c
|
--- libsepol-1.7.5/src/policydb.c~ 2005-07-18 15:05:31.000000000 -0400
|
||||||
--- nsalibsepol/src/genbools.c 2005-05-17 08:07:47.000000000 -0400
|
+++ libsepol-1.7.5/src/policydb.c 2005-07-25 09:36:04.000000000 -0400
|
||||||
+++ libsepol-1.5.9/src/genbools.c 2005-05-26 10:54:03.000000000 -0400
|
@@ -2428,7 +2428,7 @@
|
||||||
@@ -194,7 +194,7 @@
|
|
||||||
for (i = 0; i < nel; i++) {
|
len = buf[1];
|
||||||
datum = hashtab_search(policydb.p_bools.table, names[i]);
|
if (len != strlen(target_str)) {
|
||||||
if (!datum) {
|
- printf("security: policydb string length %zu does not match expected length %zu\n", len, strlen(policydb_str));
|
||||||
- __sepol_debug_printf("%s: unknown boolean %s\n",
|
+ printf("security: policydb string length %zu does not match expected length %zu\n", len, strlen(target_str));
|
||||||
+ __sepol_debug_printf("%s: boolean %s no longer in policy\n",
|
return -1;
|
||||||
__FUNCTION__, names[i]);
|
}
|
||||||
errors++;
|
|
||||||
continue;
|
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
Summary: SELinux binary policy manipulation library
|
Summary: SELinux binary policy manipulation library
|
||||||
Name: libsepol
|
Name: libsepol
|
||||||
Version: 1.7.5
|
Version: 1.7.5
|
||||||
Release: 1
|
Release: 2
|
||||||
License: GPL
|
License: GPL
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
Source: http://www.nsa.gov/selinux/archives/libsepol-%{version}.tgz
|
Source: http://www.nsa.gov/selinux/archives/libsepol-%{version}.tgz
|
||||||
|
Patch: libsepol-rhat.patch
|
||||||
Prefix: %{_prefix}
|
Prefix: %{_prefix}
|
||||||
BuildRoot: %{_tmppath}/%{name}-buildroot
|
BuildRoot: %{_tmppath}/%{name}-buildroot
|
||||||
Provides: libsepol.so
|
Provides: libsepol.so
|
||||||
@ -36,6 +37,7 @@ needed for developing applications that manipulate binary policies.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch -p1 -b .rhat
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make CFLAGS="%{optflags}"
|
make CFLAGS="%{optflags}"
|
||||||
@ -72,6 +74,9 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
/%{_lib}/libsepol.so.1
|
/%{_lib}/libsepol.so.1
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Jul 25 2005 Dan Walsh <dwalsh@redhat.com> 1.7.5-2
|
||||||
|
- Fix unitialized variable problem
|
||||||
|
|
||||||
* Mon Jul 18 2005 Dan Walsh <dwalsh@redhat.com> 1.7.5-1
|
* Mon Jul 18 2005 Dan Walsh <dwalsh@redhat.com> 1.7.5-1
|
||||||
- Upgrade to latest from NSA
|
- Upgrade to latest from NSA
|
||||||
* Merged debug support, policydb conversion functions from Ivan Gyurdiev (Red Hat).
|
* Merged debug support, policydb conversion functions from Ivan Gyurdiev (Red Hat).
|
||||||
|
Loading…
Reference in New Issue
Block a user