Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jan 2017 18:06:18 +0000
From:      bugzilla-noreply@freebsd.org
To:        gnome@FreeBSD.org
Subject:   [Bug 202269] [patch] sysutils/consolekit update to 1.0.0
Message-ID:  <bug-202269-6497-tI0W3LXAmN@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-202269-6497@https.bugs.freebsd.org/bugzilla/>
References:  <bug-202269-6497@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D202269

jesper@schmitz.computer changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jesper@schmitz.computer

--- Comment #5 from jesper@schmitz.computer ---
(In reply to Koop Mast from comment #3)
I think I can shed some light on the issue of inactive X11 sessions launched
with ck-launch-session (e.g not a display manager like x11/slim which uses
libck-connector.so directly (no pam) I have not looked carefully into the
pam_ck_connector.so situation.

In src/ck-sysdeps-unix.c only the HAVE_GETPEEREID is compiled. e.g no pid
returned.
I also found that the "v" is missing in the ttyv device file names:=20

+++ tools/ck-get-x11-display-device.c
@@ -140,6 +140,9 @@ get_tty_for_display (Display *xdisplay)

 #if defined(__NetBSD__)
         display =3D g_strdup_printf ("/dev/ttyE%ld", vt - 1);
+#elif defined(__FreeBSD__)
+        display =3D g_strdup_printf ("/dev/ttyv%ld", vt - 1);
+
 #else
         display =3D g_strdup_printf ("/dev/tty%ld", vt);
 #endif


after cc -E the function becomes:
ck_get_socket_peer_credentials (int socket_fd,
                                  pid_t *pid,
                                  uid_t *uid,
                                  GError **error)
{
        gboolean ret;
        uid_t uid_read;
        pid_t pid_read;

        pid_read =3D -1;
        uid_read =3D -1;
        ret =3D (0);
        gid_t dummy;

        if (getpeereid (socket_fd, &uid_read, &dummy) =3D=3D 0) {
                ret =3D (!(0));
        } else {
                g_log (((gchar*) 0), G_LOG_LEVEL_WARNING, "Failed to
getpeereid() credentials: %s\n", g_strerror ((* __error())));

        }




        if (pid !=3D ((void *)0)) {
                *pid =3D pid_read;
        }

        if (uid !=3D ((void *)0)) {
                *uid =3D uid_read;
        }

        return ret;
}

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-202269-6497-tI0W3LXAmN>