chiark / gitweb /
Prep v232: Apply missing updates from upstream
authorSven Eden <yamakuzure@gmx.net>
Tue, 4 Jul 2017 14:59:46 +0000 (16:59 +0200)
committerSven Eden <yamakuzure@gmx.net>
Wed, 5 Jul 2017 06:51:07 +0000 (08:51 +0200)
18 files changed:
Makefile-man.am
man/elogind-mount.xml [deleted file]
src/basic/cgroup-util.c
src/basic/cgroup-util.h
src/basic/parse-util.c
src/core/cgroup.h
src/libelogind/sd-bus/bus-common-errors.c
src/libelogind/sd-bus/bus-track.c
src/libelogind/sd-event/sd-event.c
src/login/elogind.c
src/login/logind-session-dbus.c
src/login/logind-utmp.c
src/login/logind.c
src/mount/mount-tool.c
src/shared/acl-util.c
src/systemd/sd-bus.h
src/systemd/sd-id128.h
src/systemd/sd-messages.h

index 895b64bf0464a31ebdddaa2b3d9d9b48b5d4082d..cd82c48193bbab9d36bb331a33f192d212a5533d 100644 (file)
@@ -54,6 +54,7 @@ MANPAGES_ALIAS += \
        man/sd_event_source_unrefp.3 \
        man/sd_id128_from_string.3 \
        man/sd_id128_get_boot.3 \
+       man/sd_id128_get_invocation.3 \
        man/sd_machine_get_ifindices.3 \
        man/sd_notifyf.3 \
        man/sd_pid_notify.3 \
@@ -82,6 +83,7 @@ man/sd_event_source_set_io_fd.3: man/sd_event_add_io.3
 man/sd_event_source_unrefp.3: man/sd_event_source_unref.3
 man/sd_id128_from_string.3: man/sd_id128_to_string.3
 man/sd_id128_get_boot.3: man/sd_id128_get_machine.3
+man/sd_id128_get_invocation.3: man/sd_id128_get_machine.3
 man/sd_machine_get_ifindices.3: man/sd_machine_get_class.3
 man/sd_notifyf.3: man/sd_notify.3
 man/sd_pid_notify.3: man/sd_notify.3
@@ -156,6 +158,9 @@ man/sd_id128_from_string.html: man/sd_id128_to_string.html
 man/sd_id128_get_boot.html: man/sd_id128_get_machine.html
        $(html-alias)
 
+man/sd_id128_get_invocation.html: man/sd_id128_get_machine.html
+       $(html-alias)
+
 man/sd_machine_get_ifindices.html: man/sd_machine_get_class.html
        $(html-alias)
 
diff --git a/man/elogind-mount.xml b/man/elogind-mount.xml
deleted file mode 100644 (file)
index a691e38..0000000
+++ /dev/null
@@ -1,295 +0,0 @@
-<?xml version='1.0'?> <!--*- Mode: nxml; nxml-child-indent: 2; indent-tabs-mode: nil -*-->
-<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
-"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
-
-<!--
-  This file is part of elogind.
-
-  Copyright 2016 Lennart Poettering
-
-  elogind is free software; you can redistribute it and/or modify it
-  under the terms of the GNU Lesser General Public License as published by
-  the Free Software Foundation; either version 2.1 of the License, or
-  (at your option) any later version.
-
-  elogind is distributed in the hope that it will be useful, but
-  WITHOUT ANY WARRANTY; without even the implied warranty of
-  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-  Lesser General Public License for more details.
-
-  You should have received a copy of the GNU Lesser General Public License
-  along with elogind; If not, see <http://www.gnu.org/licenses/>.
--->
-
-<refentry id="elogind-mount"
-          xmlns:xi="http://www.w3.org/2001/XInclude">
-
-  <refentryinfo>
-    <title>elogind-mount</title>
-    <productname>elogind</productname>
-
-    <authorgroup>
-      <author>
-        <contrib>Developer</contrib>
-        <firstname>Lennart</firstname>
-        <surname>Poettering</surname>
-        <email>lennart@poettering.net</email>
-      </author>
-    </authorgroup>
-  </refentryinfo>
-
-  <refmeta>
-    <refentrytitle>elogind-mount</refentrytitle>
-    <manvolnum>1</manvolnum>
-  </refmeta>
-
-  <refnamediv>
-    <refname>elogind-mount</refname>
-    <refpurpose>Establish a mount or auto-mount point transiently</refpurpose>
-  </refnamediv>
-
-  <refsynopsisdiv>
-    <cmdsynopsis>
-      <command>elogind-mount</command>
-      <arg choice="opt" rep="repeat"><replaceable>OPTIONS</replaceable></arg>
-      <arg choice="plain"><replaceable>WHAT</replaceable></arg>
-      <arg choice="opt"><replaceable>WHERE</replaceable></arg>
-    </cmdsynopsis>
-    <cmdsynopsis>
-      <command>elogind-mount</command>
-      <arg choice="opt" rep="repeat"><replaceable>OPTIONS</replaceable></arg>
-      <arg choice="plain"><option>--list</option></arg>
-    </cmdsynopsis>
-  </refsynopsisdiv>
-
-  <refsect1>
-    <title>Description</title>
-
-    <para><command>elogind-mount</command> may be used to create and start a transient <filename>.mount</filename> or
-    <filename>.automount</filename> unit of the file system <replaceable>WHAT</replaceable> on the mount point
-    <replaceable>WHERE</replaceable>.</para>
-
-    <para>In many ways, <command>elogind-mount</command> is similar to the lower-level
-    <citerefentry><refentrytitle>mount</refentrytitle><manvolnum>8</manvolnum></citerefentry> command, however instead
-    of executing the mount operation directly and immediately, <command>elogind-mount</command> schedules it through
-    the service manager job queue, so that it may pull in further dependencies (such as parent mounts, or a file system
-    checker to execute a priori), and may make use of the auto-mounting logic.</para>
-
-    <para>The command takes either one or two arguments. If only one argument is specified it should refer to a block
-    device containing a file system (e.g. <literal>/dev/sdb1</literal>), which is then probed for a label and other
-    metadata, and is mounted to a directory whose name is generated from the label. In this mode the block device must
-    exist at the time of invocation of the command, so that it may be probed. If the device is found to be a removable
-    block device (e.g. a USB stick) an automount point instead of a regular mount point is created (i.e. the
-    <option>--automount=</option> option is implied, see below).</para>
-
-    <para>If two arguments are specified the first indicates the mount source (the <replaceable>WHAT</replaceable>) and
-    the second indicates the path to mount it on (the <replaceable>WHERE</replaceable>). In this mode no probing of the
-    source is attempted, and a backing device node doesn't have to exist yet. However, if this mode is combined with
-    <option>--discover</option>, device node probing for additional metadata is enabled, and – much like in the
-    single-argument case discussed above – the specified device has to exist at the time of invocation of the
-    command.</para>
-
-    <para>Use the <option>--list</option> command to show a terse table of all local, known block devices with file
-    systems that may be mounted with this command.</para>
-  </refsect1>
-
-  <refsect1>
-    <title>Options</title>
-
-    <para>The following options are understood:</para>
-
-    <variablelist>
-
-      <varlistentry>
-        <term><option>--no-block</option></term>
-
-        <listitem>
-          <para>Do not synchronously wait for the requested operation to finish. If this is not specified, the job will
-          be verified, enqueued and <command>elogind-mount</command> will wait until the mount or automount unit's
-          start-up is completed. By passing this argument, it is only verified and enqueued.</para>
-        </listitem>
-      </varlistentry>
-
-      <xi:include href="standard-options.xml" xpointer="no-pager"/>
-      <xi:include href="standard-options.xml" xpointer="no-ask-password"/>
-
-      <varlistentry>
-        <term><option>--quiet</option></term>
-        <term><option>-q</option></term>
-
-        <listitem><para>Suppresses additional informational output while running.</para></listitem>
-      </varlistentry>
-
-      <varlistentry>
-        <term><option>--discover</option></term>
-
-        <listitem><para>Enable probing of the mount source. This switch is implied if a single argument is specified on
-        the command line. If passed, additional metadata is read from the device to enhance the unit to create. For
-        example, a descriptive string for the transient units is generated from the file system label and device
-        model. Moreover if a removable block device (e.g. USB stick) is detected an automount unit instead of a regular
-        mount unit is created, with a short idle time-out, in order to ensure the file-system is placed in a clean
-        state quickly after each access.</para></listitem>
-      </varlistentry>
-
-      <varlistentry>
-        <term><option>--type=</option></term>
-        <term><option>-t</option></term>
-
-        <listitem><para>Specifies the file system type to mount (e.g. <literal>vfat</literal>, <literal>ext4</literal>,
-        …). If omitted (or set to <literal>auto</literal>) the file system is determined automatically.</para></listitem>
-      </varlistentry>
-
-      <varlistentry>
-        <term><option>--options=</option></term>
-        <term><option>-o</option></term>
-
-        <listitem><para>Additional mount options for the mount point.</para></listitem>
-      </varlistentry>
-
-      <varlistentry>
-        <term><option>--fsck=</option></term>
-
-        <listitem><para>Takes a boolean argument, defaults to on. Controls whether to run a file system check
-        immediately before the mount operation. In the automount case (see <option>--automount=</option> below) the
-        check will be run the moment the first access to the device is made, which might slightly delay the
-        access.</para></listitem>
-      </varlistentry>
-
-      <varlistentry>
-        <term><option>--description=</option></term>
-
-        <listitem><para>Provide a description for the mount or automount unit. See <varname>Description=</varname> in
-        <citerefentry><refentrytitle>elogind.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>.
-        </para></listitem>
-      </varlistentry>
-
-      <varlistentry>
-        <term><option>--property=</option></term>
-        <term><option>-p</option></term>
-
-        <listitem><para>Sets a unit property for the mount unit that is created. This takes an assignment in the same
-        format as <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>'s
-        <command>set-property</command> command.</para>
-        </listitem>
-      </varlistentry>
-
-      <varlistentry>
-        <term><option>--automount=</option></term>
-
-        <listitem><para>Takes a boolean argument. Controls whether to create an automount point or a regular mount
-        point. If true an automount point is created that is backed by the actual file system at the time of first
-        access. If false a plain mount point is created that is backed by the actual file system immediately. Automount
-        points have the benefit that the file system stays unmounted and hence in clean state until it is first
-        accessed. In automount mode the <option>--timeout-idle-sec=</option> switch (see below) may be used to ensure
-        the mount point is unmounted automatically after the last access and an idle period passed.</para>
-
-        <para>If this switch is not specified it defaults to false. If not specified and <option>--discover</option> is
-        used (or only a single argument passed, which implies <option>--discover</option>, see above), and the file
-        system block device is detected to be removable, it is set to true, in order to increase the chance that the
-        file system is in a fully clean state if the device is unplugged abruptly.</para></listitem>
-      </varlistentry>
-
-      <varlistentry>
-        <term><option>-A</option></term>
-
-        <listitem><para>Equivalent to <option>--automount=yes</option>.</para></listitem>
-      </varlistentry>
-
-      <varlistentry>
-        <term><option>--timeout-idle-sec=</option></term>
-
-        <listitem><para>Takes a time value that controls the idle timeout in automount mode. If set to
-        <literal>infinity</literal> (the default) no automatic unmounts are done. Otherwise the file system backing the
-        automount point is detached after the last access and the idle timeout passed. See
-        <citerefentry><refentrytitle>elogind.time</refentrytitle><manvolnum>7</manvolnum></citerefentry> for details on
-        the time syntax supported. This option has no effect if only a regular mount is established, and automounting
-        is not used.</para>
-
-        <para>Note that if <option>--discover</option> is used (or only a single argument passed, which implies
-        <option>--discover</option>, see above), and the file system block device is detected to be removable,
-        <option>--timeout-idle-sec=1s</option> is implied.</para></listitem>
-      </varlistentry>
-
-      <varlistentry>
-        <term><option>--automount-property=</option></term>
-
-        <listitem><para>Similar to <option>--property=</option>, but applies additional properties to the automount
-        unit created, instead of the mount unit.</para></listitem>
-      </varlistentry>
-
-      <varlistentry>
-        <term><option>--bind-device=</option></term>
-
-        <listitem><para>Takes a boolean argument, defaults to off. This option only has an effect in automount mode,
-        and controls whether the automount unit shall be bound to the backing device's lifetime. If enabled, the
-        automount point will be removed automatically when the backing device vanishes. If disabled the automount point
-        stays around, and subsequent accesses will block until backing device is replugged. This option has no effect
-        in case of non-device mounts, such as network or virtual file system mounts.</para>
-
-        <para>Note that if <option>--discover</option> is used (or only a single argument passed, which implies
-        <option>--discover</option>, see above), and the file system block device is detected to be removable, this
-        option is implied.</para></listitem>
-      </varlistentry>
-
-      <varlistentry>
-        <term><option>--list</option></term>
-
-        <listitem><para>Instead of establishing a mount or automount point, print a terse list of block devices
-        containing file systems that may be mounted with <literal>elogind-mount</literal>, along with useful metadata
-        such as labels, etc.</para></listitem>
-      </varlistentry>
-
-      <xi:include href="user-system-options.xml" xpointer="user" />
-      <xi:include href="user-system-options.xml" xpointer="system" />
-      <xi:include href="user-system-options.xml" xpointer="host" />
-      <xi:include href="user-system-options.xml" xpointer="machine" />
-
-      <xi:include href="standard-options.xml" xpointer="help" />
-      <xi:include href="standard-options.xml" xpointer="version" />
-    </variablelist>
-
-  </refsect1>
-
-  <refsect1>
-    <title>Exit status</title>
-
-    <para>On success, 0 is returned, a non-zero failure
-    code otherwise.</para>
-  </refsect1>
-
-  <refsect1>
-    <title>The udev Database</title>
-
-    <para>If <option>--discover</option> is used, <command>elogind-mount</command> honours a couple of additional udev
-    properties of block devices:</para>
-
-    <variablelist class='udev-directives'>
-      <varlistentry>
-        <term><varname>SYSTEMD_MOUNT_OPTIONS=</varname></term>
-
-        <listitem><para>The mount options to use, if <option>--options=</option> is not used.</para></listitem>
-      </varlistentry>
-
-      <varlistentry>
-        <term><varname>SYSTEMD_MOUNT_WHERE=</varname></term>
-
-        <listitem><para>The file system path to place the mount point at, instead of the automatically generated
-        one.</para></listitem>
-      </varlistentry>
-    </variablelist>
-  </refsect1>
-
-  <refsect1>
-    <title>See Also</title>
-    <para>
-      <citerefentry><refentrytitle>elogind</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
-      <citerefentry><refentrytitle>mount</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
-      <citerefentry><refentrytitle>systemctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
-      <citerefentry><refentrytitle>elogind.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
-      <citerefentry><refentrytitle>elogind.mount</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
-      <citerefentry><refentrytitle>elogind.automount</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
-      <citerefentry><refentrytitle>elogind-run</refentrytitle><manvolnum>1</manvolnum></citerefentry>
-    </para>
-  </refsect1>
-
-</refentry>
index 424c2b69bb1bc4f730f16a06b509309c9812a500..16e299a7e2a8691806754de4be6d33c47aa9e692 100644 (file)
@@ -2331,6 +2331,8 @@ static int cg_update_unified(void) {
 
 #if 0 /// UNNEEDED by elogind
         if (F_TYPE_EQUAL(fs.f_type, CGROUP2_SUPER_MAGIC))
+                unified_cache = CGROUP_UNIFIED_ALL;
+        else if (F_TYPE_EQUAL(fs.f_type, TMPFS_MAGIC)) {
 #else
         /* elogind can not support the unified hierarchy as a controller,
          * so always assume a classical hierarchy.
@@ -2339,8 +2341,6 @@ static int cg_update_unified(void) {
          * add such a support. */
         if (F_TYPE_EQUAL(fs.f_type, TMPFS_MAGIC)) {
 #endif // 0
-                unified_cache = CGROUP_UNIFIED_ALL;
-        else if (F_TYPE_EQUAL(fs.f_type, TMPFS_MAGIC)) {
                 if (statfs("/sys/fs/cgroup/systemd/", &fs) < 0)
                         return -errno;
 
index 5a6d41635ddd79a8086b2503df65925ac3eac2b3..327a525bfa4393225fc83bb737f8b92053713d4b 100644 (file)
@@ -63,10 +63,12 @@ typedef enum CGroupMask {
 #define CGROUP_WEIGHT_MIN UINT64_C(1)
 #define CGROUP_WEIGHT_MAX UINT64_C(10000)
 #define CGROUP_WEIGHT_DEFAULT UINT64_C(100)
+#endif // 0
 
 #define CGROUP_LIMIT_MIN UINT64_C(0)
 #define CGROUP_LIMIT_MAX ((uint64_t) -1)
 
+#if 0 /// UNNEEDED by elogind
 static inline bool CGROUP_WEIGHT_IS_OK(uint64_t x) {
         return
             x == CGROUP_WEIGHT_INVALID ||
index 757e5b4127041f0de12136b0600702878eb32b35..bfdf483229045c18eef1835825798cfd24a8e25a 100644 (file)
@@ -558,10 +558,25 @@ int parse_percent_unbounded(const char *p) {
 }
 
 int parse_percent(const char *p) {
-        int v = parse_percent_unbounded(p);
+        int v;
 
+        v = parse_percent_unbounded(p);
         if (v > 100)
                 return -ERANGE;
 
         return v;
 }
+
+int parse_nice(const char *p, int *ret) {
+        int n, r;
+
+        r = safe_atoi(p, &n);
+        if (r < 0)
+                return r;
+
+        if (!nice_is_valid(n))
+                return -ERANGE;
+
+        *ret = n;
+        return 0;
+}
index 3bcf6868137b3bb07d2143753fe4a7ab439454e9..dd8e436b969f45b91561893f702daa3ccd039f88 100644 (file)
@@ -102,6 +102,7 @@ struct CGroupContext {
         uint64_t memory_low;
         uint64_t memory_high;
         uint64_t memory_max;
+        uint64_t memory_swap_max;
 
         /* For legacy hierarchies */
         uint64_t cpu_shares;
index 7a3449059d839aa219b126ce015fa2bbb9d892e3..ed3f5fa38e426b3e32982e240c2ed0118ccd4827 100644 (file)
@@ -28,6 +28,7 @@ BUS_ERROR_MAP_ELF_REGISTER const sd_bus_error_map bus_common_errors[] = {
 #if 0 /// UNNEEDED by elogind
         SD_BUS_ERROR_MAP(BUS_ERROR_NO_SUCH_UNIT,                 ENOENT),
         SD_BUS_ERROR_MAP(BUS_ERROR_NO_UNIT_FOR_PID,              ESRCH),
+        SD_BUS_ERROR_MAP(BUS_ERROR_NO_UNIT_FOR_INVOCATION_ID,    ENOENT),
         SD_BUS_ERROR_MAP(BUS_ERROR_UNIT_EXISTS,                  EEXIST),
         SD_BUS_ERROR_MAP(BUS_ERROR_LOAD_FAILED,                  EIO),
         SD_BUS_ERROR_MAP(BUS_ERROR_JOB_FAILED,                   EREMOTEIO),
index 35dd563b166015871a5f8c976147b1d3ae2c6cad..3f3a494fc3239c9759c3eebdb2d10b9fe01dd9f6 100644 (file)
@@ -427,7 +427,6 @@ void bus_track_dispatch(sd_bus_track *track) {
         sd_bus_track_unref(track);
 }
 
-#if 0 /// UNNEEDED by elogind
 void bus_track_close(sd_bus_track *track) {
         struct track_item *i;
 
@@ -456,6 +455,7 @@ void bus_track_close(sd_bus_track *track) {
                 bus_track_dispatch(track);
 }
 
+#if 0 /// UNNEEDED by elogind
 _public_ void *sd_bus_track_get_userdata(sd_bus_track *track) {
         assert_return(track, NULL);
 
index cfd5a55457758a7ceadd8ab9d0299af6f7920926..c3673f08a65a0b1d8d8ff7b214fa442ff1630c03 100644 (file)
@@ -732,6 +732,7 @@ static void event_unmask_signal_data(sd_event *e, struct signal_data *d, int sig
 
                 /* If all the mask is all-zero we can get rid of the structure */
                 hashmap_remove(e->signal_data, &d->priority);
+                assert(!d->current);
                 safe_close(d->fd);
                 free(d);
                 return;
index 5ff9ed7f2139c73c3b8e06b5f2fdc32a53949a71..5da9ae6a2d7536462726c7cd7469ff9741a35b48 100644 (file)
@@ -145,7 +145,7 @@ int elogind_setup_cgroups_agent(Manager *m) {
         if (!MANAGER_IS_SYSTEM(m))
                 return 0;
 
-        if (cg_unified() > 0) /* We don't need this anymore on the unified hierarchy */
+        if (cg_unified(SYSTEMD_CGROUP_CONTROLLER) > 0) /* We don't need this anymore on the unified hierarchy */
                 return 0;
 
         if (m->cgroups_agent_fd < 0) {
index 7b45f783002f0bc3f369160ae0da1dabaa308fae..a39486527ca8331a0f9e953ba458075c3778c25f 100644 (file)
@@ -775,7 +775,6 @@ int session_send_create_reply(Session *s, sd_bus_error *error) {
 #if 1 /// Additionally elogind saves the user state file
         user_save(s->user);
 #endif // 1
-
         p = session_bus_path(s);
         if (!p)
                 return -ENOMEM;
index 917aa72aa2fbed0a30797e596daf157f1dbd5c95..4fcc25a1e15718632911ba470fb853b5841951ae 100644 (file)
@@ -74,7 +74,7 @@ bool logind_wall_tty_filter(const char *tty, void *userdata) {
 static int warn_wall(Manager *m, usec_t n) {
         char date[FORMAT_TIMESTAMP_MAX] = {};
         _cleanup_free_ char *l = NULL;
-        bool left;
+        usec_t left;
         int r;
 
         assert(m);
@@ -148,7 +148,6 @@ int manager_setup_wall_message_timer(Manager *m) {
         if (!m->enable_wall_messages)
                 return 0;
 #endif // 1
-
         n = now(CLOCK_REALTIME);
         elapse = m->scheduled_shutdown_timeout;
 
index 774fd69dd8a6376921c735137285e64a6d7ea8c5..2efa78c19ff638c31f4be7d9798d9617524ca027 100644 (file)
@@ -73,7 +73,7 @@ static void manager_reset_config(Manager *m) {
         m->idle_action = HANDLE_IGNORE;
 
         m->runtime_dir_size = physical_memory_scale(10U, 100U); /* 10% */
-        m->user_tasks_max = system_tasks_max_scale(33U, 100U); /* 33% */
+        m->user_tasks_max = system_tasks_max_scale(DEFAULT_USER_TASKS_MAX_PERCENTAGE, 100U); /* 33% */
         m->sessions_max = 8192;
         m->inhibitors_max = 8192;
 
@@ -1046,7 +1046,7 @@ static int manager_parse_config_file(Manager *m) {
 #if 0 /// elogind parses its own config file
         assert(m);
 
-        return config_parse_many(PKGSYSCONFDIR "/logind.conf",
+        return config_parse_many_nulstr(PKGSYSCONFDIR "/logind.conf",
                                  CONF_PATHS_NULSTR("systemd/logind.conf.d"),
                                  "Login\0",
                                  config_item_perf_lookup, logind_gperf_lookup,
index ae1a0b75ea143286970cf52bf0b757c19858660e..84cacba57816e1f7cd42506d1846efaaef672106 100644 (file)
@@ -319,9 +319,11 @@ static int parse_argv(int argc, char *argv[]) {
 static int transient_unit_set_properties(sd_bus_message *m, char **properties) {
         int r;
 
-        r = sd_bus_message_append(m, "(sv)", "Description", "s", arg_description);
-        if (r < 0)
-                return r;
+        if (!isempty(arg_description)) {
+                r = sd_bus_message_append(m, "(sv)", "Description", "s", arg_description);
+                if (r < 0)
+                        return r;
+        }
 
         if (arg_bind_device && is_device_path(arg_mount_what)) {
                 _cleanup_free_ char *device_unit = NULL;
@@ -725,7 +727,7 @@ static int acquire_description(struct udev_device *d) {
         else if (model)
                 arg_description = strdup(model);
         else
-                return NULL;
+                return 0;
 
         if (!arg_description)
                 return log_oom();
index b99ecbba5bc0f41a62747287c33b75d49d989908..2963f9fc4b42fcc2667fb57c3fd82144ffd604e8 100644 (file)
@@ -163,7 +163,7 @@ int add_base_acls_if_needed(acl_t *acl_p, const char *path) {
 
 int acl_search_groups(const char *path, char ***ret_groups) {
         _cleanup_strv_free_ char **g = NULL;
-        _cleanup_(acl_freep) acl_t acl = NULL;
+        _cleanup_(acl_free) acl_t acl = NULL;
         bool ret = false;
         acl_entry_t entry;
         int r;
index ae5cba51ba65cd07799dc3af9a4473207b615c8b..8df67b76b8796c30a71f09e71e625e8720bea32f 100644 (file)
@@ -153,6 +153,8 @@ int sd_bus_set_allow_interactive_authorization(sd_bus *bus, int b);
 #if 0 /// UNNEEDED by elogind
 int sd_bus_get_allow_interactive_authorization(sd_bus *bus);
 #endif // 0
+int sd_bus_set_exit_on_disconnect(sd_bus *bus, int b);
+int sd_bus_get_exit_on_disconnect(sd_bus *bus);
 
 int sd_bus_start(sd_bus *ret);
 
@@ -506,8 +508,14 @@ int sd_bus_track_remove_sender(sd_bus_track *track, sd_bus_message *m);
 int sd_bus_track_add_name(sd_bus_track *track, const char *name);
 int sd_bus_track_remove_name(sd_bus_track *track, const char *name);
 
+int sd_bus_track_set_recursive(sd_bus_track *track, int b);
+int sd_bus_track_get_recursive(sd_bus_track *track);
+
 unsigned sd_bus_track_count(sd_bus_track *track);
-const char* sd_bus_track_contains(sd_bus_track *track, const char *names);
+int sd_bus_track_count_sender(sd_bus_track *track, sd_bus_message *m);
+int sd_bus_track_count_name(sd_bus_track *track, const char *name);
+
+const char* sd_bus_track_contains(sd_bus_track *track, const char *name);
 const char* sd_bus_track_first(sd_bus_track *track);
 const char* sd_bus_track_next(sd_bus_track *track);
 
index 4dff0b9b811df5d61cea402907a77294aaedb556..ee011b1861b7531d83d67486cb74865a2dd5fbd8 100644 (file)
@@ -45,8 +45,8 @@ int sd_id128_from_string(const char *s, sd_id128_t *ret);
 int sd_id128_randomize(sd_id128_t *ret);
 
 int sd_id128_get_machine(sd_id128_t *ret);
-
 int sd_id128_get_boot(sd_id128_t *ret);
+int sd_id128_get_invocation(sd_id128_t *ret);
 
 #define SD_ID128_MAKE(v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15) \
         ((const sd_id128_t) { .bytes = { 0x##v0, 0x##v1, 0x##v2, 0x##v3, 0x##v4, 0x##v5, 0x##v6, 0x##v7, \
index 3c44d63021bce5ebf69cc12eeca6474d6a328264..79246ae0600d4d9b4b08adb76dc82e321146b391 100644 (file)
@@ -40,6 +40,7 @@ _SD_BEGIN_DECLARATIONS;
 #define SD_MESSAGE_JOURNAL_USAGE    SD_ID128_MAKE(ec,38,7f,57,7b,84,4b,8f,a9,48,f3,3c,ad,9a,75,e6)
 
 #define SD_MESSAGE_COREDUMP         SD_ID128_MAKE(fc,2e,22,bc,6e,e6,47,b6,b9,07,29,ab,34,a2,50,b1)
+#define SD_MESSAGE_TRUNCATED_CORE   SD_ID128_MAKE(5a,ad,d8,e9,54,dc,4b,1a,8c,95,4d,63,fd,9e,11,37)
 
 #define SD_MESSAGE_SESSION_START    SD_ID128_MAKE(8d,45,62,0c,1a,43,48,db,b1,74,10,da,57,c6,0c,66)
 #define SD_MESSAGE_SESSION_STOP     SD_ID128_MAKE(33,54,93,94,24,b4,45,6d,98,02,ca,83,33,ed,42,4a)