[pkg-fso-commits] [nodm] 08/50: xsession-child.c: Set PAM_XDISPLAY pam item. (Closes: #713960). Thanks to Sjoerd Simons for providing the patch.

Mike Gabriel sunweaver at debian.org
Mon Jan 23 15:19:30 UTC 2017


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository nodm.

commit 2d2e8c47e8eb0d78c5f15fa906eb5ef95be919ea
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Wed Mar 23 13:22:17 2016 +0100

    xsession-child.c: Set PAM_XDISPLAY pam item. (Closes: #713960). Thanks to Sjoerd Simons for providing the patch.
---
 debian/changelog | 2 ++
 xsession-child.c | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 455feb7..62642d3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -10,6 +10,8 @@ nodm (0.12-1) UNRELEASED; urgency=low
   * Upstream code:
     - Bump upstream version to 0.12. Become new co-maintainer of nodm in Debian.
       (Closes: #813210).
+    - xsession-child.c: Set PAM_XDISPLAY pam item. (Closes: #713960). Thanks to
+      Sjoerd Simons for providing the patch.
   * debian/control:
     + Process with wrap-and-sort.
 
diff --git a/xsession-child.c b/xsession-child.c
index f3b7f98..80a00d6 100644
--- a/xsession-child.c
+++ b/xsession-child.c
@@ -219,6 +219,9 @@ static int setup_pam(struct nodm_xsession_child* s)
     s->pam_status = pam_set_item(s->pamh, PAM_TTY, (const void *) tty);
     if (s->pam_status == PAM_SUCCESS)
         s->pam_status = pam_set_item(s->pamh, PAM_RUSER, (const void *) "root");
+    if (s->pam_status == PAM_SUCCESS)
+        s->pam_status = pam_set_item(s->pamh, PAM_XDISPLAY, (const void *)
+          s->srv->name);
     if (s->pam_status != PAM_SUCCESS) {
         log_err("pam_set_item: %s", pam_strerror(s->pamh, s->pam_status));
         return E_PAM_ERROR;

-- 
Alioth's hooks/post-receive on /srv/git.debian.org/git/pkg-fso/nodm.git



More information about the pkg-fso-commits mailing list