Age | Commit message (Collapse) | Author | Files | Lines |
|
- open the proper configuration device (so getty doesn't mess with consoles)
- remove unused header
- g_return_val_if_fail: print full path to device
- simplify stat2proc
- fix ck_get_max_num_consoles
- enable VT on arm64
- implement ck_system_can_suspend and ck_system_can_hibernate
|
|
OpenBSD no longer allows accessing /dev/mem via kvm(3) so change
the kvm_openfiles(3) flag from O_RDONLY to KVM_NO_FILES; actually
it should have been this way since the beginning and matches what
NetBSD does.
|
|
Signed-off-by: Jason Zaman <jason@perfinion.com>
|
|
There's no need to make the mount options more complicated than
they need to be.
|
|
This adds support for implementing the runtime dir spec. ConsoleKit2
will create $RUNDIR/users on the first session creation and then
$RUNDIR/users/$uid for each user logging in that keeps an active
session. CK2 will clean up the $uid folder once all sessions of that
user have been closed. CK2 will also attempt to mount the user's
rundir as a tmpfs mount owned by the user. This way if CK2 crashes
the directory will get cleaned up on next system restart. CK2 will
not create a runtime dir for root.
http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
https://github.com/ConsoleKit2/ConsoleKit2/issues/41
|
|
No need to call sysctl(3) twice since we know exactly how many
structures it wants back: just one.
|
|
Emulate the logind API to make it more easier for porting to
ConsoleKit2 for the CanSuspend/CanHibernate/CanHybridSleep methods.
They now return:
yes - system can and user explicitly authorized by polkit, rbac, or neither is running
no - system can and user explicitly unauthorized by polkit or rbac
challenge - system can and user requires elevation via polkit
na - system does not support it (hardware or backend support missing).
The auth methods have been removed.
Currently HybridSleep only works on Linux.
|
|
We need a Can/Auth split for suspend/hibernate because the user
may be authorized but the system is unable to perform those
actions. Additionally start working the inhibit calls. We also
need to actually add the suspend/hibernate tools.
|
|
CppCheck marks this as a warning that P might be used in sizeof
instead of P->tty_text so we'll use sizeof (P->tty_text) to make
it explicit.
|
|
Pulls in fixes from:
http://anoncvs.estpak.ee/cgi-bin/cgit/openbsd-ports/tree/sysutils/consolekit/patches/patch-src_ck-sysdeps-openbsd_c
|
|
Patches taken from:
https://github.com/avsm/openbsd-ports/tree/master/sysutils/consolekit/patches
|