Skip to content

Commit

Permalink
xsession-child.c: Set PAM_XDISPLAY pam item. (Closes: #713960). Thank…
Browse files Browse the repository at this point in the history
…s to Sjoerd Simons for providing the patch.
  • Loading branch information
sunweaver committed Mar 23, 2016
1 parent 9b8ec1e commit 2d2e8c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions debian/changelog
Expand Up @@ -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.

Expand Down
3 changes: 3 additions & 0 deletions xsession-child.c
Expand Up @@ -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;
Expand Down

0 comments on commit 2d2e8c4

Please sign in to comment.