Files
libcgroup/pam_cgroup-Revert-broken-cache-usage.patch
olh 04d4a6d1e5 Accepting request 1204940 from home:WernerFink:branches:Virtualization
- Update to libcgroup-3.1.0
  NOTE - this release is not guaranteed to be backward compatible
  with previous releases!  There has been many changes!
  * Libcgroup v3.1.0 adds systemd support to the libcgroup library.
- Add cgrules.service and cgconfig.service below examples in
  package documentation of libcgroup-tools
- Adopt baselibs.conf to libcgroup3
- Split off a separate libcgroup-pam package
- Drop obsolete patches
  * cgconfig-Do-not-overwrite-defaultcgroup-configuratio.patch
  * do-not-version-pam-module.patch
  * initd_cgconfig.patch
  * initd_cgred.patch
- Add patches
  * Syntax-fixes-for-man-pages.patch
  * cgroup-directory.patch
  * oldfashion_init.patch
  * pam_cgroup-Revert-broken-cache-usage.patch
  * template-doc.patch

OBS-URL: https://build.opensuse.org/request/show/1204940
OBS-URL: https://build.opensuse.org/package/show/Virtualization/libcgroup?expand=0&rev=19
2024-10-02 06:57:22 +00:00

39 lines
1.4 KiB
Diff

From: Christian Kastner <ckk@debian.org>
Date: Fri, 2 Oct 2015 14:41:56 +0200
Subject: pam_cgroup: Revert broken cache usage
This reverts the following upstream commit:
commit ac6173f74922b7dbc46e87370b9bc42cd0fa892d
Author: Peter Schiffer <pschiffe@redhat.com>
Date: Tue Jun 25 06:37:41 2013 +0200
Subject: Use cache when reading /etc/passwd file
The cache that is to be used is not initialized and therefore remains empty,
hence pam_cgroup doesn't really do anything.
Thanks, Reco, for the report!
Bug: http://sourceforge.net/p/libcg/bugs/52/
Bug-Debian: https://bugs.debian.org/788244
Bug-RedHat: https://bugzilla.redhat.com/show_bug.cgi?id=1060227
Forwarded: not-needed
Last-Update: 2015-10-02
---
src/pam/pam_cgroup.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Index: libcgroup/src/pam/pam_cgroup.c
===================================================================
--- libcgroup.orig/src/pam/pam_cgroup.c
+++ libcgroup/src/pam/pam_cgroup.c
@@ -127,7 +127,7 @@ PAM_EXTERN int pam_sm_open_session(pam_h
* Note: We are using default gid here. Is there a way to
* determine under what egid service will be provided?
*/
- ret = cgroup_change_cgroup_uid_gid_flags(pwd->pw_uid, pwd->pw_gid, pid, CGFLAG_USECACHE);
+ ret = cgroup_change_cgroup_uid_gid(pwd->pw_uid, pwd->pw_gid, pid);
if (ret) {
if (ctrl & PAM_DEBUG_ARG) {
pam_syslog(pamh, LOG_ERR, "Change of cgroup for process with username");