Update to 0.37.1

Resolves: CVE-2011-1006 CVE-2011-1022
This commit is contained in:
Jan Safranek 2011-03-03 09:47:07 +01:00
parent f4d44aa1fd
commit df868a2d15
4 changed files with 7 additions and 32 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
libcgroup-0.36.2.tar.bz2 libcgroup-0.36.2.tar.bz2
/libcgroup-0.37.tar.bz2 /libcgroup-0.37.tar.bz2
/libcgroup-0.37.1.tar.bz2

View File

@ -1,27 +0,0 @@
commit 1d7bbecfea73bd0b21c457c240e9049f8a5c40cc
Author: Jan Safranek <jsafrane@redhat.com>
Date: Fri Jan 7 13:29:04 2011 +0100
BUGFIX: add missing braces
Fix cgclassify to return zero exit code when it succeeds.
Signed-off-by: Jan Safranek <jsafrane@redhat.com>
diff --git a/src/tools/cgclassify.c b/src/tools/cgclassify.c
index 3181105..fcad4b2 100644
--- a/src/tools/cgclassify.c
+++ b/src/tools/cgclassify.c
@@ -45,10 +45,11 @@ static int change_group_path(pid_t pid, struct cgroup_group_spec *cgroup_list[])
ret = cgroup_change_cgroup_path(cgroup_list[i]->path, pid,
(const char*const*) cgroup_list[i]->controllers);
- if (ret)
+ if (ret) {
fprintf(stderr, "Error changing group of pid %d: %s\n",
pid, cgroup_strerror(ret));
return -1;
+ }
}
return 0;

View File

@ -4,8 +4,8 @@
Name: libcgroup Name: libcgroup
Summary: Tools and libraries to control and monitor control groups Summary: Tools and libraries to control and monitor control groups
Group: Development/Libraries Group: Development/Libraries
Version: 0.37 Version: 0.37.1
Release: 3%{?dist} Release: 1%{?dist}
License: LGPLv2+ License: LGPLv2+
URL: http://libcg.sourceforge.net/ URL: http://libcg.sourceforge.net/
Source0: http://downloads.sourceforge.net/libcg/%{name}-%{version}.tar.bz2 Source0: http://downloads.sourceforge.net/libcg/%{name}-%{version}.tar.bz2
@ -13,7 +13,6 @@ Source1: README.Fedora
Patch1: fedora-config.patch Patch1: fedora-config.patch
Patch2: fedora-fix-initscripts.patch Patch2: fedora-fix-initscripts.patch
Patch3: libcgroup-0.36.2-systemd.patch Patch3: libcgroup-0.36.2-systemd.patch
Patch4: libcgrouop-0.37-cgclassify.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: pam-devel BuildRequires: pam-devel
BuildRequires: byacc BuildRequires: byacc
@ -51,7 +50,6 @@ provide scripts to manage that configuration.
%patch1 -p1 -b .config %patch1 -p1 -b .config
%patch2 -p1 -b .lsb %patch2 -p1 -b .lsb
%patch3 -p1 -b .systemd %patch3 -p1 -b .systemd
%patch4 -p1 -b .cgclassify
%build %build
%configure --bindir=/bin --sbindir=/sbin --libdir=%{_libdir} --enable-initscript-install --enable-pam-module-dir=/%{_lib}/security %configure --bindir=/bin --sbindir=/sbin --libdir=%{_libdir} --enable-initscript-install --enable-pam-module-dir=/%{_lib}/security
@ -152,6 +150,9 @@ fi
%doc COPYING INSTALL %doc COPYING INSTALL
%changelog %changelog
* Thu Mar 3 2011 Jan Safranek <jsafrane@redhat.com> 0.37.1-1
- Update to 0.37.1
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.37-3 * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.37-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

View File

@ -1 +1 @@
beecca8770155afa62981076e96d4c9c libcgroup-0.37.tar.bz2 24a41b18de112e8d085bb1f7d9e82af7 libcgroup-0.37.1.tar.bz2