Previously cgroup_change_cgroup_uid_gid_flags() was called with CGFLAG_USECACHE without the cache ever getting initialized. This led to silent failure as no rules were ever read from the configuration.
Signed-off-by: Justin Bronder <jsbron...@gmail.com> --- src/pam/pam_cgroup.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/pam/pam_cgroup.c b/src/pam/pam_cgroup.c index 1d78b81..6a266d9 100644 --- a/src/pam/pam_cgroup.c +++ b/src/pam/pam_cgroup.c @@ -129,6 +129,13 @@ PAM_EXTERN int pam_sm_open_session(pam_handle_t *pamh, int flags, return PAM_SESSION_ERR; } + ret = cgroup_init_rules_cache(); + if (ret) { + if (ctrl & PAM_DEBUG_ARG) + pam_syslog(pamh, LOG_ERR, "libcgroup rule initialization failed"); + return PAM_SESSION_ERR; + } + D(("Initialized libcgroup successfuly.")); /* Determine the pid of the task */ -- 2.0.5 ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel