mutter-launch: remove PAM usage
Left-overs from the weston-launch import https://bugzilla.gnome.org/show_bug.cgi?id=707584
This commit is contained in:
parent
5b3340e585
commit
3e341e83d9
@ -50,7 +50,6 @@
|
|||||||
|
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <grp.h>
|
#include <grp.h>
|
||||||
#include <security/pam_appl.h>
|
|
||||||
|
|
||||||
#include <xf86drm.h>
|
#include <xf86drm.h>
|
||||||
|
|
||||||
@ -68,8 +67,6 @@ enum vt_state {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct weston_launch {
|
struct weston_launch {
|
||||||
struct pam_conv pc;
|
|
||||||
pam_handle_t *ph;
|
|
||||||
int tty;
|
int tty;
|
||||||
int ttynr;
|
int ttynr;
|
||||||
int sock[2];
|
int sock[2];
|
||||||
@ -79,7 +76,6 @@ struct weston_launch {
|
|||||||
|
|
||||||
pid_t child;
|
pid_t child;
|
||||||
int verbose;
|
int verbose;
|
||||||
char *new_user;
|
|
||||||
|
|
||||||
struct termios terminal_attributes;
|
struct termios terminal_attributes;
|
||||||
int kb_mode;
|
int kb_mode;
|
||||||
@ -466,14 +462,6 @@ quit(struct weston_launch *wl, int status)
|
|||||||
|
|
||||||
tty_reset(wl);
|
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);
|
exit(status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user