platform/upstream/systemd.git
9 years agorules: fix typo in block watch rule
Tom Gundersen [Fri, 29 May 2015 17:59:24 +0000 (19:59 +0200)]
rules: fix typo in block watch rule

The intention was to turn this rule from using a blacklist to a whitelist, but
there was a stray '!'.

9 years agoRevert "Makefile: make custom-entities.ent depend on Makefile.am"
Daniel Mack [Fri, 29 May 2015 22:59:22 +0000 (00:59 +0200)]
Revert "Makefile: make custom-entities.ent depend on Makefile.am"

This reverts commit 6096d9cc. As discussed on the mailing list, we
should accept some formal incorrectness in the dependency here, and
not rebuild the man pages every time Makefile.am changes - xsltproc
is simply too expensive.

Instead, let's move man/custom-entities.ent from DISTCLEANFILES to
CLEANFILES, so a 'make clean' is sufficient to actually make changes
in Makefile.am efficient for the contents of the man pages.

9 years agoterminal: fix include ordering
Thomas Hindoe Paaboel Andersen [Fri, 29 May 2015 22:01:18 +0000 (00:01 +0200)]
terminal: fix include ordering

9 years agoconsole: use signal-util.h and reorder includes
Thomas Hindoe Paaboel Andersen [Fri, 29 May 2015 19:11:30 +0000 (21:11 +0200)]
console: use signal-util.h and reorder includes

Missed this one from the previous commit

9 years agoterminal: use signal-util.h and reorder includes
Thomas Hindoe Paaboel Andersen [Fri, 29 May 2015 18:50:37 +0000 (20:50 +0200)]
terminal: use signal-util.h and reorder includes

9 years agoutil: split out signal-util.[ch] from util.[ch]
Lennart Poettering [Fri, 29 May 2015 18:14:11 +0000 (20:14 +0200)]
util: split out signal-util.[ch] from util.[ch]

No functional changes.

9 years agoCODING_STYLE: document order in which to #include headers
Lennart Poettering [Fri, 29 May 2015 18:12:17 +0000 (20:12 +0200)]
CODING_STYLE: document order in which to #include headers

9 years agoudevd: hook up watchdog support
Tom Gundersen [Fri, 29 May 2015 16:41:26 +0000 (18:41 +0200)]
udevd: hook up watchdog support

We are already sending watchdog notification, this tells PID1 to actually listen for
them and restart udevd in case it gets stuck.

9 years agoudevd: notify - expose a bit more of the internal state
Tom Gundersen [Fri, 29 May 2015 16:38:44 +0000 (18:38 +0200)]
udevd: notify - expose a bit more of the internal state

This notifies PID1 about config being flushed, about shutdown starting and shutdown finalizing.

9 years agoudevd: notify - keep NOTIFY_SOCKET around
Tom Gundersen [Fri, 29 May 2015 16:32:15 +0000 (18:32 +0200)]
udevd: notify - keep NOTIFY_SOCKET around

Only unset the env var in the workers, but otherwise keep it around in the main daemon.

9 years agoudevd: modernize status notification
Tom Gundersen [Fri, 29 May 2015 16:31:01 +0000 (18:31 +0200)]
udevd: modernize status notification

Only log about starting in daemon mode, rely on PID1 to log this in notify mode. Also
explicitly set the STATUS variable, as is done in notify mode as is done for other
serivecs.

9 years agoudevd: event - port spawn_wait() to sd-event
Tom Gundersen [Fri, 15 May 2015 09:35:15 +0000 (11:35 +0200)]
udevd: event - port spawn_wait() to sd-event

This allows us to drop the special sigterm handling in spawn_wait()
as this will now be passed directly to the worker event loop.

We now log failing spawend processes at 'warning' level, and timeouts
are in terms of CLOCK_BOOTTIME when available, otherwise the behavior
is unchanged.

9 years agoudevd: move main-loop to sd-event
Tom Gundersen [Mon, 18 May 2015 15:22:36 +0000 (17:22 +0200)]
udevd: move main-loop to sd-event

9 years agoudevd: explicitly try to start event queue when it may be possible
Tom Gundersen [Mon, 18 May 2015 15:06:00 +0000 (17:06 +0200)]
udevd: explicitly try to start event queue when it may be possible

Rather than trying to schedule new events on every main-loop iteration, do it explicitly when
processing an event finishes, a worker is killed, a new uevent is received, or the event queue
is explicitly restarted.

9 years agoudevd: only check for changed config before scheduling new events
Tom Gundersen [Mon, 18 May 2015 14:25:22 +0000 (16:25 +0200)]
udevd: only check for changed config before scheduling new events

Also move builtin and rules initialization from main loop to
event_queue_start().

No functional change.

9 years agoudevd: introduce manager_exit() and manager_reload()
Tom Gundersen [Wed, 13 May 2015 09:26:32 +0000 (11:26 +0200)]
udevd: introduce manager_exit() and manager_reload()

The behavior is mostly unchanged, but rather than only ever calling these functions at
fixed points in the event loop, they are called directly whenever they are invoked.

9 years agopath-util: Change path_is_mount_point() symlink arg from bool to flags
Martin Pitt [Fri, 29 May 2015 15:13:12 +0000 (17:13 +0200)]
path-util: Change path_is_mount_point() symlink arg from bool to flags

This makes path_is_mount_point() consistent with fd_is_mount_point() wrt.
flags.

9 years agopath-util: Fix path_is_mount_point for files
Martin Pitt [Wed, 27 May 2015 07:56:03 +0000 (09:56 +0200)]
path-util: Fix path_is_mount_point for files

Commits 27cc6f166 and f25afeb broke path_is_mount_point() for files (such as
/etc/machine-id → /run/machine-id bind mounts) as with the factorization of
fd_is_mount_point() we lost the parent directory. We cannot determine that from
an fd only as openat(fd, "..") only works for directory fds.

Change fd_is_mount_point() to behave like openat(): It now takes a file
descriptor of the containing directory, a file name in it, and flags (which can
be 0 or AT_SYMLINK_FOLLOW). Unlike name_to_handle_at() or openat(), fstatat()
only accepts the inverse flag AT_SYMLINK_NOFOLLOW and complains with EINVAL
about AT_SYMLINK_FOLLOW; so we need to transform the flags for that fallback.

Adjust rm_rf_children() accordingly (only other caller of fd_is_mount_point()
aside from path_is_mount_point()).

Add test cases for files, links, and file bind mounts (the latter will only
work when running as root). Split out a new test_path_is_mount_point() test
case function as it got significantly larger now.

9 years agobuild-sys: pass originally configured --enable-split-usr to distcheck
Martin Pitt [Fri, 29 May 2015 05:39:53 +0000 (07:39 +0200)]
build-sys: pass originally configured --enable-split-usr to distcheck

Previously we always ran distcheck with --disable-split-usr. This caused
test-path-util to fail with

  Assertion 'fsck_exists("minix") == 0' failed at ../src/test/test-path-util.c:224, function test_fsck_exists(). Aborting.

as looking up fsck.minix would only look into DEFAULT_PATH_NORMAL, but on these
systems fsck is in /sbin/.

9 years agobuild-sys: fix typo
Karel Zak [Fri, 29 May 2015 11:42:35 +0000 (13:42 +0200)]
build-sys: fix typo

There is nothing like systemd_verify_* in Makefile.am. The bug has
been invisible because automake uses the default CFLAGS when component
CFLAGS are undefined.

9 years agobuild-sys: Stop depending on current configure options for EXTRA_DIST
Martin Pitt [Thu, 28 May 2015 10:03:17 +0000 (12:03 +0200)]
build-sys: Stop depending on current configure options for EXTRA_DIST

Consistently move EXTRA_DIST out of conditional blocks. This would have
produced incomplete dist tarballs when being run in a built tree with not
every feature enabled, which can cause broken dist tarballs.

9 years agoMakefile: make custom-entities.ent depend on Makefile.am
Daniel Mack [Fri, 29 May 2015 10:00:58 +0000 (12:00 +0200)]
Makefile: make custom-entities.ent depend on Makefile.am

When Makefile.am is modified, make sure custom-entities.ent is rebuilt.
After all, $(substitutions) is defined there, so changes of that variable
must be reflected in the resulting file.

9 years agosystemctl: Don't skip SysV init.d scripts when enabling/disabling units
Martin Pitt [Wed, 27 May 2015 12:52:17 +0000 (14:52 +0200)]
systemctl: Don't skip SysV init.d scripts when enabling/disabling units

If there is both a SysV init.d script and a systemd unit for a given name, we
want to do the same enable/disable operation for both, instead of just on the
systemd unit. This keeps the enablement status in sync so that switching init
systems behaves as expected.

9 years agosystemctl: drop hardcoded chkconfig invocation
Martin Pitt [Wed, 27 May 2015 15:04:49 +0000 (17:04 +0200)]
systemctl: drop hardcoded chkconfig invocation

Introduce /usr/lib/systemd/systemd-sysv-install [--root=] <action> <name>
abstraction, replacing the direct calling of chkconfig. This allows
distributions to call their specific tools like update-rc.d without patching
systemd.

Ship systemd-sysv-install.SKELETON as an example for packagers how to implement
this.

Drop the --enable-chkconfig configure option.

Document this in README and point to it in NEWS.

9 years agoman: use configured path for mount and umount binaries in manpages
Filipe Brandenburger [Wed, 27 May 2015 09:38:20 +0000 (02:38 -0700)]
man: use configured path for mount and umount binaries in manpages

Export the MOUNT_PATH and UMOUNT_PATH variables as XML entities and use them in
the systemctl.1 manpage instead of hardcoding the path in /usr/bin.

Tested:
- Ran ./configure ac_cv_path_MOUNT_PATH=/bin/mount (same for umount) and
  rebuilt the manpages, confirmed that the correct path was in man/systemctl.1
- Rebuilt man/systemd.directives.xml and the man pages derived from it,
  confirmed that the correct paths were there as well.

9 years agoman: generate configured paths in manpages
Filipe Brandenburger [Wed, 27 May 2015 09:38:19 +0000 (02:38 -0700)]
man: generate configured paths in manpages

In particular, use /lib/systemd instead of /usr/lib/systemd in distributions
like Debian which still have not adopted a /usr merge setup.

Use XML entities from man/custom-entities.ent to replace configured paths while
doing XSLT processing of the original XML files. There was precedent of some
files (such as systemd.generator.xml) which were already using this approach.

This addresses most of the (manual) fixes from this patch:
http://anonscm.debian.org/cgit/pkg-systemd/systemd.git/tree/debian/patches/Fix-paths-in-man-pages.patch?h=experimental-220

The idea of using generic XML entities was presented here:
http://lists.freedesktop.org/archives/systemd-devel/2015-May/032240.html

This patch solves almost all the issues, with the exception of:
- Path to /bin/mount and /bin/umount.
- Generic statements about preference of /lib over /etc.

These will be handled separately by follow up patches.

Tested:
- With default configure settings, ran "make install" to two separate
  directories and compared the output to confirm they matched exactly.
- Used a set of configure flags including $CONFFLAGS from Debian:
  http://anonscm.debian.org/cgit/pkg-systemd/systemd.git/tree/debian/rules
  Installed the tree and confirmed the paths use /lib/systemd instead of
  /usr/lib/systemd and that no other unexpected differences exist.
- Confirmed that `make distcheck` still passes.

9 years agosd-device: enumerator - fix matching on properties and sysattrs
Tom Gundersen [Thu, 28 May 2015 15:18:33 +0000 (17:18 +0200)]
sd-device: enumerator - fix matching on properties and sysattrs

This was a regression that broke

  $ udevadm trigger -nv --property-match=DEVNAME=/dev/sda1 --attr-match=size=409600

Reported by David Reisner.

9 years agoman: fix systemd.resource-control(5) volume number
Patrick Donnelly [Wed, 27 May 2015 19:47:02 +0000 (15:47 -0400)]
man: fix systemd.resource-control(5) volume number

9 years agofix extraneous space in equality check
Jonathan Boulle [Wed, 27 May 2015 19:02:24 +0000 (12:02 -0700)]
fix extraneous space in equality check

9 years agosd-device: fix device_get_properties_strv()
Tom Gundersen [Wed, 27 May 2015 21:26:39 +0000 (23:26 +0200)]
sd-device: fix device_get_properties_strv()

A NULL pointer was inserted as the first element of the strv.

This had the effect of always passing the empty environment to processes
spawned by udev.

Reported by Michał Bartoszkiewicz.

9 years agoudevd: fix SIGCHLD handling in --daemon mode
Tom Gundersen [Wed, 27 May 2015 16:39:36 +0000 (18:39 +0200)]
udevd: fix SIGCHLD handling in --daemon mode

We were listening for SIGCHLD in the wrong process.

9 years agomissing: add more IFLA_VXLAN_* defines
Michael Olbrich [Tue, 26 May 2015 05:48:48 +0000 (07:48 +0200)]
missing: add more IFLA_VXLAN_* defines

Otherwise building faild with kernel headers < v3.16

9 years agologind: prefix some calls to unlink with (void)
Daniel Mack [Wed, 27 May 2015 13:20:58 +0000 (15:20 +0200)]
logind: prefix some calls to unlink with (void)

Make Coverity happy and tell it we're not interested in the return
value of these two calls.

9 years agologind: unlink /run/nologin when shutdown is cancelled
Daniel Mack [Tue, 26 May 2015 16:56:40 +0000 (18:56 +0200)]
logind: unlink /run/nologin when shutdown is cancelled

When a scheduled is cancelled, make sure to remove /run/nologin.
This is a regression from the recent shutdownd removal and logind rework.

9 years agotreewide: fix typos
Torstein Husebø [Tue, 26 May 2015 17:17:30 +0000 (19:17 +0200)]
treewide: fix typos

9 years agoudev: fix inotify handling
David Herrmann [Tue, 26 May 2015 11:03:15 +0000 (13:03 +0200)]
udev: fix inotify handling

This partly reverts:

    commit 6d1b1e0bc6bd020218afc5f05286bf372be283d5
    Author: Tom Gundersen <teg@jklm.no>
    Date:   Sun May 24 15:10:04 2015 +0200

        udevd: worker - fully clean up unnecessary fds

The inotify-fd _is_ used in the workers, so don't close it! Have a look at
udev-watch.c, which keeps track of the inotify-fd as a global variable
(ugh!).

9 years agobuild-sys: ship fsck mock in tarball
Martin Pitt [Tue, 26 May 2015 05:16:00 +0000 (07:16 +0200)]
build-sys: ship fsck mock in tarball

Useful for downstream integration test cases.

9 years agotest: hostname - test that hostname is truly initialized
Tom Gundersen [Mon, 25 May 2015 21:10:26 +0000 (23:10 +0200)]
test: hostname - test that hostname is truly initialized

Fixes CID CID 1299638 (use after free).

9 years agonspawn: fix memleak
Tom Gundersen [Mon, 25 May 2015 21:01:45 +0000 (23:01 +0200)]
nspawn: fix memleak

This was a typo, swapping prefix_root() in place of prefix_roota().

Fixes CID 1299640.

9 years agonspawn: avoid memleak
Tom Gundersen [Mon, 25 May 2015 20:55:52 +0000 (22:55 +0200)]
nspawn: avoid memleak

Simplify the code a bit, at the cost of potentially duplicating some
memory unneccessarily.

Fixes CID 1299641.

9 years agonspawn: drop some debugging code
Tom Gundersen [Mon, 25 May 2015 20:49:14 +0000 (22:49 +0200)]
nspawn: drop some debugging code

These have no effect.

Fixes CID 1299643.

9 years agoimport: dkr - avoid NULL-pointer dereference
Tom Gundersen [Mon, 25 May 2015 20:47:42 +0000 (22:47 +0200)]
import: dkr - avoid NULL-pointer dereference

A malformed manifest could in principle cause a NULL pointer dereference of. Check
for this and fail early.

Fixes CID 1299642.

9 years agonspawn: make coverity happy
Tom Gundersen [Mon, 25 May 2015 20:27:14 +0000 (22:27 +0200)]
nspawn: make coverity happy

Rather than checking the return of asprintf() we are checking if buf gets allocated,
make it clear that it is ok to ignore the return value.

Fixes CID 1299644.

9 years agonetworkd: fix IFF_UP when ipv6 support is disabled
Tom Gundersen [Mon, 25 May 2015 15:34:47 +0000 (17:34 +0200)]
networkd: fix IFF_UP when ipv6 support is disabled

Passing ipv6 options (even when they should be noops) caused IFF_UP to fail when
ipv6 was supported.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=90103

9 years agoswap: use swapon -o
Karel Zak [Mon, 25 May 2015 10:11:23 +0000 (12:11 +0200)]
swap: use swapon -o

This patch simplify swapon usage in systemd. The command swapon(8)
since util-linux v2.26 supports "-o <list>". The idea is exactly the
same like for mount(8). The -o specifies options in fstab-compatible
way. For systemd it means that it does not have to care about things
like "discard" or another swapon specific options.

        swapon -o <options-from-fstab>

For backward compatibility the code cares about "Priority:" swap unit
field (for a case when Priority: is set, but pri= in the Options: is
missing).

References: http://lists.freedesktop.org/archives/systemd-devel/2014-October/023576.html

9 years agobuild-sys: fix headers installation
Marc-Antoine Perennou [Mon, 25 May 2015 11:35:14 +0000 (13:35 +0200)]
build-sys: fix headers installation

9 years agobuild-sys: don't dist generated files
Marc-Antoine Perennou [Mon, 25 May 2015 09:18:18 +0000 (11:18 +0200)]
build-sys: don't dist generated files

[tomegun: fix
   Makefile.am:5675: warning: nodist_systemd_resolved_SOURCES multiply defined in condition ENABLE_RESOLVED]

9 years agobuild-sys: always include src/boot/efi in tarballs
Marc-Antoine Perennou [Mon, 25 May 2015 09:18:17 +0000 (11:18 +0200)]
build-sys: always include src/boot/efi in tarballs

currently it would only be included if configure was ran with --enable-gnuefi

9 years agoshared: generator - correct path to systemd-fsck
Mike Gilbert [Sun, 24 May 2015 20:33:35 +0000 (16:33 -0400)]
shared: generator - correct path to systemd-fsck

In generated systemd-fsck-root.service. This would break if rootprefix
is not /usr/lib/systemd.

[tomegun: flesh out commit message]

9 years agonspawn: be verbose about interface names
Umut Tezduyar Lindskog [Fri, 22 May 2015 14:02:09 +0000 (16:02 +0200)]
nspawn: be verbose about interface names

Allowed interface name is relatively small. Lets not make
users go in to the source code to figure out what happened.

--machine=debian-tree conflicts with
--machine=debian-tree2

ex: Failed to add new veth \
         interfaces (host0, vb-debian-tree): File exists

9 years agoudevd: event - fix event queue in daemenozied mode
Tom Gundersen [Sun, 24 May 2015 13:20:36 +0000 (15:20 +0200)]
udevd: event - fix event queue in daemenozied mode

We would enforce that events could only be added to the queue from the
main process, but that brake in daemonized mode. Relax the restriction
to only allow one process to add events to the queue.

Reported by Mantas Mikulėnas.

9 years agoudevd: worker - modernize a bit
Tom Gundersen [Sun, 24 May 2015 13:14:43 +0000 (15:14 +0200)]
udevd: worker - modernize a bit

Initialize structs when declaring rather than using memzero().

9 years agoudevd: worker - fully clean up unnecessary fds
Tom Gundersen [Sun, 24 May 2015 13:10:04 +0000 (15:10 +0200)]
udevd: worker - fully clean up unnecessary fds

These are only ever used in the parent process, so close them early in the worker.

9 years agobootctl: fix an error check
Thomas Hindoe Paaboel Andersen [Sat, 23 May 2015 11:02:56 +0000 (13:02 +0200)]
bootctl: fix an error check

9 years agofix typos in systemd-nspawn man page
Jonathan Boulle [Sat, 23 May 2015 03:11:01 +0000 (20:11 -0700)]
fix typos in systemd-nspawn man page

9 years agobootctl: ferror must be called before FILE is closed
Thomas Hindoe Paaboel Andersen [Fri, 22 May 2015 21:40:19 +0000 (23:40 +0200)]
bootctl: ferror must be called before FILE is closed

Otherwise it will not show any error stored

9 years agoudev/net_id: Only read the first 64 bytes of PCI config space
Jason S. McMullan [Fri, 22 May 2015 18:30:01 +0000 (20:30 +0200)]
udev/net_id: Only read the first 64 bytes of PCI config space

The original code used fread(), which on some libc implementions
(ie glibc 2.17) would pre-read a full 4K (PAGE_SIZE) of the
PCI config space, when only 64 bytes were requested.

I have recently come across PCIe hardware which responds with
Completion Timeouts when accesses above 256 bytes are attempted.

This can cause server systems with GHES/AEPI support to cause
and immediate kernel panic due to the failed PCI transaction.

This change replaces the buffered fread() with an explict
unbuffered read() of 64 bytes, which corrects this issue by
only reading the guaranteed first 64 bytes of PCIe config space.

9 years agosd-bus,sd-event: make public APIs
Lennart Poettering [Fri, 22 May 2015 12:32:51 +0000 (14:32 +0200)]
sd-bus,sd-event: make public APIs

With the v221 release these APIs should be public, stable APIs, hence
let's install their headers by default now, and add their symbols to the
.sym file.

9 years agoNEWS: fix date
Lennart Poettering [Thu, 21 May 2015 23:37:16 +0000 (01:37 +0200)]
NEWS: fix date

Ah, bummer, it's tagged an now I realize I didn't fix the date. Let's do
so now, post-commit.

9 years agojson: minor style fixes v220
Lennart Poettering [Thu, 21 May 2015 21:30:37 +0000 (23:30 +0200)]
json: minor style fixes

9 years agotest.json: fix build on x86-32 where int and intmax_t differ
Lennart Poettering [Thu, 21 May 2015 21:25:57 +0000 (23:25 +0200)]
test.json: fix build on x86-32 where int and intmax_t differ

9 years agoupdate hardware databases
Lennart Poettering [Thu, 21 May 2015 20:04:30 +0000 (22:04 +0200)]
update hardware databases

9 years agobuild-sys: fix build with seperate builddir
Lennart Poettering [Thu, 21 May 2015 19:54:53 +0000 (21:54 +0200)]
build-sys: fix build with seperate builddir

Let's make sure we can build rpms with this

9 years agomanager: fix finish_timestamp calculation
Lennart Poettering [Thu, 21 May 2015 19:34:36 +0000 (21:34 +0200)]
manager: fix finish_timestamp calculation

http://lists.freedesktop.org/archives/systemd-devel/2015-May/032100.html

9 years agoupdate TODO
Lennart Poettering [Thu, 21 May 2015 19:31:23 +0000 (21:31 +0200)]
update TODO

9 years agobus-proxy: fix GetConnectionSELinuxSecurityContext() return value
Lennart Poettering [Thu, 21 May 2015 19:24:55 +0000 (21:24 +0200)]
bus-proxy: fix GetConnectionSELinuxSecurityContext() return value

9 years agonspawn: prohibit access to the kernel log buffer by default
Lennart Poettering [Thu, 21 May 2015 18:48:39 +0000 (20:48 +0200)]
nspawn: prohibit access to the kernel log buffer by default

Unless CAP_SYSLOG is explicitly passed block all access to kmg

9 years agodevice: never act on mount events for devices if device support is not available
Lennart Poettering [Thu, 21 May 2015 18:43:21 +0000 (20:43 +0200)]
device: never act on mount events for devices if device support is not available

9 years agocore: properly handle jobs that are suppressed to JOB_NOPs when propagating restarts
Lennart Poettering [Thu, 21 May 2015 18:39:23 +0000 (20:39 +0200)]
core: properly handle jobs that are suppressed to JOB_NOPs when propagating restarts

9 years agoNEWS: add note about gudev
David Herrmann [Thu, 21 May 2015 18:39:47 +0000 (20:39 +0200)]
NEWS: add note about gudev

gudev has been extracted into a separate repository managed by the gnome
project. See the announcement thread on systemd-devel for more:
  http://lists.freedesktop.org/archives/systemd-devel/2015-May/032070.html

9 years agoNEWS: fix sd-boot to systemd-boot
David Herrmann [Thu, 21 May 2015 18:25:38 +0000 (20:25 +0200)]
NEWS: fix sd-boot to systemd-boot

We renamed sd-boot to systemd-boot directly after merging it, to stay
conform to all the other systemd binaries.

9 years agoNEWS: fix typo and expand abbreviation
Zbigniew Jędrzejewski-Szmek [Thu, 21 May 2015 18:30:53 +0000 (14:30 -0400)]
NEWS: fix typo and expand abbreviation

9 years agoNEWS: document the IPForward= confusion
Lennart Poettering [Thu, 21 May 2015 18:24:34 +0000 (20:24 +0200)]
NEWS: document the IPForward= confusion

9 years agotmpfiles: create /etc/resolv.conf symlink only on boot
Zbigniew Jędrzejewski-Szmek [Thu, 21 May 2015 18:22:30 +0000 (14:22 -0400)]
tmpfiles: create /etc/resolv.conf symlink only on boot

We will create the symlink on boot as a fallback to provide name
resolution. But if the symlink was removed afterwards, it most likely
should not be recreated. Creating it only on boot also solves the
issue where it would be created prematurely during installation,
before the system was actually booted.

https://bugzilla.redhat.com/show_bug.cgi?id=1197204

9 years agobuild-sys: bump library and package versions
Lennart Poettering [Thu, 21 May 2015 18:10:26 +0000 (20:10 +0200)]
build-sys: bump library and package versions

9 years agoupdate TODO
Lennart Poettering [Thu, 21 May 2015 17:49:08 +0000 (19:49 +0200)]
update TODO

9 years agoutil: an array with one entry is always ordered
Lennart Poettering [Thu, 21 May 2015 17:49:03 +0000 (19:49 +0200)]
util: an array with one entry is always ordered

9 years agoutil: introduce PERSONALITY_INVALID as macro for 0xffffffffLU
Lennart Poettering [Thu, 21 May 2015 17:48:49 +0000 (19:48 +0200)]
util: introduce PERSONALITY_INVALID as macro for 0xffffffffLU

9 years agoNEWS: start collecting items for v220
Lennart Poettering [Thu, 21 May 2015 17:47:42 +0000 (19:47 +0200)]
NEWS: start collecting items for v220

9 years agonspawn: finish user namespace support
Lennart Poettering [Thu, 21 May 2015 14:30:58 +0000 (16:30 +0200)]
nspawn: finish user namespace support

9 years agoupdate TODO
Lennart Poettering [Thu, 21 May 2015 14:11:38 +0000 (16:11 +0200)]
update TODO

9 years agoudev: link-config - fix corruption
Tom Gundersen [Thu, 21 May 2015 13:22:07 +0000 (15:22 +0200)]
udev: link-config - fix corruption

The parser used for MTU and Speed expects them to be size_t, not unsigned int.

This caused a corruption in the rest of the structure.

Reported by David O Neill <david.m.oneill@intel.com>.

9 years agohwdb: add MS Arc Touch Mouse SE
Peter Hutterer [Thu, 21 May 2015 05:39:11 +0000 (15:39 +1000)]
hwdb: add MS Arc Touch Mouse SE

https://bugs.freedesktop.org/show_bug.cgi?id=90540

9 years agosd-device: fix return codes on error
Zbigniew Jędrzejewski-Szmek [Thu, 21 May 2015 03:34:12 +0000 (23:34 -0400)]
sd-device: fix return codes on error

asprintf() does not set errno.

9 years agojson: avoid cleanup of unitialized variable
Zbigniew Jędrzejewski-Szmek [Thu, 21 May 2015 03:25:48 +0000 (23:25 -0400)]
json: avoid cleanup of unitialized variable

9 years agounits: conditionalize audit multicast socket on CAP_AUDIT_READ
Lennart Poettering [Wed, 20 May 2015 15:40:05 +0000 (17:40 +0200)]
units: conditionalize audit multicast socket on CAP_AUDIT_READ

The multicast logic can only work if the capability is available, hence
require it.

9 years agoutil: introduce reset_uid_gid() for resetting all uids and gids to 0
Lennart Poettering [Wed, 20 May 2015 12:41:39 +0000 (14:41 +0200)]
util: introduce reset_uid_gid() for resetting all uids and gids to 0

9 years agojournald: handle more gracefully when bind() fails on audit sockets
Lennart Poettering [Wed, 20 May 2015 12:37:21 +0000 (14:37 +0200)]
journald: handle more gracefully when bind() fails on audit sockets

9 years agocore,nspawn: unify code that moves the root dir
Lennart Poettering [Tue, 19 May 2015 18:32:44 +0000 (20:32 +0200)]
core,nspawn: unify code that moves the root dir

9 years agoTODO: add --merge support for sd-j-remote
Zbigniew Jędrzejewski-Szmek [Wed, 20 May 2015 03:59:27 +0000 (23:59 -0400)]
TODO: add --merge support for sd-j-remote

9 years agobootctl: try to catch all errors
Zbigniew Jędrzejewski-Szmek [Sat, 21 Mar 2015 14:28:55 +0000 (10:28 -0400)]
bootctl: try to catch all errors

Do not print garbage on non-EFI installations.

9 years agobootctl: modernization
Zbigniew Jędrzejewski-Szmek [Wed, 18 Mar 2015 02:29:31 +0000 (22:29 -0400)]
bootctl: modernization

Use strjoina to avoid error handling, and openat to simplify things.

Some fixes on the way:
- ferror does not set errno, so the return value was wrong in some cases
- errors are propagated in more cases
- EFI/systemd was created, but EFI/systemd-boot was deleted
- something is always printed on error
- when checking the version, comparison was done against "systemd-bo" for some reason
- return value was converted from negative to EXIT_SUCCESS/EXIT_FAILURE twice,
  resulting in EXIT_SUCCESS all the time

9 years agobus-socket: simplify initalization of struct msghdr
Zbigniew Jędrzejewski-Szmek [Sat, 16 May 2015 15:06:43 +0000 (11:06 -0400)]
bus-socket: simplify initalization of struct msghdr

9 years agohwdb: add Logitech M570 trackball
Peter Hutterer [Fri, 8 May 2015 01:56:45 +0000 (11:56 +1000)]
hwdb: add Logitech M570 trackball

http://www.logitech.com/en-us/product/wireless-trackball-m570#specs
https://bugzilla.redhat.com/show_bug.cgi?id=1217881

9 years agojson: fix a mem leak
Thomas Hindoe Paaboel Andersen [Tue, 19 May 2015 21:19:29 +0000 (23:19 +0200)]
json: fix a mem leak

9 years agoupdate TODO
Lennart Poettering [Tue, 19 May 2015 17:54:39 +0000 (19:54 +0200)]
update TODO

9 years agounits: make sure systemd-nspawn@.slice instances are actually located in machine...
Lennart Poettering [Tue, 19 May 2015 17:47:52 +0000 (19:47 +0200)]
units: make sure systemd-nspawn@.slice instances are actually located in machine.slice

https://plus.google.com/112206451048767236518/posts/SYAueyXHeEX

9 years agocore: don't consider boot-up finished if we are still reloading
Lennart Poettering [Tue, 19 May 2015 17:09:03 +0000 (19:09 +0200)]
core: don't consider boot-up finished if we are still reloading

http://lists.freedesktop.org/archives/systemd-devel/2015-May/032025.html

9 years agopull-dkr: fix memleak
Thomas Hindoe Paaboel Andersen [Tue, 19 May 2015 17:23:53 +0000 (19:23 +0200)]
pull-dkr: fix memleak

9 years agoimport/pull-dkr: V2 image specification and manifest support
Pavel Odvody [Tue, 19 May 2015 14:30:33 +0000 (16:30 +0200)]
import/pull-dkr: V2 image specification and manifest support

The maximum number of layers changed to 127, as in Dkr.