summaryrefslogtreecommitdiff
path: root/src/ck-sysdeps-openbsd.c
AgeCommit message (Collapse)AuthorFilesLines
2020-11-22OpenBSD: merge enhancements from portsAntoine Jacoutot1-38/+37
- 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
2016-09-28OpenBSD: adapt to recent kvm(3) restrictionsAntoine Jacoutot1-1/+1
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.
2016-06-10Add ck_sysdeps_init/fini functionsJason Zaman1-0/+11
Signed-off-by: Jason Zaman <jason@perfinion.com>
2016-02-29Don't set a default tmpfs sizeEric Koegel1-1/+1
There's no need to make the mount options more complicated than they need to be.
2016-01-23Implement XDG_RUNTIME_DIREric Koegel1-0/+56
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
2015-02-25openbsd: unbreak get_kinfo_proc() by properly initializing lenAntoine Jacoutot1-6/+2
No need to call sysctl(3) twice since we know exactly how many structures it wants back: just one.
2014-10-20Add HybridSleep support and change CanSleepEric Koegel1-0/+7
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.
2014-10-13More Suspend DBUS API workEric Koegel1-0/+12
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.
2014-10-07Size of pointer 'P' used instead of size of its data.Eric Koegel1-3/+3
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.
2014-10-06OpenBSD: Fix buildajacoutot1-38/+79
Pulls in fixes from: http://anoncvs.estpak.ee/cgi-bin/cgit/openbsd-ports/tree/sysutils/consolekit/patches/patch-src_ck-sysdeps-openbsd_c
2014-10-04Add OpenBSD supportRobert Nagy1-0/+430
Patches taken from: https://github.com/avsm/openbsd-ports/tree/master/sysutils/consolekit/patches