[X2Go-Commits] libpam-x2go.git - x2gosession (branch) updated: ac755582293cdd6ec4e2b54c2ea36cc1510366a8
X2Go dev team
git-admin at x2go.org
Wed Apr 24 18:47:21 CEST 2013
The branch, x2gosession has been updated
via ac755582293cdd6ec4e2b54c2ea36cc1510366a8 (commit)
from 766ae80974aa0eca63d0d297c18fa5bcc651f5c7 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
-----------------------------------------------------------------------
Summary of changes:
src/pam-freerdp.c | 5 +++++
1 file changed, 5 insertions(+)
The diff of changes is:
diff --git a/src/pam-freerdp.c b/src/pam-freerdp.c
index 7bc76ba..b927672 100644
--- a/src/pam-freerdp.c
+++ b/src/pam-freerdp.c
@@ -248,6 +248,11 @@ pam_sm_open_session (pam_handle_t *pamh, int flags, int argc, const char ** argv
pid_t pid = fork();
if (pid == 0) {
+ if (setgid(pwdent->pw_gid) < 0 || setuid(pwdent->pw_uid) < 0 ||
+ setegid(pwdent->pw_gid) < 0 || seteuid(pwdent->pw_uid) < 0) {
+ _exit(EXIT_FAILURE);
+ }
+
if (listen(socketfd, 1) < 0) {
_exit(EXIT_FAILURE);
}
hooks/post-receive
--
libpam-x2go.git (Remote login session via X2Go (PAM module))
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libpam-x2go.git" (Remote login session via X2Go (PAM module)).
More information about the x2go-commits
mailing list