Age | Commit message (Collapse) | Author | Files | Lines |
|
When not in compat-mode the max login name length is 64 which
should cover most sane uses. Additionally this patch makes the
command line options show up in --help. Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=36364
|
|
|
|
When DISPLAY is set to a remote display, the remote display server
is down/unreachable and you su from user to root (or some other user),
this can take ~30 seconds+ to complete.
ps reveals ck-get-x11-server-pid is waiting on network connection to
the xserver that will eventually timeout.
Since it is impossible to get the process ID of the other end of a
TCP connection (manpages say Xlib uses TCP connections when
DISPLAY has a hostname: part) this patch skips getting the PID for
remote DISPLAYs.
References:
If the DISPLAY variable has a hostname component, e.g.
"remotehost:0.0", XOpenDisplay will use a TCP connection to it,
and the fd it returns later will be a TCP socket.
(http://tronche.com/gui/x/xlib/display/opening.html)
It is only possible to get the peer socket's PID for UNIX domain
sockets. (E.g. On linux, SO_PEERCRED is only usable for UNIX domain
sockets (i.e. PF_UNIX) )( http://linux.die.net/man/7/socket)
Bug report and patch provided by Joe Mullally.
https://bugs.launchpad.net/ubuntu/+source/consolekit/+bug/517323
|
|
Otherwise GCC nags us with warnings.
|
|
Patches taken from:
https://github.com/avsm/openbsd-ports/tree/master/sysutils/consolekit/patches
|
|
|
|
Include the patches listed in:
http://svnweb.freebsd.org/ports/head/sysutils/consolekit/files/
Credit goes to the FreeBSD team for this work.
|
|
|
|
In the else branch, e is used uninitialized. Move the cast outside
of the if/else block to prevent this.
|
|
Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
|
|
Patch written by Rafal Muzylo.
Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
|
|
|
|
The udev-acl tool has been removed from udev in version 182.
Add this tool to ConsoleKit for systems which don't use systemd-logind.
|
|
GDM screenscrapes the output and so we need the full username.
https://bugzilla.gnome.org/show_bug.cgi?id=650330
|
|
dbus-glib >= 0.82 requires dbus >= 1.1 so we can safely remove
DBUS_API_SUBJECT_TO_CHANGE.
|
|
https://bugs.freedesktop.org/show_bug.cgi?id=28377
|
|
Doesn't load any history files it doesn't need to which should
help performance on systems with long histories.
https://bugs.freedesktop.org/show_bug.cgi?id=25660
|
|
Someone needs to add support for non-Linux platforms.
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=23948
|
|
This is consistent with how we write the wtmp records in GDM.
https://bugs.freedesktop.org/show_bug.cgi?id=23944
|
|
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=23279
|
|
The logic is supposed to find any type of removal event. This can
be one of CK_LOG_EVENT_SEAT_SESSION_REMOVED, CK_LOG_EVENT_SYSTEM_START,
CK_LOG_EVENT_SYSTEM_STOP, or CK_LOG_EVENT_SYSTEM_RESTART.
This is used to determine if the removal was normal or RECORD_STATUS_CRASH,
or RECORD_STATUS_DOWN. And indicated in the report log as something like:
"Thu Sep 3 21:28 - down (20:20)"
|
|
In some cases a controlling tty won't be able available to
peek at to find the VT of the X display. In those cases,
we fall back to looking at the XFree86_VT property.
We can do this because we know the display is a local display
since we've already gotten peer credentials from its socket.
|
|
|
|
|
|
|
|
|
|
|
|
We don't want scripts going into lib64...
|
|
Linux audit session id support. Still TODO:
* determine if session id should be hidden
* export to bus
* add to event log
* figure out how to add it to non-generated sessions
|
|
|
|
|
|
|
|
This tool opens a session with ConsoleKit and runs a command in it.
|
|
|
|
|
|
This should probably be used by init instead of
logging the event from CK.
|
|
|
|
|
|
|
|
Also enable reporting this information with ck-history.
|
|
|
|
This patch makes polkit an optional dependency. If present
it builds with it. If not, polkit support is disabled.
This patch also adds a --enable-rbac-shutdown=<key> option.
If set, then ConsoleKit will allow shutdown/reboot if the
user has the RBAC key authorization defined. For example,
since the GDM GUI program runs as the "gdm" user, setting
the key for the "gdm" user allows the login program to
shutdown and reboot via ConsoleKit.
Also this patch modifies the tools/solaris/ck-system-restart
and tools/solaris/ck-system-stop scripts to call "/sbin/init 6"
and "/sbin/init 5", which are the right commands for Solaris.
|
|
|
|
|
|
Add Stop and Restart methods to the Manager object. We'll rename the
Manager object to System in the near future. Use libpolkit to
determine authorization.
|
|
|
|
|
|
|
|
|
|
|