diff options
| author | Ivailo Monev <xakepa10@gmail.com> | 2015-07-05 02:58:06 +0000 |
|---|---|---|
| committer | Ivailo Monev <xakepa10@gmail.com> | 2015-07-05 02:58:06 +0000 |
| commit | 1cc725b462afa2f91baff9700494b4bdb635efd6 (patch) | |
| tree | b5eb7f44a039838a100fc3b738bea0710efd249e /tools | |
| parent | f4577073b758d49d2eb51997f8a15be4b2bb244c (diff) | |
| download | ConsoleKit2-1cc725b462afa2f91baff9700494b4bdb635efd6.tar.gz | |
mark sessions as local explicitly when not build with PAM support
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/ck-collect-session-info.c | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tools/ck-collect-session-info.c b/tools/ck-collect-session-info.c index a77ef7b..77d930d 100644 --- a/tools/ck-collect-session-info.c +++ b/tools/ck-collect-session-info.c @@ -329,7 +329,11 @@ fill_x11_info (SessionInfo *si) gotit: ck_process_stat_free (xorg_stat); - /* don't set is-local here - let the daemon do that */ + /* when PAM is supported don't set is-local here - let the daemon do that */ +#ifndef HAVE_PAM + si->is_local = TRUE; + si->is_local_is_set = TRUE; +#endif g_free (si->remote_host_name); si->remote_host_name = NULL; @@ -358,6 +362,15 @@ fill_session_info (SessionInfo *si) fill_x11_info (si); +#ifndef HAVE_PAM + if (! si->is_local_is_set) { + /* FIXME: how should we set this? */ + /* non x11 sessions must be local I guess */ + si->is_local = TRUE; + si->is_local_is_set = TRUE; + } +#endif + res = ck_unix_pid_get_login_session_id (si->pid, &si->login_session_id); if (! res) { si->login_session_id = NULL; |
