ConsoleKit / Pam

William Jon McCann mccann at jhu.edu
Mon Mar 5 08:27:17 PST 2007


On 3/5/07, David Zeuthen <david at fubar.dk> wrote:
> On Mon, 2007-03-05 at 11:06 -0500, William Jon McCann wrote:
> > Hi,
> >
> > I suspect it is because all of the display-devices are wrong.
>
> Good point. I *think* just prefixing it with /dev is sufficient although
> the correct fix goes like this
>
>  $ udevinfo --query name --path /sys/class/tty/tty1 --root
>  /dev/tty1
>
> So I'd go with the simple prefix hack since a lot of other stuff will
> likely break if you start renaming your tty devices from /dev/tty%d.

Unfortunately, it won't work in general.  It seems like some systems
add other info to PAM_TTY too.  I think we just need to ignore PAM_TTY
and only rely on the CKCON_TTY value.  If CKCON_TTY doesn't exist then
just call OpenSession().

Also, I'm considering splitting our display-device attribute into
display-device and x11-display-device to avoid any similar confusion
in the future.

Thoughts?

Jon


More information about the hal mailing list