summaryrefslogtreecommitdiff
path: root/data
AgeCommit message (Collapse)AuthorFilesLines
2017-10-29Add ListSeats method to Manager interfaceA. Wilcox1-0/+3
This adds a logind-compatible ListSeats method to the ConsoleKit.Manager interface. This is needed because the seat name does not always exactly map to the object path (for instance, /Seat1 is 'seat0'). This also allows SDDM to work properly with ConsoleKit2.
2017-07-23feat: Add CanControlSession dbus callEric Koegel1-0/+3
This way a program can query whether CK2 can actually do the Session Controller stuff before attempting to call TakeControl.
2017-05-21feat: add a session-state property and methodEric Koegel1-0/+3
CK2 will change this property dynamically depending on if the session is active or online. At some point we may also provide the "closing" state as well but it's currently unused. This property maps to the logind state.
2017-05-21feat: Add session-class dbus property and get methodEric Koegel1-0/+3
This adds a session-class property to the CK2 Session. It maps to the class property of logind.
2017-05-20feat: Add dbus method GetVTNr to SessionEric Koegel1-0/+3
This method call simple returns the VTNr property but may be useful to applications that don't want to connect to all the dbus properies to query just that one.
2017-05-14feat: add dbus ActivateSession/ActivateSessionOnSeatEric Koegel1-0/+6
To ConsoleKit Manager interface. Programs like GDM are using these calls with logind so this will make adding CK2 support easier.
2017-05-06Add a LockedHint PropertyEric Koegel1-0/+2
This adds a LockedHint property to ConsoleKit.Session and a SetLockedHint dbus method to change it. The SetLockedHint method is resitricted to the user that owns the session. For: https://github.com/ConsoleKit2/ConsoleKit2/issues/89
2017-05-04Add support for server managed FDsEric Koegel1-3/+27
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/
2016-03-20Merge pull request #39 from kwm81/changesEric Koegel1-2/+1
Fix two install issues with 90-consolekit
2016-01-23Implement XDG_RUNTIME_DIREric Koegel1-0/+3
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-08-12Fix two install issues with 90-consolekitKoop Mast1-2/+1
* Don't try to run "chmod +x" on 90-consolekit, it is not a executable. * Use INSTALL_SCRIPT instead of INSTALL_PROGRAM. According to a comment in the header of 90-consolekit this file is sourced by Xsession(5), not executed. Now it also doesn't try to run strip on the 90-consolekit file.
2015-06-21Add new DBUS method: ListInhibitorsEric Koegel1-0/+3
Returns the current list of inhibitors, an array of strings representing the what, who, why, mode, and two unsigned int32 representing the user ID and process ID. This is the same method that logind uses. Needed to have inhibit track the uid/pid of the caller to mirror what logind returns.
2014-11-17trivial: ignore non-empty log dir on uninstallEric Koegel1-1/+1
2014-11-11Fix installing 90-consolekit fileEric Koegel2-10/+23
This ensures the 90-consolekit file will be installed to the right location.
2014-11-11Conditionally add the SystemdServiceEric Koegel2-6/+13
Add the SystemdService service tag to the consolekit service file if we're being built with systemd support.
2014-11-11Fix installing logrotate fileEric Koegel2-6/+30
This ensures the logrotate file will rotate the history file correctly. It also now installs to the right location.
2014-10-26Emulate the logind dbus API betterEric Koegel1-0/+12
This patch: - Adds the PowerOff/Reboot and respective Can APIs. - Adds the PolkicyKit interactivity flag for the power and suspend API calls. Same as logind. - Adds a note of when the API calls were introduced to the docs. The goal is just to make it easier for consumers of the APIs to support both ConsoleKit2 and logind. The Stop/Restart API calls from ConsoleKit1 are still present and function almost exactly the same (only change is they respect inhibitors now). This patch fixes: https://github.com/ConsoleKit2/ConsoleKit2/issues/10
2014-10-20Add HybridSleep support and change CanSleepEric Koegel2-5/+23
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-19Install 90-consolekit script to xinitrc dirEric Koegel1-0/+5
This installs an Xsession.d script for ck-launch-session. By default the script is installed to /etc/X11/xinit/xinitrc.d but can be changed by a --with-xinitrc-dir configure switch.
2014-10-19Fix make distcheck when installing log fileEric Koegel2-4/+6
2014-10-19Add --with-logrotate-dir configure optionEric Koegel1-1/+4
We now install the logrotate file and default to /etc/logrotate.d as the default to install to.
2014-10-19Add additional files to data folderEric Koegel3-0/+42
Add the logrotate and Xsession.d script for ck-launch-session to the data folder so it's easier for distros to include it. These files were pulled from the Debian ConsoleKit package: http://ftp.de.debian.org/debian/pool/main/c/consolekit/consolekit_0.4.6-5.debian.tar.xz
2014-10-14Allow the dbus callsEric Koegel1-0/+21
2014-10-09Start adding the Suspend/Hibernate DBUS APIEric Koegel1-0/+35
The initial work in progress to add in suspend/hibernate and the inhibit locks.
2014-10-06Fix for rejected GetAll properties by GDBusTeodor MICU1-1/+1
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=678506 for additional details.
2011-04-14systemd: don't pull in sysinit.targetLennart Poettering3-3/+0
In case of shutdown when sysinit.target is not up yet (i.e. emergency mode or suchlike) ensure that we don't try to start sysinit.target before shutting down.
2011-02-17build-sys: make sure make install can be run twice in a rowLennart Poettering1-0/+5
https://bugs.freedesktop.org/show_bug.cgi?id=32130
2011-01-20systemd: fix reference to systemd unitsLennart Poettering2-2/+2
2010-11-19systemd: fix name of unitLennart Poettering3-3/+3
2010-11-17systemd: simplify unit files a littleLennart Poettering3-9/+9
2010-11-17systemd: log shutdown when doing kexec rebootLennart Poettering1-1/+4
2010-09-14systemd: make sure the file system is writable before we write log dataLennart Poettering3-3/+6
2010-09-06systemd: keep around console-kit-log-system-start.service after it was run ↵Lennart Poettering1-0/+1
to avoid that it can be triggered twice
2010-09-05systemd: install unit files for CK logging callsLennart Poettering5-2/+66
This follows the basic scheme of the Upstart scripts we already ship
2010-08-12systemd: install systemd unit filesLennart Poettering4-1/+28
2009-12-21Don't daemonize when activatedMatthias Clasen1-1/+1
It confuses some versions of D-Bus and isn't needed (or wanted it). http://bugs.freedesktop.org/show_bug.cgi?id=25642
2009-07-22Fix example upstart system start scriptRay Strode1-1/+1
It was trying to write the log message way too early, before the root filesystem was mounted.
2009-07-20Add CanStop/Restart to D-Bus security policyMartin Pitt1-0/+6
This change is necessarily following commit: e0d9cc359b3099307067107b59ec691418e280b8
2009-07-20Port to PolicyKit 1.0 apisMatthias Clasen2-3/+3
2009-07-20Allow GetSessions to get calledVincent Untz1-0/+3
The manager interface GetSessions function was disallowed by the dbus security policy, despite only exporting information that's available in other ways. This commit opens it up. See http://bugs.freedesktop.org/show_bug.cgi?id=20471
2009-02-11add example upstart events for loggingWilliam Jon McCann4-0/+27
These can be used to add system start/stop/restart logging but hooking into Upstart event mechanism.
2009-01-18fix up D-Bus permissionsColin Walters1-40/+80
2008-08-20allow calling method SetIdleHint by defaultWilliam Jon McCann1-0/+2
2008-05-05export login session id to the busWilliam Jon McCann1-0/+2
2008-04-20allow retaining authorizations for {stop,restart}-multiple-usersDavid Zeuthen1-2/+2
2008-04-16fix typoWilliam Jon McCann1-1/+1
2008-02-29fix packaging of policy fileWilliam Jon McCann1-1/+1
2008-02-26rename policy fileWilliam Jon McCann1-0/+0
2008-02-12reverse the sense of the dbus policyWilliam Jon McCann1-20/+74
Deny first and then allow. Add a simple test script to check method access policy.
2008-02-11fix typo in dbus policy fileWilliam Jon McCann1-1/+1