|
Lennart Poettering |
7e98ac |
From 53d5582fa006b0eb528f5dc3f4ba978abd8ac5a3 Mon Sep 17 00:00:00 2001
|
|
Lennart Poettering |
7e98ac |
From: Lennart Poettering <lennart@poettering.net>
|
|
Lennart Poettering |
7e98ac |
Date: Mon, 16 May 2011 23:31:06 +0200
|
|
Lennart Poettering |
7e98ac |
Subject: [PATCH] pam: downgrade a few log msgs
|
|
Lennart Poettering |
7e98ac |
|
|
Lennart Poettering |
7e98ac |
---
|
|
Lennart Poettering |
7e98ac |
src/pam-module.c | 6 +++---
|
|
Lennart Poettering |
7e98ac |
1 files changed, 3 insertions(+), 3 deletions(-)
|
|
Lennart Poettering |
7e98ac |
|
|
Lennart Poettering |
7e98ac |
diff --git a/src/pam-module.c b/src/pam-module.c
|
|
Lennart Poettering |
7e98ac |
index 93eb929..03864fe 100644
|
|
Lennart Poettering |
7e98ac |
--- a/src/pam-module.c
|
|
Lennart Poettering |
7e98ac |
+++ b/src/pam-module.c
|
|
Lennart Poettering |
7e98ac |
@@ -505,7 +505,7 @@ _public_ PAM_EXTERN int pam_sm_open_session(
|
|
Lennart Poettering |
7e98ac |
goto finish;
|
|
Lennart Poettering |
7e98ac |
}
|
|
Lennart Poettering |
7e98ac |
|
|
Lennart Poettering |
7e98ac |
- pam_syslog(handle, LOG_INFO, "Moving new user session for %s into control group %s.", username, buf);
|
|
Lennart Poettering |
7e98ac |
+ pam_syslog(handle, LOG_DEBUG, "Moving new user session for %s into control group %s.", username, buf);
|
|
Lennart Poettering |
7e98ac |
|
|
Lennart Poettering |
7e98ac |
if ((r = create_user_group(handle, SYSTEMD_CGROUP_CONTROLLER, buf, pw, true, true)) != PAM_SUCCESS)
|
|
Lennart Poettering |
7e98ac |
goto finish;
|
|
Lennart Poettering |
7e98ac |
@@ -676,13 +676,13 @@ _public_ PAM_EXTERN int pam_sm_close_session(
|
|
Lennart Poettering |
7e98ac |
}
|
|
Lennart Poettering |
7e98ac |
|
|
Lennart Poettering |
7e98ac |
if (kill_session && check_user_lists(handle, pw->pw_uid, kill_only_users, kill_exclude_users)) {
|
|
Lennart Poettering |
7e98ac |
- pam_syslog(handle, LOG_INFO, "Killing remaining processes of user session %s of %s.", id, username);
|
|
Lennart Poettering |
7e98ac |
+ pam_syslog(handle, LOG_DEBUG, "Killing remaining processes of user session %s of %s.", id, username);
|
|
Lennart Poettering |
7e98ac |
|
|
Lennart Poettering |
7e98ac |
/* Kill processes in session cgroup, and delete it */
|
|
Lennart Poettering |
7e98ac |
if ((r = cg_kill_recursive_and_wait(SYSTEMD_CGROUP_CONTROLLER, session_path, true)) < 0)
|
|
Lennart Poettering |
7e98ac |
pam_syslog(handle, LOG_ERR, "Failed to kill session cgroup: %s", strerror(-r));
|
|
Lennart Poettering |
7e98ac |
} else {
|
|
Lennart Poettering |
7e98ac |
- pam_syslog(handle, LOG_INFO, "Moving remaining processes of user session %s of %s into control group %s.", id, username, nosession_path);
|
|
Lennart Poettering |
7e98ac |
+ pam_syslog(handle, LOG_DEBUG, "Moving remaining processes of user session %s of %s into control group %s.", id, username, nosession_path);
|
|
Lennart Poettering |
7e98ac |
|
|
Lennart Poettering |
7e98ac |
/* Migrate processes from session to user
|
|
Lennart Poettering |
7e98ac |
* cgroup. First, try to create the user group
|
|
Lennart Poettering |
7e98ac |
--
|
|
Lennart Poettering |
7e98ac |
1.7.5.2
|
|
Lennart Poettering |
7e98ac |
|