This commit is contained in:
parent
107f24b3bf
commit
6fa62e4d8a
11
libselinux-2.0.77-memleak.patch
Normal file
11
libselinux-2.0.77-memleak.patch
Normal 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. */
|
@ -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
|
Wed Jan 14 14:04:30 CET 2009 - prusnak@suse.cz
|
||||||
|
|
||||||
|
@ -23,13 +23,14 @@ BuildRequires: libsepol-devel >= %{libsepol_ver}
|
|||||||
|
|
||||||
Name: libselinux-bindings
|
Name: libselinux-bindings
|
||||||
Version: 2.0.77
|
Version: 2.0.77
|
||||||
Release: 1
|
Release: 2
|
||||||
Url: http://www.nsa.gov/selinux/
|
Url: http://www.nsa.gov/selinux/
|
||||||
License: GPL v2 only; Public Domain, Freeware
|
License: GPL v2 only; Public Domain, Freeware
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Summary: SELinux library and simple utilities
|
Summary: SELinux library and simple utilities
|
||||||
Source: libselinux-%{version}.tar.bz2
|
Source: libselinux-%{version}.tar.bz2
|
||||||
Patch0: libselinux-%{version}-rhat.patch.bz2
|
Patch0: libselinux-%{version}-rhat.patch.bz2
|
||||||
|
Patch1: libselinux-%{version}-memleak.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%define debug_package_requires python-selinux = %{version}-%{release}
|
%define debug_package_requires python-selinux = %{version}-%{release}
|
||||||
|
|
||||||
@ -101,6 +102,7 @@ decisions. Required for any applications that use the SELinux API.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n libselinux-%{version}
|
%setup -q -n libselinux-%{version}
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?jobs:-j%jobs} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS" -C src
|
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
|
%{_libdir}/ruby/site_ruby/%{rb_ver}/%{rb_arch}/selinux.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Apr 17 2009 prusnak@suse.cz
|
||||||
|
- fixed memory leak (memleak.patch)
|
||||||
* Wed Jan 14 2009 prusnak@suse.cz
|
* Wed Jan 14 2009 prusnak@suse.cz
|
||||||
- updated to 2.0.77
|
- updated to 2.0.77
|
||||||
* add new function getseuser which will take username and service
|
* add new function getseuser which will take username and service
|
||||||
|
@ -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
|
Wed Jan 14 14:04:30 CET 2009 - prusnak@suse.cz
|
||||||
|
|
||||||
|
@ -22,13 +22,14 @@ BuildRequires: libsepol-devel >= %{libsepol_ver}
|
|||||||
|
|
||||||
Name: libselinux
|
Name: libselinux
|
||||||
Version: 2.0.77
|
Version: 2.0.77
|
||||||
Release: 1
|
Release: 2
|
||||||
Url: http://www.nsa.gov/selinux/
|
Url: http://www.nsa.gov/selinux/
|
||||||
License: GPL v2 only; Public Domain, Freeware
|
License: GPL v2 only; Public Domain, Freeware
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Summary: SELinux library and simple utilities
|
Summary: SELinux library and simple utilities
|
||||||
Source: %{name}-%{version}.tar.bz2
|
Source: %{name}-%{version}.tar.bz2
|
||||||
Patch0: %{name}-%{version}-rhat.patch.bz2
|
Patch0: %{name}-%{version}-rhat.patch.bz2
|
||||||
|
Patch1: %{name}-%{version}-memleak.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%define debug_package_requires libselinux1 = %{version}-%{release}
|
%define debug_package_requires libselinux1 = %{version}-%{release}
|
||||||
|
|
||||||
@ -119,6 +120,7 @@ necessary to develop your own software using libselinux.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1
|
%patch0 -p1
|
||||||
|
%patch1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?jobs:-j%jobs} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS"
|
make %{?jobs:-j%jobs} LIBDIR="%{_libdir}" CFLAGS="$RPM_OPT_FLAGS"
|
||||||
@ -182,6 +184,8 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Apr 17 2009 prusnak@suse.cz
|
||||||
|
- fixed memory leak (memleak.patch)
|
||||||
* Wed Jan 14 2009 prusnak@suse.cz
|
* Wed Jan 14 2009 prusnak@suse.cz
|
||||||
- updated to 2.0.77
|
- updated to 2.0.77
|
||||||
* add new function getseuser which will take username and service
|
* add new function getseuser which will take username and service
|
||||||
|
Loading…
Reference in New Issue
Block a user