[mutter/wayland] mutter-launch: remove PAM usage



commit 3e341e83d9ae4208f4548b81c2aeebe12e3ea7f7
Author: Giovanni Campagna <gcampagn redhat com>
Date:   Mon Sep 9 18:08:40 2013 +0200

    mutter-launch: remove PAM usage
    
    Left-overs from the weston-launch import
    
    https://bugzilla.gnome.org/show_bug.cgi?id=707584

 src/wayland/weston-launch.c |   12 ------------
 1 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/src/wayland/weston-launch.c b/src/wayland/weston-launch.c
index e848d84..917c429 100644
--- a/src/wayland/weston-launch.c
+++ b/src/wayland/weston-launch.c
@@ -50,7 +50,6 @@
 
 #include <pwd.h>
 #include <grp.h>
-#include <security/pam_appl.h>
 
 #include <xf86drm.h>
 
@@ -68,8 +67,6 @@ enum vt_state {
 };
 
 struct weston_launch {
-       struct pam_conv pc;
-       pam_handle_t *ph;
        int tty;
        int ttynr;
        int sock[2];
@@ -79,7 +76,6 @@ struct weston_launch {
 
        pid_t child;
        int verbose;
-       char *new_user;
 
        struct termios terminal_attributes;
        int kb_mode;
@@ -466,14 +462,6 @@ quit(struct weston_launch *wl, int status)
 
        tty_reset(wl);
 
-       if (wl->new_user) {
-               err = pam_close_session(wl->ph, 0);
-               if (err)
-                       fprintf(stderr, "pam_close_session failed: %d: %s\n",
-                               err, pam_strerror(wl->ph, err));
-               pam_end(wl->ph, err);
-       }
-
        exit(status);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]