SHA256
1
0
forked from pool/libselinux
OBS User unknown 2009-04-23 16:30:16 +00:00 committed by Git OBS Bridge
parent 41ebeac5fc
commit 12f65cbf75
5 changed files with 31 additions and 2 deletions

View File

@ -0,0 +1,11 @@
--- src/label_file.c
+++ src/label_file.c
@@ -299,6 +299,8 @@
COMPAT_LOG(SELINUX_WARNING,
"%s: line %d is missing fields, skipping\n", path,
lineno);
+ if (items == 1)
+ free(regex);
return 0;
} else if (items == 2) {
/* The type field is optional. */

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Apr 17 17:12:06 CEST 2009 - prusnak@suse.cz
- fixed memory leak (memleak.patch)
-------------------------------------------------------------------
Wed Jan 14 14:04:30 CET 2009 - prusnak@suse.cz

View File

@ -23,13 +23,14 @@ BuildRequires: libsepol-devel >= %{libsepol_ver}
Name: libselinux-bindings
Version: 2.0.77
Release: 1
Release: 2
Url: http://www.nsa.gov/selinux/
License: GPL v2 only; Public Domain, Freeware
Group: System/Libraries
Summary: SELinux library and simple utilities
Source: libselinux-%{version}.tar.bz2
Patch0: libselinux-%{version}-rhat.patch.bz2
Patch1: libselinux-%{version}-memleak.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define debug_package_requires python-selinux = %{version}-%{release}
@ -101,6 +102,7 @@ decisions. Required for any applications that use the SELinux API.
%prep
%setup -q -n libselinux-%{version}
%patch0 -p1
%patch1
%build
make %{?jobs:-j%jobs} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src
@ -127,6 +129,8 @@ rm -rf $RPM_BUILD_ROOT
%{_libdir}/ruby/site_ruby/%{rb_ver}/%{rb_arch}/selinux.so
%changelog
* Fri Apr 17 2009 prusnak@suse.cz
- fixed memory leak (memleak.patch)
* Wed Jan 14 2009 prusnak@suse.cz
- updated to 2.0.77
* add new function getseuser which will take username and service

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Apr 17 17:12:06 CEST 2009 - prusnak@suse.cz
- fixed memory leak (memleak.patch)
-------------------------------------------------------------------
Wed Jan 14 14:04:30 CET 2009 - prusnak@suse.cz

View File

@ -22,13 +22,14 @@ BuildRequires: libsepol-devel >= %{libsepol_ver}
Name: libselinux
Version: 2.0.77
Release: 1
Release: 2
Url: http://www.nsa.gov/selinux/
License: GPL v2 only; Public Domain, Freeware
Group: System/Libraries
Summary: SELinux library and simple utilities
Source: %{name}-%{version}.tar.bz2
Patch0: %{name}-%{version}-rhat.patch.bz2
Patch1: %{name}-%{version}-memleak.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define debug_package_requires libselinux1 = %{version}-%{release}
@ -119,6 +120,7 @@ necessary to develop your own software using libselinux.
%prep
%setup -q
%patch0 -p1
%patch1
%build
make %{?jobs:-j%jobs} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS"
@ -182,6 +184,8 @@ rm -rf $RPM_BUILD_ROOT
%{_mandir}/man3/*
%changelog
* Fri Apr 17 2009 prusnak@suse.cz
- fixed memory leak (memleak.patch)
* Wed Jan 14 2009 prusnak@suse.cz
- updated to 2.0.77
* add new function getseuser which will take username and service