Fallback to getpeereid() on FreeBSD and GNU/kFreeBSD (Bug 73257)

Patch written by Robert Millan.

Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
Enables the FreeBSD VT ioctls on GNU/kFreeBSD (Bug 73258)

Patch written by Robert Millan.

Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
Modifies pam-ck-session to create an active session (Bug 72888)

Powermanagement functions like suspend or hibernate, can be accessed
via dbus by any active user. This means that the user session registered
via consolekit must have the flag active. This can't be done by
ck-launch-session at user level for security reasons. So the session
launch must be done by the display manager or login or by a pam module.
There is no known display manager except gdm launches sessions by itself
but gdm3 has its problems as well while gdm2 is fading out of the distributions.
This is where this modification tooks place. It modifies pam-ck-connector
to start an active session except if the nonactive parameter is given to
the pam module. This may fix the situation, because any xdm can be used
again, until the next security issue of this patch is stated.

Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
Configure switch for PolicyKit. See, http://bugs.freedesktop.org/show_bug.cgi?id=47587.

Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
Use correct type in tools/ck-history.c (Bug 51120)

Patch written by Rafal Muzylo.

Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
Clean up some compiler warnings and deprecated functions

Signed-off-by: Eric Koegel <eric.koegel@gmail.com>