Commit 81cf0393 authored by Christian Kastner's avatar Christian Kastner

d/patches: Add patch 0006-pam_cgroup-Revert-broken-cache-usage.patch

parent f7460593
From: Christian Kastner <>
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 <>
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!
Forwarded: not-needed
Last-Update: 2015-10-02
src/pam/pam_cgroup.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/pam/pam_cgroup.c b/src/pam/pam_cgroup.c
index 1d78b81..c4ce633 100644
--- a/src/pam/pam_cgroup.c
+++ b/src/pam/pam_cgroup.c
@@ -137,8 +137,7 @@ PAM_EXTERN int pam_sm_open_session(pam_handle_t *pamh, int flags,
/* 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"
......@@ -3,3 +3,4 @@
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment