Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
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
|
|
|
|
For: https://github.com/ConsoleKit2/ConsoleKit2/issues/74
|
|
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/
|
|
|
|
Add a few more display manager users.
|
|
Fix for OpenBSD VT device naming scheme.
|
|
|
|
On OpenBSD, system users start with an underscore.
|
|
|
|
Fix pam-ck-connector on musl
|
|
|
|
OpenBSD: adapt to recent kvm(3) restrictions
|
|
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 memory corruption due to delete session recursively
|
|
fix issue #77
Signed-off-by: Tw <tw19881113@gmail.com>
|
|
fix issue #80
Signed-off-by: Tw <tw19881113@gmail.com>
|
|
Use UID of logged in user as cgroup owner instead UID of session leader process
|
|
|
|
Fix a reversed condition for invalid device on NetBSD
|
|
|
|
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>
|
|
Selinux support
|
|
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>
|
|
ck-remove-directory: remove dest dir as real user
|
|
Attempting to remove "<rundir>/user/<uid>" as user <uid> fails because the user typically does not own the "<rundir>/user" directory. This failure causes remove_dest_dir() to call g_error(), which raises a SIGTRAP. This causes a trap diagnostic message to be emitted to the kernel log, which is undesirable. This commit changes remove_dest_dir() so that it removes the contents of the dest dir as user <uid> and then removes the dest dir itself as the real user invoking ck-remove-directory (probably root).
|
|
The dest parameter is irrelevant to the function become_user, and it's already checked for NULL immediately before become_user() is called, so remove the redundant (and misplaced) check in become_user and remove the extraneous parameter.
|
|
remove_dest_dir() returns the return value of nftw(), which is specified to return 0 on success. The main function was previously returning (ret != TRUE), which would be true in the successful case, as (0 != !0), but true becomes 1 when converted to an int, and a 1 exit code from a process conventionally indicates failure. This commit corrects main's return statement so that a successful run of remove_dest_dir() causes the process to return exit code 0.
|
|
Fixes for Issue #65 ck-1.1.0 cgroups warning
|
|
|
|
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.
|
|
|
|
Fix two install issues with 90-consolekit
|
|
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
|
|
|
|
Mode: default
Matched 5 languages
|
|
This will list the sessions assigned to the user and if at least
one of them is local.
|
|
|