solaris /dev/console patch

Artem Kachitchkine Artem.Kachitchkin at Sun.COM
Tue Apr 25 19:56:46 PDT 2006


Solaris does not use pam_console by default. When a user logs on the 
console, the system chowns "/dev/console" device to this user. This 
patch enables "at_console" support on Solaris.

The patch adds configure options:

   --enable-console-owner-file
                           enable console owner file
   --with-console-owner-file=filename
                           file to check for console ownerhip

First option enables the feature - it is off by default. Second option 
allows further customization (default value is /dev/console).

When the feature is enabled, _dbus_is_console_user() would first try 
/dev/console, and if it fails, fall back to /var/run/console - so if 
someone does install pam_console on Solaris, things will just work.

thanks,
-Artem.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: console-owner.patch
Type: text/x-patch
Size: 4371 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/dbus/attachments/20060425/151a13de/console-owner.bin


More information about the dbus mailing list