From: Jan Safranek Date: Mon, 15 Nov 2010 13:59:58 +0000 (+0100) Subject: Update the spec file with new user and sgid cgexec X-Git-Tag: v0.37~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d23aa980373feab129d6d7ed71ec5435ce8ed83;p=thirdparty%2Flibcgroup.git Update the spec file with new user and sgid cgexec Update the spec file: - add new cgred group - /bin/cgexec is sgid (instead of suid, as 'make install' does Signed-off-by: Jan Safranek Signed-off-by: Dhaval Giani --- diff --git a/dist/libcgroup.spec.in b/dist/libcgroup.spec.in index 16206d12..98cf9b50 100644 --- a/dist/libcgroup.spec.in +++ b/dist/libcgroup.spec.in @@ -14,6 +14,7 @@ BuildRequires: pam-devel BuildRequires: byacc BuildRequires: flex BuildRequires: coreutils +Requires(pre): shadow-utils Requires(post): chkconfig, /sbin/service Requires(preun): /sbin/chkconfig @@ -71,10 +72,14 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/libcgroup.so.%{soversion_major} ln -sf libcgroup.so.%{soversion} $RPM_BUILD_ROOT/%{_lib}/libcgroup.so.%{soversion_major} ln -sf ../../%{_lib}/libcgroup.so.%{soversion} $RPM_BUILD_ROOT/%{_libdir}/libcgroup.so rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la + %clean rm -rf $RPM_BUILD_ROOT -%post +%pre +getent group cgred >/dev/null || groupadd cgred + +%post /sbin/ldconfig /sbin/chkconfig --add cgred /sbin/chkconfig --add cgconfig @@ -96,7 +101,7 @@ fi %config(noreplace) %{_sysconfdir}/cgconfig.conf %config(noreplace) %{_sysconfdir}/cgrules.conf /%{_lib}/libcgroup.so.* -/bin/cgexec +%attr(2755, root, cgred) /bin/cgexec /bin/cgclassify /bin/cgcreate /bin/cgget