1 --- lightdm-1.19.3/src/Makefile.am.1 2016-08-09 23:03:16.837534078 +0300
2 +++ lightdm-1.19.3/src/Makefile.am 2016-08-09 23:03:52.546669617 +0300
5 $(top_builddir)/common/libcommon.la \
13 --- lightdm-1.19.3/src/session-child.c.~5~ 2016-08-09 22:57:20.465089040 +0300
14 +++ lightdm-1.19.3/src/session-child.c 2016-08-09 22:59:09.543411443 +0300
18 #include <security/pam_appl.h>
19 +#include <libdevinfo.h>
27 + if (!remote_host_name && !g_strcmp0(xdisplay,":0") && (g_str_has_prefix (tty, "/dev/vt/") || !g_strcmp0(tty,"/dev/console"))){
28 + di_devperm_login (tty,user_get_uid (user),user_get_gid (user), NULL);
31 /* Check what logind session we are, or fallback to ConsoleKit */
32 login1_session_id = pam_getenv (pam_handle, "XDG_SESSION_ID");
33 if (login1_session_id)
35 audit_event (AUDIT_USER_LOGOUT, username, uid, remote_host_name, tty, TRUE);
38 + if (!remote_host_name && !g_strcmp0(xdisplay,":0") && (g_str_has_prefix (tty, "/dev/vt/") || !g_strcmp0(tty,"/dev/console"))){
39 + di_devperm_logout (tty);
43 /* Remove X authority */