~ubuntu-branches/debian/jessie/systemd/jessie

« back to all changes in this revision

Viewing changes to man/sd-login.xml

  • Committer: Package Import Robot
  • Author(s): Tollef Fog Heen, Tollef Fog Heen, Michael Biebl
  • Date: 2012-04-03 19:59:17 UTC
  • mfrom: (1.1.10) (6.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20120403195917-l532urrbg4pkreas
Tags: 44-1
[ Tollef Fog Heen ]
* New upstream version.
  - Backport 3492207: journal: PAGE_SIZE is not known on ppc and other
    archs
  - Backport 5a2a2a1: journal: react with immediate rotation to a couple
    of more errors
  - Backport 693ce21: util: never follow symlinks in rm_rf_children()
    Fixes CVE-2012-1174, closes: #664364
* Drop output message from init-functions hook, it's pointless.
* Only rmdir /lib/init/rw if it exists.
* Explicitly order debian-fixup before sysinit.target to prevent a
  possible race condition with the creation of sockets.  Thanks to
  Michael Biebl for debugging this.
* Always restart the initctl socket on upgrades, to mask sysvinit
  removing it.

[ Michael Biebl ]
* Remove workaround for non-interactive sessions from pam config again.
* Create compat /dev/initctl symlink in case we are upgrading from a system
  running a newer version of sysvinit (using /run/initctl) and sysvinit is
  replaced with systemd-sysv during the upgrade. Closes: #663219
* Install new man pages.
* Build-Depend on valac (>= 0.12) instead of valac-0.12. Closes: #663323

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version='1.0'?> <!--*-nxml-*-->
 
2
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
 
3
        "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
 
4
 
 
5
<!--
 
6
  This file is part of systemd.
 
7
 
 
8
  Copyright 2010 Lennart Poettering
 
9
 
 
10
  systemd is free software; you can redistribute it and/or modify it
 
11
  under the terms of the GNU General Public License as published by
 
12
  the Free Software Foundation; either version 2 of the License, or
 
13
  (at your option) any later version.
 
14
 
 
15
  systemd is distributed in the hope that it will be useful, but
 
16
  WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 
18
  General Public License for more details.
 
19
 
 
20
  You should have received a copy of the GNU General Public License
 
21
  along with systemd; If not, see <http://www.gnu.org/licenses/>.
 
22
-->
 
23
 
 
24
<refentry id="sd-login">
 
25
 
 
26
        <refentryinfo>
 
27
                <title>sd-login</title>
 
28
                <productname>systemd</productname>
 
29
 
 
30
                <authorgroup>
 
31
                        <author>
 
32
                                <contrib>Developer</contrib>
 
33
                                <firstname>Lennart</firstname>
 
34
                                <surname>Poettering</surname>
 
35
                                <email>lennart@poettering.net</email>
 
36
                        </author>
 
37
                </authorgroup>
 
38
        </refentryinfo>
 
39
 
 
40
        <refmeta>
 
41
                <refentrytitle>sd-login</refentrytitle>
 
42
                <manvolnum>7</manvolnum>
 
43
        </refmeta>
 
44
 
 
45
        <refnamediv>
 
46
                <refname>sd-login</refname>
 
47
                <refpurpose>APIs for
 
48
                tracking logins</refpurpose>
 
49
        </refnamediv>
 
50
 
 
51
        <refsynopsisdiv>
 
52
                <funcsynopsis>
 
53
                        <funcsynopsisinfo>#include &lt;systemd/sd-login.h&gt;</funcsynopsisinfo>
 
54
                </funcsynopsis>
 
55
 
 
56
                <cmdsynopsis>
 
57
                        <command>pkg-config --cflags --libs libsystemd-login</command>
 
58
                </cmdsynopsis>
 
59
        </refsynopsisdiv>
 
60
 
 
61
        <refsect1>
 
62
                <title>Description</title>
 
63
 
 
64
                <para><filename>sd-login.h</filename> provides APIs to
 
65
                introspect and monitor seat, login session and user
 
66
                status information on the local system. </para>
 
67
 
 
68
                <para>See <ulink
 
69
                url="http://www.freedesktop.org/wiki/Software/systemd/multiseat">Multi-Seat
 
70
                on Linux</ulink> for an introduction into multi-seat
 
71
                support on Linux, the background for this set of APIs.</para>
 
72
 
 
73
                <para>Note that these APIs only allow purely passive access
 
74
                and monitoring of seats, sessions and users. To
 
75
                actively make changes to the seat configuration,
 
76
                terminate login sessions, or switch session on a seat
 
77
                you need to utilize the D-Bus API of
 
78
                systemd-logind, instead.</para>
 
79
 
 
80
                <para>These functions synchronously access data in
 
81
                <filename>/proc</filename>,
 
82
                <filename>/sys/fs/cgroup</filename> and
 
83
                <filename>/run</filename>. All of these are virtual
 
84
                file systems, hence the runtime cost of the accesses
 
85
                is relatively cheap.</para>
 
86
 
 
87
                <para>It is possible (and often a very good choice) to
 
88
                mix calls to the synchronous interface of
 
89
                <filename>sd-login.h</filename> with the asynchronous
 
90
                D-Bus interface of systemd-logind. However, if this is
 
91
                done you need to think a bit about possible races
 
92
                since the stream of events from D-Bus and from
 
93
                <filename>sd-login.h</filename> interfaces such as the
 
94
                login monitor are asynchronous and not ordered against
 
95
                each other.</para>
 
96
 
 
97
                <para>If the functions return string arrays, these are
 
98
                generally NULL terminated and need to be freed by the
 
99
                caller with the libc
 
100
                <citerefentry><refentrytitle>free</refentrytitle><manvolnum>3</manvolnum></citerefentry>
 
101
                call after use, including the strings referenced
 
102
                therein. Similar, individual strings returned need to
 
103
                be freed, as well.</para>
 
104
 
 
105
                <para>As a special exception, instead of an empty
 
106
                string array NULL may be returned, which should be
 
107
                treated equivalent to an empty string array.</para>
 
108
 
 
109
                <para>See
 
110
                <citerefentry><refentrytitle>sd_pid_get_session</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
 
111
                <citerefentry><refentrytitle>sd_uid_get_state</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
 
112
                <citerefentry><refentrytitle>sd_session_is_active</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
 
113
                <citerefentry><refentrytitle>sd_seat_get_active</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
 
114
                <citerefentry><refentrytitle>sd_get_seats</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
 
115
                <citerefentry><refentrytitle>sd_login_monitor_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>
 
116
                for more information about the functions
 
117
                implemented.</para>
 
118
        </refsect1>
 
119
 
 
120
        <refsect1>
 
121
                <title>Notes</title>
 
122
 
 
123
                <para>These APIs are implemented as shared library,
 
124
                which can be compiled and linked to with the
 
125
                <literal>libsystemd-login</literal>
 
126
                <citerefentry><refentrytitle>pkg-config</refentrytitle><manvolnum>1</manvolnum></citerefentry>
 
127
                file.</para>
 
128
        </refsect1>
 
129
 
 
130
        <refsect1>
 
131
                <title>See Also</title>
 
132
                <para>
 
133
                        <citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
 
134
                        <citerefentry><refentrytitle>sd_pid_get_session</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
 
135
                        <citerefentry><refentrytitle>sd_uid_get_state</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
 
136
                        <citerefentry><refentrytitle>sd_session_is_active</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
 
137
                        <citerefentry><refentrytitle>sd_seat_get_active</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
 
138
                        <citerefentry><refentrytitle>sd_get_seats</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
 
139
                        <citerefentry><refentrytitle>sd_login_monitor_new</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
 
140
                        <citerefentry><refentrytitle>sd-daemon</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
 
141
                        <citerefentry><refentrytitle>sd-readahead</refentrytitle><manvolnum>7</manvolnum></citerefentry>,
 
142
                        <citerefentry><refentrytitle>pkg-config</refentrytitle><manvolnum>1</manvolnum></citerefentry>
 
143
                </para>
 
144
        </refsect1>
 
145
 
 
146
</refentry>