Lennart Poettering
a077b666cb
sd-login: add C API to query primary session of a user
2014-05-19 09:33:20 +09:00
David Herrmann
9541666b8d
login: add 'mir' to the list of session types
...
Add Mir to the list of session types. This is implemented for LightDM
in lp:~robert-ancell/lightdm/xdg-session-desktop [1].
[1] https://code.launchpad.net/~robert-ancell/lightdm/xdg-session-desktop/+merge/214108
(david: adjusted commit-header and fixed whitespace issues)
2014-04-09 21:22:48 +02:00
Jason St. John
10b17992ee
src/systemd: fix grammar and spelling errors in comments
2014-03-25 20:23:33 +01:00
Marc-Antoine Perennou
e43e3e3eed
libsystemd: Don't use "class" in public headers
...
For compatibility with C++
2014-03-24 20:36:57 +01:00
Lennart Poettering
bf34ab149f
sd-login: add calls that retrieve credentials of peers connected to AF_UNIX peers
...
This is supposed to be an extension of SO_PEERCRED and SO_PEERSEC,
except for cgroup information.
2014-03-17 18:15:57 +01:00
Lennart Poettering
0325941fff
sd-login: add sd_machine_get_class() call
2014-03-12 20:54:29 +01:00
Mantas Mikulėnas
5b04fe6000
libsystemd-login: add sd_session_get_remote_{host, user}
2013-12-21 22:02:57 -05:00
Lennart Poettering
0095c45415
api: replace manual C++ guards by macros
2013-11-07 16:53:26 +01:00
Bastien Nocera
5f34246c75
sd-login: Fix typo
...
s/sessio,/session,/
2013-11-02 15:54:02 -04:00
Giovanni Campagna
44ded3abc2
sd-login: add a public accessor for the VT number
...
The VT number was already part of the DBus API, but was not
exposed in the C API.
2013-09-11 19:08:20 +02:00
Lennart Poettering
1021b21bc6
login: add an api to determine the slice a PID is located in to libsystemd-login
2013-06-21 01:46:27 +02:00
Lennart Poettering
e10375f2c0
login: allow watching virtual machines with sd_get_machine_names()
2013-04-24 19:02:13 -03:00
Lennart Poettering
a20affe2f0
login: add new call sd_get_machine_names() to get a list of current virtual machines and containers
2013-04-24 19:02:13 -03:00
Lennart Poettering
7027ff61a3
nspawn: introduce the new /machine/ tree in the cgroup tree and move containers there
...
Containers will now carry a label (normally derived from the root
directory name, but configurable by the user), and the container's root
cgroup is /machine/<label>. This label is called "machine name", and can
cover both containers and VMs (as soon as libvirt also makes use of
/machine/).
libsystemd-login can be used to query the machine name from a process.
This patch also includes numerous clean-ups for the cgroup code.
2013-04-16 04:41:21 +02:00
Lennart Poettering
97e1305817
sd-login: add a sd_pid_get_user_unit() call
2013-04-15 14:16:45 +02:00
Lennart Poettering
667c24a6a8
login: add sd_login_monitor_get_timeout() public api call
...
We don't need this right now, but we should keep our options open, in
case we need more than just an fd for waking up.
2013-04-04 18:31:22 +02:00
Lennart Poettering
dace83cbd0
login: add new public API call sd_login_monitor_get_events() to get poll() flags to wait for
...
We should keep our options open, so that we can watch for POLLOUT later
on if we wish to. CUrrently this call will always return POLLIN however.
2013-04-04 17:38:08 +02:00
Lennart Poettering
c84f5e4a82
login: introduce sd_session_get_tty()
2013-01-15 03:01:35 +01:00
Lennart Poettering
cb07866b1b
man: move header file man pages from section 7 to 3
...
This way we can include documentation about minor macros/inline function
within the introducionary man page in a sane way.
2012-07-13 01:50:05 +02:00
Lennart Poettering
20747498c6
login: wrap CanTTY and CanGraphical seat attributes in libsystemd-login
2012-06-21 16:52:54 +02:00
Lennart Poettering
0604381b9d
logind: introduce a state for session, being one of online, active, closing
...
online = logged in
active = logged in and session is in the fg
closing = nominally logged out but some left-over processes still around
Related to:
https://bugzilla.gnome.org/show_bug.cgi?id=677556
2012-06-21 16:14:53 +02:00
Lennart Poettering
ee1f44bd9a
sd-login: update header docs a bit
2012-05-14 22:41:30 +02:00
Lennart Poettering
5430f7f2bc
relicense to LGPLv2.1 (with exceptions)
...
We finally got the OK from all contributors with non-trivial commits to
relicense systemd from GPL2+ to LGPL2.1+.
Some udev bits continue to be GPL2+ for now, but we are looking into
relicensing them too, to allow free copy/paste of all code within
systemd.
The bits that used to be MIT continue to be MIT.
The big benefit of the relicensing is that closed source code may now
link against libsystemd-login.so and friends.
2012-04-12 00:24:39 +02:00
Lennart Poettering
e09a9a35a1
sd-login: c++ compatibility
2012-03-05 15:16:10 +01:00
Lennart Poettering
fc8af9ff3f
login: introduce sd_session_get_display()
2012-02-15 04:56:10 +01:00
Lennart Poettering
51f58f083a
login: add new sd_session_get_type() and sd_session_get_class API calls
2012-02-14 21:54:00 +01:00
Lennart Poettering
f987397649
api: add C++ guards to all headers
2012-01-13 00:49:21 +01:00
Lennart Poettering
eff406331a
login: implement sd_session_get_service()
2012-01-05 23:14:22 +01:00
Lennart Poettering
81527be142
build-sys: move public header files into a dir of their own
2012-01-05 16:01:58 +01:00