Age | Commit message (Collapse) | Author | Files | Lines |
|
This way it can easily be hooked into the serivce startup and
report any leaks for an entire lifecycle.
|
|
|
|
Commit 635648deede5a4 has the side effect of causing a warning
message when the uninhibit signals are sent during the finalize
phase as we can't take a reference there. So we'll need to check
to see if the object was destroyed before sending each emit message.
Additionally, in the manager, move the disconnect signal handler up
since we'll be removing that inhibit anyway.
This should fix:
https://github.com/ConsoleKit2/ConsoleKit2/issues/92
https://github.com/ConsoleKit2/ConsoleKit2/issues/87
|
|
This way users don't have to see the warnings about not being
able to read a processes environment file.
Fixes: https://github.com/ConsoleKit2/ConsoleKit2/issues/79
|
|
|
|
|
|
We need to keep a ref while sending all the inhibit change messages.
Fixes: https://github.com/ConsoleKit2/ConsoleKit2/issues/87
|
|
These will be needed by session compositors that don't want to
run as root. It should also allow xorg to run as a user as well.
This is what logind exports and session controllers like KDE
expect.
This adds a udev, evdev, libdevattr, and none backend
for device management. More can be added in the future.
This code is based on code in logind, dragonfly BSD's weston
diffs, and libweston; See:
https://freedesktop.org/wiki/Software/systemd/logind/
https://github.com/DragonFlyBSD/DeltaPorts/tree/master/ports/graphics/weston/newport
https://cgit.freedesktop.org/wayland/weston/
|
|
On OpenBSD, system users start with an underscore.
|
|
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.
|
|
fix some memory leakages
|
|
fix issue #77
Signed-off-by: Tw <tw19881113@gmail.com>
|
|
fix issue #80
Signed-off-by: Tw <tw19881113@gmail.com>
|
|
|
|
|
|
On Freebsd (10.3), quite often X11 sessions do not become active.
If they are active, switching the virtual console and then later
return to X causes the X session to be inactive. I believe this
has something to do with how the FreeBSD sc/vt drivers initialize
the devices (and when). I have a patch to fix the issue attached.
This problem is present all the way back to version 0.45. I noticed
that some time ago, someone tried to fix this issue by using
/dev/consolectl, but this device is never used because isatty() is
false on /dev/consolectl. I have an attached patch that gets
ConsoleKit to use /dev/consolectl and now session activation and
VT switching work.
Patch and bug report by Victor Bergman.
https://github.com/ConsoleKit2/ConsoleKit2/issues/71
Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
|
|
Signed-off-by: Jason Zaman <jason@perfinion.com>
|
|
Signed-off-by: Jason Zaman <jason@perfinion.com>
|
|
Signed-off-by: Jason Zaman <jason@perfinion.com>
|
|
Signed-off-by: Jason Zaman <jason@perfinion.com>
|
|
Signed-off-by: Jason Zaman <jason@perfinion.com>
|
|
|
|
For whatever reason, sometimes moving the pid into all the
cgroups with cgmanager fails, but we only require cpuaccount
for our internal use so try that as a fallback.
|
|
|
|
1) Add what it may fail with and when it was added to the docs.
2) Add a description to the man page.
3) Add it to the ck-list-sessions output
|
|
This will list the sessions assigned to the user and if at least
one of them is local.
|
|
|
|
This will fix the display of ck-list-sessions on a 64-bit
system and CK2 won't try to compare to a bogus ssid.
|
|
There's no need to make the mount options more complicated than
they need to be.
|
|
A DM can set the 'user' property rather than the 'unix-user' as
an override to force a specific uid during session startup. We
just need to convert that back to a 'unix-user' in the session
leader before handing that data back to the manager.
|
|
This way applications can know which seats are available and can
easily walk the list to gather whatever information they need.
The section will be something like
[Seats]
seats=/org/freedesktop/ConsoleKit/Seat1 /org/freedesktop/ConsoleKit/Seat2
|
|
|
|
|
|
|
|
|
|
Ensure old runtime dir is clean before using it in case we crashed
on the last run.
Lockdown the dbus properties of CkSession because we use those
properties internally and they shouldn't change.
|
|
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
|
|
When assigning session to active VT prefer graphical sessions
|
|
I case when we launch graphical session on top of text session on the
same VT we want to mark newly created graphical session as active.
|
|
It is unlikely that ck-log-system-start would crash because of this, but
still it is better to have it fixed.
|
|
Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
|
|
This code is from the upower-0.9 branch with very little change,
so it's not really fair to call me the author...
Consider this a first attempt at addressing CK2 Issue #55
Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
|
|
To fit Linux's one
* return NULL if invalid tty
* return allocated string otherwise
|
|
NetBSD 5 and later have getpeereid(3), but it only for euid.
Use getsockopt(2) with LOCAL_PEEREID if available in priority to it.
|
|
Add NetBSD support
|
|
|
|
* based on patches for ConsoleKit 0.3.0 from NetBSD Packages Collection
* catch up with help from sysdep implementation for OpenBSD and FreeBSD
* ck-system-suspend is based on NetBSD powerd(8) sleep_button script
|
|
|
|
Fix some libdir/scripts stuff missed in 4d87a25ea0af
|
|
|