[systemd-commits] stable Changes to 'v219-stable'
Zbigniew Jędrzejewski-Szmek
zbyszek at kemper.freedesktop.org
Tue Mar 3 17:07:34 PST 2015
New branch 'v219-stable' available with the following commits:
commit 0436d5c5f4b39ba8177437fa92f082f8ef1830fb
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Mar 3 19:07:28 2015 -0500
shared/util: assume ac when /sys/class/power_supply is missing
On s390 (at least) /sys/class/power_supply is not present. We should
treat this like if this directory was empty, and not an error.
(cherry picked from commit 6d89003462484c8656b698e07b9cf0a337e3818e)
commit 5fb87c4b6582ddb0a0ab1f31300eae69ab963afb
Author: Hans-Peter Deifel <hpd at hpdeifel.de>
Date: Tue Mar 3 00:35:08 2015 +0100
tmpfiles: quietly ignore ACLs on unsupported filesystems
A warning is printed if ACLs cannot be retrieved for any reason other
than -ENOSYS. For -ENOSYS, debug log is printed.
(cherry picked from commit d873e8778c92014c02a9122852758b436fa95c0e)
commit 3f0c8096f3d5e3b37d6e0e26f0562c1a8669f0d8
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Mar 2 20:55:38 2015 +0100
sd-daemon: replace VLA with alloca(), to make llvm happy
https://bugs.freedesktop.org/show_bug.cgi?id=89379
(cherry picked from commit d4a144fadf89bca681724c6c9a65b4a165fa0f90)
commit 983c520982b548c9bb8f2689a93f2fb35c54c392
Author: Cristian Rodríguez <crrodriguez at opensuse.org>
Date: Sun Mar 1 21:13:10 2015 -0300
journal: fix Inappropriate ioctl for device on ext4
Logs constantly show
systemd-journald[395]: Failed to set file attributes: Inappropriate ioctl for device
This is because ext4 does not support FS_NOCOW_FL.
[zj: fold into one conditional as suggested on the ML and
fix (preexisting) r/errno confusion in error message.]
(cherry picked from commit 65eae3b76243d2dfd869f8c43b787575f7b4b994)
commit 91a3ba906422127bb12095d1c7d0c7f0cb385588
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Mar 2 10:34:51 2015 -0500
journal-remote: fix saving of binary fields
Binary fields were not processed properly, and resulting journal files
were non-conforming, resulting in an error ("Invalid field.") when reading.
https://bugs.freedesktop.org/show_bug.cgi?id=89391
(cherry picked from commit 09d801a82a46df518dd752e40bf13ac404daa2ce)
commit 4e2d4dd757c6faa4d5a471c10cf6f45978524845
Author: Umut Tezduyar Lindskog <umut.tezduyar at axis.com>
Date: Fri Feb 20 10:53:28 2015 +0100
core: downgrade unit type not supported message
Otherwise every daemon reload prints out warnings like:
systemd[1]: Unit type .busname is not supported on this system.
systemd[1]: Unit type .swap is not supported on this system.
(cherry picked from commit 03afec3c9aa849ba13161c253b129b834298fd40)
commit 3c350019fe9e4be16bf110988c324cfa3a21c61b
Author: Cristian Rodríguez <crrodriguez at opensuse.org>
Date: Fri Feb 20 15:35:11 2015 -0300
shared: AFS is also a network filesystem
(cherry picked from commit ba89821c104d959082aad6f3f0e05a8afd575023)
commit 9a46fe3127eea552cd76d4b549f8d8ba70ea01b3
Author: Benjamin Franzke <benjaminfranzke at googlemail.com>
Date: Thu Feb 19 20:47:28 2015 +0100
machined: use x-machine-unix prefix for the container bus on dbus1
This fixes "machinectl login" on systems configured with --disable-kdbus.
The error was:
machinectl login foo
Failed to get machine PTY: Input/output error
(cherry picked from commit f2273101c21bc59a390379e182e53cd4f07a7e71)
commit 3d3a67138c63b47f2a5723577f886bc3c7995748
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sat Feb 28 23:39:55 2015 +0100
core: fix return value on OOM
(cherry picked from commit c43b2132f37264600cc26e07c8d85dfdd6c969f0)
commit 5b788e932fe918fb022bc20c3a15eb59e0fad53a
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Feb 27 21:55:08 2015 +0100
core: rework device state logic
This change introduces a new state "tentative" for device units. Device
units are considered "plugged" when udev announced them, "dead" when
they are not available in the kernel, and "tentative" when they are
referenced in /proc/self/mountinfo or /proc/swaps but not (yet)
announced via udev.
This should fix a race when device nodes (like loop devices) are created
and immediately mounted. Previously, systemd might end up seeing the
mount unit before the device, and would thus pull down the mount because
its BindTo dependency on the device would not be fulfilled.
(cherry picked from commit 628c89cc68ab96fce2de7ebba5933725d147aecc)
commit af6a96a36415400482ad504392ea93c6a0e2ed43
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Feb 26 19:05:51 2015 -0500
sysctl: add some hints how to override settings
Also a link to decent documentation for sysrq keys. It is surprising
hard to find.
https://lists.fedoraproject.org/pipermail/devel/2015-February/208412.html
(cherry picked from commit 16b65d7f463e91f6299dfa7b83d4b5fbeb109d1c)
commit 2439dc6083d27271ee942559f0f73c99fa9e2b4e
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Feb 26 19:00:11 2015 -0500
sysctl: downgrade message about sysctl overrides to debug
Printing it at info level was tedious. We don't do that for any other
overrides.
(cherry picked from commit 7933e4266f8124e3fca71f67757abd44155fa1cb)
commit ca0cf2741ef9db81141f4444ab58dd3552c8fb1f
Author: Colin Walters <walters at verbum.org>
Date: Tue Feb 17 13:47:34 2015 -0500
unit: When stopping due to BindsTo=, log which unit caused it
I'm trying to track down a relatively recent change in systemd
which broke OSTree; see https://bugzilla.gnome.org/show_bug.cgi?id=743891
Systemd started to stop sysroot.mount, and this patch should help
me debug why at least.
While we're here, "break" on the first unit we find that will
deactivate, as there's no point in further iteration.
(cherry picked from commit 98f738b62047229af4a929d7996e2ab04253b02c)
commit fc9805756d5c0088a3a67705bbf6bea30d0d35e5
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Feb 25 22:05:14 2015 +0100
unit: use weaker dependencies between mount and device units in --user mode
When running in user mode unmounting of mount units when a device
vanishes is unlikely to work, and even if it would work is already done
by PID 1 anyway. HEnce, when creating implicit dependencies between
mount units and their backing devices, created a Wants= type dependency
in --user mode, but leave a BindsTo= dependency in --system mode.
(cherry picked from commit 5bd4b173605142c7be493aa4d958ebaef21f421d)
commit 5b49f6072e901336680708267c3d48a54c5410ae
Author: Aaro Koskinen <aaro.koskinen at nokia.com>
Date: Mon Feb 23 16:01:31 2015 +0200
systemd: add getrandom syscall numbers for MIPS
Add getrandom syscall numbers for MIPS. Based on Linux 3.17 kernel
(commit 42944521af97a3b25516f15f3149aec3779656dc, "MIPS: Wire up new
syscalls getrandom and memfd_create").
(cherry picked from commit 3bec6d4690d2a7f08dc27b8221299c1db94978c4)
commit 668529dde3ecf35e24f39eaf3a3044099e4d5273
Author: Aaro Koskinen <aaro.koskinen at nokia.com>
Date: Tue Feb 24 18:32:31 2015 +0200
bootchart: svg: fix checking of list end
If we have less samples than expected, systemd-bootchart will crash.
(cherry picked from commit c1682f17a0c966988e865c649e565dae41abf32d)
commit f17b6474aaca077482a68aedc1de9d654ab21bad
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Tue Feb 24 20:40:07 2015 +0100
acl-util: avoid freeing uninitialized pointer
CID#1271344/1271345
(cherry picked from commit 76dcbc4992e895a377aad26f8c4a0dcd71002396)
commit 1df0ddca3ae405537ceb87eccdb76324f276706f
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Feb 24 10:10:04 2015 -0500
systemctl: bump NOFILE only for systemctl_main
It is not necessary when running as telinit, etc.
https://bugzilla.redhat.com/show_bug.cgi?id=1184712
(cherry picked from commit 95d383ee47db488f182048cfd6846f2e6b859f2b)
commit 588e3fe64330854d44f09b376a132c6384ac2499
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Tue Feb 24 14:30:10 2015 +0100
bootchart: fix default init path
Commit 6e1bf7ab99 used the wrong directory; we need rootlibexecdir, not
rootlibdir, as the latter is something like /lib/x86_64-linux-gnu/ on
multi-arch systems.
https://launchpad.net/bugs/1423867
(cherry picked from commit a804d849b3c2199bc25d1d4e65fc119fa4d7d0e2)
commit 5248b6bbaf09c74cd152257132cba9358549446a
Author: Daniel Mack <daniel at zonque.org>
Date: Tue Feb 24 13:27:10 2015 +0100
test-time: test "infinity" parsing in nanoseconds
(cherry picked from commit fdd30a1530810b659345c565e97beef06b7af2fd)
commit 57da343cebcd77d168d5648825698e4edbb56d2c
Author: Daniel Mack <daniel at zonque.org>
Date: Tue Feb 24 13:26:09 2015 +0100
shared/time-util: fix gcc5 warning
CC src/shared/libsystemd_shared_la-time-util.lo
src/shared/time-util.c: In function 'parse_nsec':
src/shared/time-util.c:789:25: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses]
if (!*s != 0)
^
(cherry picked from commit 8e8933ca0f06bae19cb6db601e83b33f8ac80f2a)
commit c429758054ee77383ca6d7323ecdd4163d3a3718
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Feb 23 23:19:54 2015 -0500
tmpfiles: avoid creating duplicate acl entries
https://bugs.freedesktop.org/show_bug.cgi?id=89202
https://bugs.debian.org/778656
Status quo ante can be restored with:
getfacl -p /var/log/journal/`cat /etc/machine-id`|grep -v '^#'|sort -u|sudo setfacl --set-file=- /var/log/journal/`cat /etc/machine-id`
(cherry picked from commit 1c73f3bc29111a00738569c9d40a989b161a0624)
commit 8df2bb91718bf2ccc89c41f0dd19cd0bc8da1357
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Feb 18 14:33:50 2015 +0100
test: utf8 - fix utf16 tests on BE machines
(cherry picked from commit 502184de0f95d3a124d4d4c77ae7a88747a0fac2)
commit ea960d3fc09c1e3745791d3433094678fd7ccd50
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Tue Feb 17 12:47:51 2015 +0100
tmpfiles: Fix parse_acl error message
parse_acl() returns the error instead of setting errno.
(cherry picked from commit 484adfd914504cd7e95867cea20ca7af71b888f2)
commit 5852d2efbfb888dfb0adddb25afac0814d3ebcbb
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Tue Feb 17 10:36:57 2015 +0100
journal-remote: fix client_cert memory leak
Found by Valgrind while testing the previous memory leak fix.
(cherry picked from commit 32c3d7144cf9a5c8c03761d7f198142ca0f5f7b8)
commit 7057db8b36594bb03c611cab711cd992ad4de31e
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Tue Feb 17 10:33:01 2015 +0100
journal-remote: fix certificate status memory leak
The output of gnutls_certificate_verification_status_print() needs to be
freed.
Noticed this while staring at verify_cert_authorized() to see what could
possibly confuse gcc5 on armv7hl to segfault during compilation.
(cherry picked from commit 9c3cf9693ac5c0a332ba376f99e6adea28b1bb0d)
commit a88abde72169ddc2df77df3fa5bed30725022253
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Feb 16 21:54:57 2015 +0100
update TODO
commit 37574894c8b1298728187d5fa554742a41a89168
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Mon Feb 16 21:17:48 2015 +0100
Revert "build-sys: re-add old symbols for abi compat"
This reverts commit 93a1e66efd4b0f4cda29c467d20d0f7510c0b3a8.
It broke the builds for Walters.
Kay hates it and "just knows" there are no actual users.
commit 7edecf218e5884ec8d1549707b4c7a0572c2d93b
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Mon Feb 16 21:21:16 2015 +0100
NEWS: typo fixes
commit 2404701e679904979751816930101511d8ec5d49
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Feb 16 14:04:36 2015 -0500
Transpose args in strv_fnmatch() to be more oo
commit d49dc8127676358e706663f3603265942d2507aa
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Feb 16 13:56:31 2015 -0500
test-network: fix segfault with NULL dev_path/driver/type/name
commit 8c340239a644faa16cb5c9396d89fcaefec409b9
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Feb 16 19:36:56 2015 +0100
update TODO
commit dd2fd155901a965ec0efa3adc460b33d2048d4c2
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Feb 16 19:36:51 2015 +0100
NEWS: fix typo
commit 6ecb6cec66739d733e95302031998f517261380c
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Feb 13 18:38:33 2015 -0500
analyze: change behaviour of combined --to/from--pattern
We would require a match against all three: patterns specified
with --to, with --from, and as positional arguments to show an
edge. This does not seem useful. Let instead the positional args
behave like they were specified in both --to and --from, which is
fairly intuitive and should be more useful.
commit ee5de57b9d474161df259e7faa958fa9d7bbd736
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Feb 13 18:38:22 2015 -0500
network-internal: chain matches with AND in net_match_config()
The test would treat the first non-empty set of matches in
match_paths, match_drivers, match_types, match_names as definitive
(essentially chaining them with OR). Make those tests instead match
like other tests and require all to pass if the set of patterns is
nonempty.
commit bceccd5ecc393c344ab008737ba6aab211a5ea9f
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Feb 13 18:37:43 2015 -0500
Add helper for fnmatch over strv
commit 488c8d08c322471f2e702e25b75f31bed7ae5975
Author: Marcel Holtmann <marcel at holtmann.org>
Date: Mon Feb 16 19:10:39 2015 +0100
hwdb: Update database of Bluetooth company identifiers
commit 625b3b71c12d10601816eb7793d557bd2a22b575
Author: Cristian Rodríguez <crrodriguez at opensuse.org>
Date: Mon Feb 16 13:24:29 2015 -0300
timesync: Use UINT64_C for OFFSET_1900_1970
So it matches what the comment says in both 32 and 64 bit systems.
commit 5ad65d628facbce5219ac2749bc835ab92ca6c39
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Feb 16 18:41:49 2015 +0100
update TODO
commit 93a1e66efd4b0f4cda29c467d20d0f7510c0b3a8
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Feb 16 12:13:20 2015 -0500
build-sys: re-add old symbols for abi compat
For two releases those exported with version 183 by mistake, and then
they were fixed to have version 215 (015419c0df libudev: fix symbol
version for udev_queue_flush() and udev_queue_get_fd()). But that
breaks ABI compatibility for binaries compiled with udev from before
that commit. There most likely very few such binaries, if any, but as
a matter of principle we should export the old symbols too, in order
to keep full compatibility.
commit 407d02621e34244f693cdb52525415698600b8f2
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Feb 16 17:28:35 2015 +0100
hwdb: update
commit 83e44331339fa12b93cbee40e6ee449d2d878deb
Author: Cristian Rodríguez <crrodriguez at opensuse.org>
Date: Mon Feb 16 01:09:55 2015 -0300
sd-bus: add missing format attribute
commit d2c643c662e2cb3b6d1445c17c80b4b2998d5c61
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Feb 16 17:17:07 2015 +0100
update NEWS
commit edbda61f25324e8e86c2bd76f3fcf7247e0c34b5
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Feb 16 17:14:20 2015 +0100
hwdb: fix syntax
commit b267a6d20464a138cae916a676f2c382c51d52de
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Feb 16 15:59:45 2015 +0100
sd-bus: make sure we always serialize the reply cookie as 64bit on dbus2, and 32bit on dbus1
commit 2ac7c17f9d8eeb403b91ee5a389562edaf47fb87
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Feb 13 17:32:38 2015 +0100
Revert "Revert "sd-bus: change serialization of kdbus messages to qualify in their entirety as gvariant objects""
This reverts commit 954871d8ba15911d014f76ed2c7a9492953cf39d.
commit 38ab096869ad6bb39a9ef9a012abfb42ea62cd93
Author: Christian Kirbach <christian.kirbach at gmail.com>
Date: Sun Feb 15 14:30:05 2015 +0100
po: Update German translation
https://bugs.freedesktop.org/show_bug.cgi?id=89154
commit 9fba65f1eb2b5686c6750eada1f78d0446a1f0d0
Author: Lukas Märdian <luk at slyon.de>
Date: Sat Feb 14 14:37:40 2015 -0500
hwdb: Microsoft Microsoft 3-Button Mouse
https://bugs.freedesktop.org/show_bug.cgi?id=89149
commit ca905b2fce3831c48dcf10e7ada58282504dc988
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Feb 14 14:11:24 2015 -0500
core: make RuntimeDirectory honor SELinux labels
https://bugzilla.redhat.com/show_bug.cgi?id=1192726
commit e28569311f5385cde76e4b84adbec6609b451cf9
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Feb 14 19:01:21 2015 +0100
bus-proxy: be more verbose if messages cannot be forwarded
If we cannot forward messages, include information on the peer and message
just like the xml-policy does. This helps debugging such situations and
figuring out what exactly is going wrong.
commit 749806b389f53f7dd43a2cae1589e63dddf51990
Author: WaLyong Cho <walyong.cho at samsung.com>
Date: Fri Feb 13 14:59:39 2015 +0900
bootchart: display each CPU utilization/wait
commit 0737984f6910fdffdf6494f20c1c64a027806273
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Feb 14 15:31:26 2015 +0100
network: fix 'LinkLocal' -> 'LinkLocalAddressing' in network files
'LinkLocal' was renamed to 'LinkLocalAddressing' in:
commit 56fd6bf795926409b087bce406ea851ad89f9fe8
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Feb 14 00:32:26 2015 +0100
networkd: .network - rename LinkLocal to LinkLocalAddressing
..but apparently the network files were not updated. Fix this.
commit d90c154eb180783098683ce8e1c03cd29d9b77ce
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Feb 14 15:13:38 2015 +0100
bus-proxy: don't fake data we don't have
UDS sockets transmit EUID+EGID only. Don't try to fake data we don't know!
Otherwise, this might be used to override user-limits by non-root setuid
programs (by faking UID==EUID).
Now that sd-bus is fixed to always use EUID even on UDS, we can safely set
all other UID/GID fields to INVALID.
commit 9cad100eca602aa33c2f56475c30fccf14abea1a
Author: Bruno Bottazzini <bruno.bottazzini at intel.com>
Date: Fri Feb 13 18:40:50 2015 -0200
util: use a shared lookup function for string tables
Macro DEFINE_STRING_TABLE_LOOKUP expands to a new function for each
of the almost 120 tables throghout the code.
Move the its implementation to a function (guaranteed to never be inlined),
and make the macro expand to an inlined function that calls this function.
This saves a few kilobytes from the systemd binary
(David: - fix coding-style
- use 'ssize_t' to fix 32bit to 64bit propagation
- use streq_ptr())
commit 60c35566600f45350c37f152c1093018972bd9a5
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Feb 14 00:32:56 2015 +0100
networkd: network - rename ipv6token parser
Too generic name.
commit 56fd6bf795926409b087bce406ea851ad89f9fe8
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Feb 14 00:32:26 2015 +0100
networkd: .network - rename LinkLocal to LinkLocalAddressing
Makes it a bit less ambiguous.
commit 113bfde15f9393fa8bc22cbd839c0bc64e733ee2
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Feb 14 00:30:51 2015 +0100
man: systemd.network - document IPv6Token
commit 84dd59b51c0db34f0334e90a5da2a45abcc9a52a
Author: Djalal Harouni <tixxdz at opendz.org>
Date: Fri Feb 13 23:39:13 2015 +0100
sd-rtnl: add missing IFLA_INET6_ADDR_GEN_MODE definition
Add missing IFLA_INET6_ADDR_GEN_MODE definition so we can build with
kernel headers < 3.17
commit e7337bae09c2e22a42a2a9c8cdda0cd6cf42428e
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Feb 14 00:14:52 2015 +0100
TODO
commit c74f883c6f7d5901b3c543d47f64082ccd91a895
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Feb 13 17:17:45 2015 +0100
bus-proxy: ECONNRESET/ENOTCONN can hit us on every step, hence handle it on every step
commit 5569b33a8ce1968200db801ef28585347103239c
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Feb 13 17:17:28 2015 +0100
bus-proxy: a few simplifications
commit e044970a29b83e128c5a78f70e7d5ad1c74e7058
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Feb 13 17:16:51 2015 +0100
sd-bus: initialize a few structs at time or declaration
commit 95eb099fa8a90212ed2aef82bad360f147bc19c2
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Feb 13 17:15:41 2015 +0100
bus-proxy: close each connection fd only once
After passing the fds over to the sd_bus object, we should forget them,
so that we don't close them a second time when the object goes away.
commit 557b5d4a94967198b3181fcb83879d4569cbf456
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Feb 13 16:11:45 2015 +0100
bus-proxy: also consider ENOTCONN a clean termination condition
Sometimes, when we try to reply to messages we don't check return
values. This means we might miss a ECONNRESET, and will get a ENOTCONN
on next command. Treat both the same hence.
commit a8ba6cd15d3a5edf1f9fbb4fd08dc428c3939072
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Feb 13 16:20:45 2015 +0100
exit-on-idle: only exit if actually idle
sd_event_wait() returning 0 usually means that it timed out, which means it must
have been idle. However, sd_event_wait() may return 0 in case an event was triggered
but it turned out there was nothing to do. Make the check for idle explicit to avoid
this edge-case.
commit 5f6cb091278906423f8b7e70c40131db7269916a
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Feb 13 15:38:38 2015 +0100
bus-proxy: whenever we cannot forward a message, report this back to caller, but don't exit
Errors like EPERM from the kernel should certainly not be reason to
exit. Let's try to be defensive here, and try to continue on most send
errors, but possibly tell the sender about it.
commit 1433efd219a6df414a1821b3d3d70d86201ed3e4
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Feb 13 15:37:34 2015 +0100
bus-proxy: rename synthetic_reply_return_strv() to synthetic_reply_method_return_strv()
That way it matches more closely the nomenclature of our other
success reply calls.
commit 418e4cb07d56e365b9b77b24d3c851e85940d68b
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Feb 13 15:36:15 2015 +0100
bus-proxy: minor simplifications
commit 07a0d22f9ec5a0cac2385b73dc08b12a811cead8
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Feb 13 15:34:54 2015 +0100
sd-bus: export sd_bus_error_set_errnofv()
commit 61adca52f6f0b119e501c523008a454887cdf2b9
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Feb 13 15:34:11 2015 +0100
bus-proxy: no need to negate error codes, log_error_errno() already does it
commit 1140e154100f7224fb8bab55ba7fc087409f9d76
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Feb 13 15:33:42 2015 +0100
bus-proxy: tell Coverity we don't care about these return values
commit d27efd93841a2ac2127fd53321368cc3f975c564
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Feb 13 15:05:34 2015 +0100
bus-proxy: we don't pointlessly abbreviate function names
It's fine to abbreviate local variables, but it's not OK to abbreviate
function names needlessly. This is not an excercise in writing
unreadable code.
commit 403193f54b6ff0d3e822d56d7144cf996a596146
Author: Daniel Mack <daniel at zonque.org>
Date: Fri Feb 13 14:55:51 2015 +0100
sd-bus: sync kdbus.h (ABI break)
Another slice logic rework in kdbus made KDBUS_ITEM_PAYLOAD_OFF items
relative to the message header again. Catch up with that in sd-bus.
commit 7d5fed66a6fd5731da7564ae47a9f693fa75a549
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Feb 13 14:35:50 2015 +0100
units: turn on --network-veth by default for systemd-nspawn at .service
Given the recent improvements in networkd, it's probably the better
default now.
commit 93391a8badc671f7d1a163b4b338bc030c390cb7
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Feb 13 14:30:05 2015 +0100
units: fix systemd-networkd.service in containers lacking CAP_NET_ADMIN
commit 6813a2fe4e6da3fba8b1bddd34602f058df41564
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Feb 13 14:09:17 2015 +0100
hwdb: update name databases
commit 29dff93227916281c4bcaa3b9c71536be8395945
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Feb 13 11:06:42 2015 +0100
build-sys: already bump package version in preparation for next release
(don't misunderstand this, the release is still out quite a bit...)
commit f9d4ea9e4e4ce34a90399a6fabdc648cf5d4bb2f
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Feb 12 20:49:22 2015 +0100
build-sys: bump sonames in preparation for next release
commit 11ea2781eea4b912d2feb26785ece475e504c57b
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Feb 12 20:45:19 2015 +0100
NEWS: add contributors list
commit 0c13be389faea49fd8a370dc8186e7d5d20e967d
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Fri Feb 13 10:59:38 2015 +0100
rules: simplify mmc RPMB handling
We don't actually want a by-path/ symlink for MMC RPMB devices, so just add
them to the blacklist. This will prevent creating wrong by-path links and
blkid'ing those.
commit b87b01cf83947f467f3c46d9831cd67955fc46b9
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Wed Feb 11 15:26:52 2015 +0100
rules: Fix by-path of mmc RPMB partitions and don't blkid them
Linux 3.10+ exposes RPMB (Replay Protected Memory Block) partitions of MMC
devices [1] ; trying to read them with blkid or other unspecific means will
cause kernel buffer I/O errors and timeouts. So don't run blkid on these.
Also ensure that /dev/disk/by-path creates proper symlinks and exposes the
-rpmb partition separately, instead of letting the "normal" partition symlink
point to the rpbm device (this is a race condition).
[1] http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=090d25fe224c0
https://launchpad.net/bugs/1333140
commit 0a6f50c0afdfc434b492493bd9efab20cbee8623
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Thu Feb 12 14:06:32 2015 +0100
include <poll.h> instead of <sys/poll.h>
include-what-you-use automatically does this and it makes finding
unnecessary harder to spot. The only content of poll.h is a include
of sys/poll.h so should be harmless.
commit c1ff5570f4a04bb9aedea444c12dce81679224ec
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Tue Feb 10 12:56:53 2015 +0100
Add missing includes in header files
This fixes various issues found by globally reordering the include
sections of all .c files.
commit 76f282c636f33b41bdbc93a5b2945945ee0029bf
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Thu Feb 12 20:32:03 2015 +0100
test-util: remove superfluous const
commit 8744505aaefad761cba0f0e5afaaf6bcec53906e
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Thu Feb 12 15:12:11 2015 +0100
remove unused variable
commit cf1d0302aeaf4e44a6a643fb41e5525fdd04b1d5
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Feb 12 18:58:43 2015 +0100
exec: also evaluate working_directory_missing_ok when not applying chroots
commit 615aaf412c441e67c7cad2e5ae966b03fca1fae7
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Feb 12 18:44:46 2015 +0100
NEWS: begin collecting news items for 219
commit 5c3072eab6d2e11d89452987b017541d4654ac05
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Feb 12 14:15:41 2015 +0100
networkd: explicitly enable/disable ipv6ll addresses
The kernel does not like getting an empty container, so just always pass the parameter, even if
it is the default.
commit 424d110ac010afb6577580aebd1448f28d7d982d
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Feb 12 13:17:08 2015 +0100
hwdb: adjust --help text to be more like other --help texts
Fix capitalization, indentation, make sure we support --version, and
similar.
commit c2cc6b9aefb6f2085d3ca7eb9743093a17f751da
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Feb 12 12:28:48 2015 +0100
core: disarm shutdown watchdog if we fail to set timeout
Better safe than sorry, if drivers are stupid, and reset immediately on
device closing if the timeout could not be initialized.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=777735
commit 4c08c8242a687e00b289e948ccd07b96f0bc4866
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Feb 12 12:21:16 2015 +0100
core: don't fail to run services in --user instances if $HOME is missing
Otherwise we cannot even invoke systemd-exit.service anymore, thus not
even exit.
https://bugs.freedesktop.org/show_bug.cgi?id=83100
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=759320
commit a38d99451f2bf8026ec51aee91662292e823c6a8
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Feb 12 11:44:48 2015 +0100
Revert "tree-wide: Always use recvmsg with MSG_CMSG_CLOEXEC"
This reverts commit d6d810fbf8071f8510450dbacd1d083f37603656.
It's apparently not OK to pass MSG_CMSG_CLOEXEC to recvmsg() of raw
sockets.
commit d01efa07444e49aafd78e0aa822168da688d53f5
Author: Marcel Holtmann <marcel at holtmann.org>
Date: Wed Feb 11 22:15:13 2015 +0100
missing: add __NR_getrandom for powerpc architecture
commit d54ddab8cbad46290306fc6e3346089fe3772d5c
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Feb 11 21:25:30 2015 +0100
core: don't watch for socket events when service is in SERVICE_STOP
If a service has an ExecStop= program that uses the socket the service was
activated by to tell it to terminate, then that should not be used as
trigger to start the service again.
http://lists.freedesktop.org/archives/systemd-devel/2015-February/028058.html
commit c31c4324c5120d9b38f8a5e39623c8242ee001e0
Author: Michael Olbrich <m.olbrich at pengutronix.de>
Date: Sun Feb 8 20:29:50 2015 +0100
systemctl: don't update the reboot parameter if none is given
Otherwise systemd-reboot.service will remove the parameter that was set
before. This was broken in commit "b986229efe2cc96157aa14c37bab7843311bbef1
systemctl: bugfix for systemctl reboot command with argument"
commit 418761f5864fe1ae7e9bb884259cc9933ae8ad0c
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Feb 11 18:51:35 2015 +0100
core: correct a log message
The log message talks specifically about services, though it actually
applies to any kind of unit.
commit eef46c372f64f40dd75415b2c504c73138719c8d
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Feb 11 18:50:38 2015 +0100
tree-wide: whenever we include libgen.h, immediately undefine basename()
Also, document in adjacent comments and in CODING_STYLE why we do that.
commit e89fe484df6b94fcd775b923327b54eaf0a116e2
Author: Cristian Rodríguez <crrodriguez at opensuse.org>
Date: Mon Feb 9 21:41:09 2015 -0300
core: remove unneeded <libgen.h> include
execute.c only uses basename (the GNU version in <string.h>)
commit a24111cea64e042b49d8b4bca85ce6092845bbec
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Feb 11 18:28:06 2015 +0100
Revert "units: add SecureBits"
This reverts commit 6a716208b346b742053cfd01e76f76fb27c4ea47.
Apparently this doesn't work.
http://lists.freedesktop.org/archives/systemd-devel/2015-February/028212.html
commit e203dc1076dd5c1485509975a4c63c8328c262f4
Author: Robert Milasan <rmilasan at suse.com>
Date: Thu Feb 5 14:19:35 2015 +0100
ata_id: remove unused header files
Signed-off-by: Robert Milasan <rmilasan at suse.com>
commit 6a716208b346b742053cfd01e76f76fb27c4ea47
Author: Topi Miettinen <toiwoton at gmail.com>
Date: Wed Feb 11 18:32:14 2015 +0200
units: add SecureBits
No setuid programs are expected to be executed, so add
SecureBits=noroot noroot-locked
to unit files.
commit c4c086a2e37bb3c869298558ea24864b6606774e
Author: Torstein Husebø <torstein at huseboe.net>
Date: Wed Feb 11 17:22:55 2015 +0100
man: fix typo
commit 910889b6170cb484e0bf0b8a3a13c1ba6226ac07
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Feb 11 13:10:48 2015 +0100
network-internal: fix inverted matching
This fixes the test-suite again.
commit a245ced0d7b0af9ae5438d978e24183672a0a4d9
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Feb 11 13:02:58 2015 +0100
networkd: fdb - fix const warning
commit f806f64c7460632d6b6c27865e1554cb6c934320
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Feb 11 12:57:58 2015 +0100
networkd: don't do exit-on-idle if there is something wrong with the dbus connection
Just fall back to plain old event loop in this (highly unlikely) case.
In the glorious future when kdbus is upstream we can of course drop all this.
commit f4f01ec146d91cb6943828851d98eee6a1ad4dd9
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Wed Jul 2 22:00:00 2014 +0200
sysv-generator: Skip init scripts for existing native services
This avoids taking the SysV init script enablement state into account if we
have native units. Otherwise systemctl disable on native unit would not
be respected in the presence of an enabled SysV script.
Also, there's no need to do all the parsing and creation of service files if we
already have a native systemd unit for the processed SysV init script.
commit f93b36affa5ac5710cd84bfb8ff0dafabe99fbf1
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Feb 11 12:57:08 2015 +0100
Update TODO
commit 804319344bb9cab47532a9584f3e4383d53ea880
Author: Paul Martin <paul.martin at codethink.co.uk>
Date: Wed Feb 11 11:50:28 2015 +0000
networkd DHCPv4 logging endian fix
On Tue, Feb 10, 2015 at 08:10:43PM +0100, Lennart Poettering wrote:
> Hmm, I think it would be nicer to use be32toh() here instead, since it
> ensures the macro is (to a limited degree) typesafe.
>
> Any chance you could rework that?
From: Paul Martin <paul.martin at codethink.co.uk>
Date: Wed, 11 Feb 2015 11:47:16 +0000
Subject: [PATCH] networkd dhcpv4 logging endian fix
On a big-endian host, systemd-networkd prints out IPv4 network
addresses byte reversed:
Feb 10 16:43:32 hostname systemd-networkd[151]: eth0 : DHCPv4 address 158.1.24.10/16 via 1.1.24.10
The address obtained is 10.24.1.158/16 and the route is
10.24.0.0/16 dev eth0 src 10.24.1.187
The macro ADDRESS_FMT_VAL() unpacks a "struct in_addr" in a
little-endian specific manner.
This patch forces the passed address into host order, then unpacks it.
On an x86 later than i486, compiled with -O2, the only extra overhead
is a single bswap instruction.
commit b975b0d514321f169b3c4599a8ea92e13741b4e4
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Feb 10 23:19:26 2015 -0500
man: boilerplate unification
commit decde8cd96b39dfb76fdda6f35c448a37cabc588
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Feb 10 23:19:16 2015 -0500
man: fix reference to glob manpage
commit 432d59656bd480b32a1fa6cf1c74662bfcafaf28
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Feb 10 23:17:59 2015 -0500
man: add systemd.generator(7)
This is largely based on http://www.freedesktop.org/wiki/Software/systemd/Generators/,
and obsoletes that page. It seems that we do a much better
job of keeping man pages up-to-date compared to wiki pages.
Man pages are also easier to find for users.
https://bugs.freedesktop.org/show_bug.cgi?id=89048
commit dafd8112349f645016b4be71444c23d07ad8dcaa
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Feb 10 22:30:50 2015 +0100
TODO
commit 5256e00e8b9015dd1a976d647fc71dc7efbd8cf8
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Feb 10 18:30:16 2015 +0100
net: support globbing and disjunction in Match logic
Match{Name,OrginalName,Type,Driver,Path} can now take a space-separated glob of matches.
commit ea6ec096db5f9f3562b9bbf438da7fe21411c74d
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Feb 10 20:40:41 2015 +0100
networkd: fdb - refactor a bit
Pass around Link objcets rather than FdbEntry objects. The link objects have an up-to-date
ifname we can use for logging. match_name sholud _never_ be used for anything except
matching. Firstly, it may be unset (usually is), and secondly it may not be up-to-date.
commit 9198e12ca32db7812b2a79b5922233ec80890306
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Feb 10 17:29:40 2015 +0100
networkd: bus - expose MatchMAC
commit 53d6837510478e1275b294654663635466cbafc7
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Feb 10 17:28:34 2015 +0100
man: sd_bus_path_encode - fix order of arguments
commit f6f8d466bd6ce5f737d66a076c1f9e40d8ec9d7f
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Feb 10 16:36:58 2015 +0100
networkd: network-bus - use sd_bus_path_{en,de}code
commit 699eee62d1b1ad8af1ca944a1b500b6c3096de0d
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Feb 10 21:25:28 2015 +0100
CODING_STYLE: elaborate on O_CLOEXEC a bit
commit d6d810fbf8071f8510450dbacd1d083f37603656
Author: Cristian Rodríguez <crrodriguez at opensuse.org>
Date: Tue Feb 10 12:06:24 2015 -0300
tree-wide: Always use recvmsg with MSG_CMSG_CLOEXEC
commit 332560792c6ef0b5c3d9719801b64d0d5f374639
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Feb 10 21:17:26 2015 +0100
test-lldp: fix minor OOM
commit 804138a08c1fd6a4a3c19ead91eeb8ef312c36a0
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Feb 10 21:15:47 2015 +0100
test-lldp: initialize structs when we define them
commit b762fbd128480426d225596b18604a45042339c5
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Feb 10 21:15:21 2015 +0100
test-lldp: use strndup() where possible
commit 2e1a569b77f656500317cf2ca2382e9222ceab2f
Author: Philippe De Swert <philippedeswert at gmail.com>
Date: Sun Feb 8 22:21:51 2015 +0200
libsystemd-network: Avoid potential NULL dereference in test-lldp
As a malloc0 could fail, doing a strncpy without checking could
cause issues. Adding an assert should be good enough and in line
with other similar routines in the code.
Found with Coverity Fixes: CID#1261402
commit 20760dcf5df7e253c21a51886cdb02dee612730b
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Feb 10 20:46:19 2015 +0100
update TODO
commit df3efc3c9008eec6f2d3dc8df997f06758911fc8
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Feb 10 20:46:09 2015 +0100
bus-proxyd: initialize ioctl structure only once
commit a89a8031e010ade7d3bdbbe5fd227e26250fb11c
Author: Vincent Batts <vbatts at redhat.com>
Date: Tue Feb 10 12:31:43 2015 +0100
.gitignore: add systemd-pull
commit 2a560338c471f47ca0caf6f1ec8c54a61e005d7f
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Feb 10 12:32:54 2015 +0100
journald: don't specify inline in local functions
Leave it to the compiler to figure out whether it shall inline stuff or
not.
Only place where using static inline is OK to use is in in header
files, really.
commit 5b99bc57f27c0beb37e3d56edbaf70eb1a276531
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Feb 10 12:32:19 2015 +0100
shared: untabify
commit a9c67ea2a24d61640971fc1ca366a3e6c7d75266
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Feb 10 12:31:56 2015 +0100
logind: tell Coverity that we knowingly ignore mkdir()'s return value
commit df22b0bbfde403b3fa71f3c2f1e2ca38af946388
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Feb 10 12:31:31 2015 +0100
update TODO
commit 4b9bb683eecda5a70594075297ef89af91cde8fe
Author: Hui Wang <hui.wang at canonical.com>
Date: Tue Feb 10 16:42:22 2015 +0800
keymap: Add microphone mute keymap for several HP laptops
On these several HP laptops, the microphone mute hotkey is "Fn+F8" and
the scancode for this hotkey is 0x81, but this scancode was mapped to
fn_esc in the HP generic keymap section. To fix this problem, we add
a machine specific keymap section to add the correct keymap rule.
BugLink: https://bugs.launchpad.net/bugs/1409721
BugLink: https://bugs.launchpad.net/bugs/1334968
Signed-off-by: Hui Wang <hui.wang at canonical.com>
commit 1c11181458990715e0ffd49e848baac5959e3c89
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Feb 9 22:02:32 2015 +0100
networkd: link_object_find - don't accept invalid input
Reported by Zbigniew.
commit 769b56a308c3f3d3952eda87fd4fb004207f4f49
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Feb 9 16:22:34 2015 +0100
networkd: support route scopes
For now we only support the hardcoded values RT_SCOPE_{UNIVERSE,LOCAL,HOST},
and not numerical values or values from /etc/iproute2/rt_scopes.
This addresses https://bugs.freedesktop.org/show_bug.cgi?id=88508.
commit e2acdb6b0f68d9b4152708a9f21bf9e11f8b9e7e
Author: Torstein Husebø <torstein at huseboe.net>
Date: Mon Feb 9 14:18:57 2015 +0100
treewide: correct typos and use consistent "MAC" spelling
commit c8f5edeab0b007081cf89aeb1d23d428382c2a4f
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Feb 9 12:00:33 2015 +0100
networkd: bus - switch to properly escaped object paths
commit 7f77697a1744f8df2089848b9d718faf7ba6c665
Author: Tom Gundersen <teg at jklm.no>
Date: Sun Feb 8 23:20:56 2015 +0100
networkd: add support for IPv6 tokens
This allows the admin to set the host-specific part of IPv6 addresses, but still
receive the prefix via SLAAC.
.network file snippet:
[Network]
IPv6Token=::12
gives:
$ ip token
token ::12 dev eth0
This closes https://bugs.freedesktop.org/show_bug.cgi?id=81177.
commit d0d6a4cd70477970812bff0a37e70f66208d7c14
Author: Tom Gundersen <teg at jklm.no>
Date: Sun Feb 8 22:27:15 2015 +0100
networkd: generalize IPv4LL to LinkLocal
This allows both IPv4 and IPv6 link-local addresses to be enabled or disabled. By default
we still enable IPv6LL and disable IPv4LL. The old config option is kept for backwards
compatibility, but removed from the documentation.
commit 73cb1c149dc05abef5ad2814d6193cc33a991082
Author: Tom Gundersen <teg at jklm.no>
Date: Sun Feb 8 22:34:53 2015 +0100
sd-rtnl: fix typesystem for IFLA_AF_SPEC
Got this one wrong, it is not a union, just a nested container.
commit a1166fe970ebd42a2b5f3bd77203b3e2999e9b34
Author: Daniele Medri <dmedri at gmail.com>
Date: Sun Feb 8 08:57:49 2015 +0100
language fallback: it_CH (Italian, Swiss) -> it_IT (Italian, Italy)
commit 3175fcdec5d748e8db85a3e7fe1cb67f5f6a865d
Author: Tom Gundersen <teg at jklm.no>
Date: Sun Feb 8 13:27:56 2015 +0100
networkd: add basic org.freedesktop.network1.Network interface
commit dbffab87f1504abc9f189dd253111693c99fbd9a
Author: Tom Gundersen <teg at jklm.no>
Date: Sun Feb 8 13:29:35 2015 +0100
networkd: add network_get_by_name
commit 23cb977ac382931a0b5c1385cdbb7fe5c4c92b1a
Author: Tom Gundersen <teg at jklm.no>
Date: Sun Feb 8 19:43:01 2015 +0100
build-sys: properly enable the networkd dbus activation
commit c149ae08ccbc63279c0b2d146b6879163dfffce3
Author: Tom Gundersen <teg at jklm.no>
Date: Sun Feb 8 19:31:46 2015 +0100
sd-rtnl: add support for IFLA_INET6_*
commit 4af7b60d428765c2d2c66c46f416f6dae55e9ddb
Author: Tom Gundersen <teg at jklm.no>
Date: Sun Feb 8 12:37:05 2015 +0100
sd-rtnl: extend type system to allow address-family to decide the union members
So far we only supported selecting them by sibling attributes.
(This stuff is all a bit crazy, but there seems to be no other way...)
commit 02f500532e4823584aae43cbe762914b4a0c0254
Author: Mantas Mikulėnas <grawity at gmail.com>
Date: Fri Feb 6 22:35:14 2015 +0200
networkd: use valid bus paths
Object path components must start with [A-Za-z_] (AFAIK).
Also the value of 'p' is undefined if asprintf fails.
Compare to user_bus_path() in src/login/logind-user-dbus.c:281.
commit b8719ebb57961f93a9aeeb49f0b9ba1f2bab7068
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Feb 6 14:43:17 2015 +0100
sd-rtnl: don't treat 0-length messages specially
Still parse the CMSG data, and most importantly make sure we drop the message when peeking.
commit b99802f769f9c0a5c2bc94e59ed43279492daa04
Author: Umut Tezduyar Lindskog <umut.tezduyar at axis.com>
Date: Sat Feb 7 14:12:41 2015 +0100
sysctl: consider --prefix while parsing the files
not while applying the parsed sysctl values. Otherwise
info "Overwriting earlier assignment of %s in file %s" is
visible many times even though the given --prefix doesn't
try to set the overridden value.
This also optimizes the startup tiny bit since we have udev
rules running on network devices and setting sysctl through
the rules.
commit 2a7e23fbba3a42265c49e62404ab3f9ed25bc9b7
Author: Piotr Drąg <piotrdrag at gmail.com>
Date: Sat Feb 7 17:33:40 2015 +0100
Add Silesian and Kashubian to language fallback map
Silesian and Kashubian speakers would prefer to fall back to Polish (pl)
translations instead of English (C).
https://bugs.freedesktop.org/show_bug.cgi?id=89021
commit cfcc160f2237e73f3bf42004f79ae324b1732967
Author: Lukasz Skalski <l.skalski at samsung.com>
Date: Fri Feb 6 17:08:32 2015 +0100
bus-proxyd: fix 'ListQueuedOwners' call
Set proper kdbus_cmd_list object size, otherwise:
dbus-send --system --dest=org.freedesktop.DBus --type=method_call \
print-reply / org.freedesktop.DBus.ListQueuedOwners string:org.freedesktop.systemd1
Error org.freedesktop.DBus.Error.InvalidArgs: Invalid argument
commit 4e829d218cb2ba7e50616945007081f4c7fe0e29
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Jan 31 14:11:23 2015 -0500
localed: add LANGUAGE= fallback when LANG= is specified
For the entries listed in the first column of language-fallback-map,
the entry from the second column will be used for LANGUAGE=, if
LANGUAGE= is not explicitly specified.
https://bugzilla.redhat.com/show_bug.cgi?id=624158
commit 757b23a6cd15f4b5fdcc3ea99754b7173aff0309
Author: Naveen Kumar <nkumar at redhat.com>
Date: Sat Jan 31 12:50:49 2015 -0500
Add language fallback map
This map will be used to provide a fallback for translations.
For example, a Niederdeutsch (nds) speaker prefers to fall back to
German (de) translations rather then the English (C) ones.
https://bugzilla.redhat.com/show_bug.cgi?id=624158#c9
commit a08d90d6b3eaafa5a8305f601f16cd85480b82c3
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Feb 6 09:12:27 2015 -0500
build-sys: remove reference to long gone file
Interesting that automake doesn't complain about this at all.
That file was removed in 3fb97a58fa3f233.
commit 30ae637af31551f6c3d8f27db4537aaddda462bb
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Feb 6 12:09:36 2015 +0100
units: networkd - fix busname to work on kdbus
commit da53c5516e3807145a321df08b853d6f9f21c6fc
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Feb 6 11:54:30 2015 +0100
sd-rtnl: don't fall over when receiving 0 bytes from the socket
causes EOF. Seems like a kernel bug. Ignoring it seems to work be the best we
can do for now...
See https://bugs.freedesktop.org/show_bug.cgi?id=88397
commit b621bfd2311a13311a45ccd5e31a9ce3214895fe
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Feb 6 11:49:07 2015 +0100
sd-rtnl: fix creation of synthetic error replies
commit 1c25683e0f40c6169676cc44fa1897082597feec
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Feb 6 08:36:17 2015 +0100
udev: net_setup - clarify reason for failure of persistent mac address policy
commit ee46e555702715f1adcc3381dac73e76e2d9a048
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Feb 5 19:44:13 2015 -0500
shared/log: read /proc/cmdline only in daemons
http://lists.freedesktop.org/archives/systemd-devel/2015-February/027960.html
commit 823f4a91ebd8942a2c1ff31050dc55eaa60f6ffc
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Thu Feb 5 18:07:54 2015 +0100
update TODO
commit 8f203c166ecb24f904a068f2d8f0c636c1511a8f
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Feb 5 18:00:16 2015 +0100
networkd: move the connection to the bus out of manager_new (again)
This would otherwise make the tests fail as we cannot grab the bus name.
commit 4852e15970ec652b823bf568b398f730be1fe1a5
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Feb 5 17:59:40 2015 +0100
networkd: gracefully handle failure to emit signals when dbus is not connected
When we get kdbus we don't need these hackse.
commit b2086f601b313939db160aa028e66649ba81bd01
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Feb 4 16:21:27 2015 +0100
bus: sync with kdbus (ABI break)
commit a97dcc12e486ecff531809802930a26c4da827f2
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Feb 4 15:00:20 2015 +0100
networkd: exit on idle
We will be woken up on rtnl or dbus activity, so let's just quit if some time has passed and that is the only thing that can happen.
Note that we will always stay around if we expect network activity (e.g. DHCP is enabled), as we are not restarted on that.
commit 3f171cabadfcd8699def3732d264f63f8e800562
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Feb 4 15:16:40 2015 +0100
networkd: don't unlink state files on exit
Only unlink state files on DELLINK. This allows sd-network to be used even when networkd is not running.
commit e331e24649213f2e093e16e4d3d64ee823dfc375
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Feb 4 11:44:37 2015 +0100
networkd: add basic dbus API
Only the very basics, more to come.
For now:
$ busctl tree org.freedesktop.network1
└─/org/freedesktop/network1
└─/org/freedesktop/network1/link
├─/org/freedesktop/network1/link/1
├─/org/freedesktop/network1/link/2
├─/org/freedesktop/network1/link/3
├─/org/freedesktop/network1/link/4
├─/org/freedesktop/network1/link/5
├─/org/freedesktop/network1/link/6
├─/org/freedesktop/network1/link/7
├─/org/freedesktop/network1/link/8
└─/org/freedesktop/network1/link/9
$ busctl introspect org.freedesktop.network1 /org/freedesktop/network1
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
org.freedesktop.network1.Manager interface - - -
.OperationalState property s "carrier" emits-change
$ busctl introspect org.freedesktop.network1 /org/freedesktop/network1/link/1
NAME TYPE SIGNATURE RESULT/VALUE FLAGS
org.freedesktop.network1.Link interface - - -
.AdministrativeState property s "unmanaged" emits-change
.OperationalState property s "carrier" emits-change
commit 6a24f1484fcc1f59f89617afbe4282667a358eab
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Feb 4 10:08:12 2015 +0100
networkd: don't warn about missing links unnecessarily
If we get a NEWLINK + NEWADDR between enumerating the links and enumerating the addresses, we
would get a warning that the link corresponding to the address does not exist. This is a false
warning as both the NEWLINK and NEWADDR would be processed after enumerating completed, so drop
it.
commit 73432d67b590c8c8954cf2f8954d174a55d58c7b
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Feb 4 09:47:50 2015 +0100
networkd: log when finished enumerating links and addresses
commit dab2bce81ed3e97d059d56e66f560aa25d9c2d63
Author: Ivan Shapovalov <intelfx100 at gmail.com>
Date: Thu Feb 5 01:57:00 2015 +0300
systemctl: unit_find_paths(): unify error handling in two code pathes
commit 029009d4970b2871dafab5fcc9397abb335263c8
Author: Ivan Shapovalov <intelfx100 at gmail.com>
Date: Thu Feb 5 01:56:59 2015 +0300
systemctl: cat, edit: further polish error messages
commit 3e7eed8497098d1b09fd4ae1260c5242e16a8127
Author: Ivan Shapovalov <intelfx100 at gmail.com>
Date: Thu Feb 5 01:56:58 2015 +0300
systemctl: cat: fix error handling
- correctly check for local vs. remote transport
- return after receiving error from expand_names()
commit b5e6a600327d4e92c9fe62b9d51648a9d459871e
Author: Ivan Shapovalov <intelfx100 at gmail.com>
Date: Thu Feb 5 01:56:57 2015 +0300
systemctl: cat, edit: improve unit load error reporting
- report actual load error for units which could not be loaded
- make unit_find_paths() report all kinds of errors it encounters
(for consistency)
- consistently handle not-found errors in cat() and edit()
commit 5d7afd82a159f8a781594f5538b7af35dbb9cecc
Author: Bastien Nocera <hadess at hadess.net>
Date: Wed Feb 4 18:46:10 2015 +0100
hwdb: Bind "toolbox" buttons to the Windows key
One would expect pressing the button to go to an overview / show
applications mode, we thus map it to leftmeta, the Windows key.
See https://bugzilla.gnome.org/show_bug.cgi?id=658602#c17
commit efd51554aea0f226a7f6704a72aa6a3c9fc6cb2f
Author: Michael Biebl <biebl at debian.org>
Date: Wed Feb 4 21:31:26 2015 +0100
build-sys: mark systemd-firstboot man page as conditional
Rebuild Makefile-man.am accordingly.
commit 7e3254b3bae19221afefdb87b61ff92c755fd2f4
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Feb 4 17:00:23 2015 +0100
timesyncd: downgrade more log messages from LOG_INFO to LOG_DEBUG
https://bugs.freedesktop.org/show_bug.cgi?id=87505
Let's make timesyncd less chatty.
commit 2c9fc26670ef85a14d16a72bc16e7368f76c28f4
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Feb 4 10:24:02 2015 -0500
shared/capabilities: simplify assertions about bits
The assert added in 7d328b5446 was wrong. Also update the comments
and make sure we don't try to shift by type size.
commit 6295ba8c3d448d993d750c0cc0da44cca77480e7
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Feb 4 09:39:36 2015 -0500
shared/util: drop duplicate log2u64 function
commit 72b7d998059869942da8d540b7fe2c341225f91e
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Feb 4 09:35:37 2015 -0500
man: fix diagrams in bootup(7)
Fallout from 798d3a524e.
commit 7b5b3fc3ac34c3895e1ceb02f6a224b09a80427f
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Feb 4 14:46:40 2015 +0100
timesyncd: reduce log chattiness a bit
Let's downgrade the statistics output from LOG_INFO to LOG_DEBUG.
https://bugs.freedesktop.org/show_bug.cgi?id=88926
commit d0a0ccf3fecdb422d3fb7ab89646fe9042f11acd
Author: Jay Faulkner <jay at jvf.cc>
Date: Tue Feb 3 17:45:50 2015 -0800
nspawn: Allow module loading if CAP_SYS_MODULE is requested
nspawn containers currently block module loading in all cases, with
no option to disable it. This allows an admin, specifically setting
capability=CAP_SYS_MODULE or capability=all to load modules.
commit 057255fbbf2ecb1c46e025b04087fa9340d9880d
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Feb 4 09:23:24 2015 +0100
shared/capability: don't be too frugal on space for caps
We were dropping the most significant bit. Add an assert to make sure it does not happen again.
Fixes a bug introduced in 7d328b544621d4b1bec936dec612947ad8bfb65a.
commit 798d3a524ea57aaf40cb53858aaa45ec702f012d
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Feb 3 21:14:13 2015 -0500
Reindent man pages to 2ch
commit 35888b67f77fa7a5cae0973403cb97aa30cad70c
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Feb 2 20:28:39 2015 -0500
tmpfiles: fix compilation without acl support
commit 320814811417146cfa1e416f69f1101eed630c36
Author: Luke Shumaker <lukeshu at sbcglobal.net>
Date: Tue Feb 3 20:07:37 2015 -0500
cg_path_get_user_unit(): Did not correctly parse user-unit templates.
It ran either skip_session() or skip_user_manager(), then ran skip_slices()
iff skip_session() ran. It needs to run skip_slices() in either case.
Included is a test case demonstrating why.
commit 5e07a79e84ab8b045b9df1a2719f14fc84471a1d
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Feb 4 01:42:49 2015 +0100
core: don't reset log level to NOTICE if we get quiet on the kernel cmdline
quiet should really just have an effect on the stuff we dump on the
console, not what we log elsewhere.
Hence:
debug on kernel cmdline → interpreted by every tool, turns up
log levels to "debug" everywhere.
quiet on kernel cmdline → interpreted only by PID 1 (and
obviously the kernel) no alteration of the max log level, but
turns off status output.
http://lists.freedesktop.org/archives/systemd-devel/2014-December/026271.html
commit b9be39bfb4ed8e43a7c445831131e44be998eb32
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Feb 4 01:42:46 2015 +0100
update TODO
commit d831deb512ab1d11aab156f69620db506c554170
Author: Chris J Arges <chris.j.arges at canonical.com>
Date: Tue Feb 3 17:56:06 2015 -0600
virt: add detect_vm_devicetree for powerpc arches
Check sysfs devicetree values in order to detect if we are running on a KVM
hypervisor on a powerpc architecture.
commit 5fae368bda9419d9d378ea32077c8fd183dd4b81
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Feb 3 15:44:50 2015 +0100
networkd: refactor socket activation a bit
commit 760f409a4add18e1b6ca773c2ccab01162885b9f
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Feb 3 21:33:04 2015 +0100
sd-rtnl: allow sd_rtnl_open_fd() to be used on bound sockets
commit 9c0a72f961e00b0447767973e7117e131bea5b5d
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Feb 3 15:44:12 2015 +0100
networkd: handle suspend events
commit 4cd552bc502077f2626b07b8aa0706c3fb6c7f56
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Tue Feb 3 21:35:14 2015 +0100
partial revert of fed6df8
This one was acutally used to free xattr
commit 261420ba2a20305ad271b6f5f380aa74c5c9dd50
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Feb 3 19:07:40 2015 +0100
core: open up DefaultDependencies= property for transient units
commit d69a7ceaed77992105342a056fe68769c2e6d3bd
Author: Johannes Hölzl <johannes.hoelzl at gmx.de>
Date: Tue Feb 3 18:53:31 2015 +0100
core: busname_supported() should cache what it detects
Add the missing "static" to actually make this a cache.
commit 3b97fcbd28f92a1e51887fef5de8844a89bde523
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Feb 3 18:17:00 2015 +0100
journald: fix some xsprrintf() buffer size fallout
commit 86caf09519c702f38552ba4f789b55a562fc29c5
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Feb 3 18:16:35 2015 +0100
core: use some nice macros where appropriate
commit c05482281c32bd408808b14c5fb03e706e65602d
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Feb 3 18:16:17 2015 +0100
update TODO
commit 2aeed6760e9759d95418bdb2e80d0032ffcb768e
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Feb 3 14:08:56 2015 +0100
update TODO
commit 8f084002eaf43e535f3697a31aeffb14946f9ab2
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Feb 3 13:53:01 2015 +0100
loopback-setup: simplify code a bit
commit 9ca903cceb9b0c9148e3050e800b3f422ab6aab8
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Feb 3 13:48:15 2015 +0100
loopback-setup: no need to redefine LOOPBACK_IFINDEX, we already have it in missing.h
commit e5f774df567952786e6ded933f2a34c430a33b23
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Feb 3 11:46:25 2015 +0100
update TODO
commit b6f0c419e38a960873fe68bf8f89bbb0268eed02
Author: Harald Hoyer <harald at redhat.com>
Date: Tue Feb 3 10:43:24 2015 +0100
test-functions: search for the initrd and kernel according to the BLS
Also search for the initrd and kernel according to the boot loader
specification.
commit edbced8a151c1b7ded685e2ec644950d2adec5f5
Author: Harald Hoyer <harald at redhat.com>
Date: Tue Feb 3 10:44:27 2015 +0100
test-functions: use sfdisk without cyl,head,sectors
newer sfdisk implementations do not work with these anymore
commit 99877b7e3782a51b31bf191825f0335500f52fe5
Author: Harald Hoyer <harald at redhat.com>
Date: Tue Feb 3 10:45:25 2015 +0100
test-functions:install_libnss() call dracut_install with all $NSS_LIBS
dracut_install() can cope with more than one file
commit 7d023341c765c205068e33d23d63a4000ec211df
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Mon Feb 2 00:19:33 2015 +0100
tests: install ldconfig.real for Debian based distros
In Debian based distributions ldconfig is just a shell wrapper around
ldconfig.real, for deferring it during package installation.
commit c50a4525aa8151b180d5a325e88c5f3812e66c36
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Mon Feb 2 00:19:32 2015 +0100
tests: install hostname debug tool
This is mostly a vehicle to pull in libnsl.so which gets dlopen()ed by NSS
under certain NSS configurations.
commit cffae62bcb6912fbaf1b7b282d9d170c9d308897
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Mon Feb 2 00:19:31 2015 +0100
tests: install all required libnss modules
Don't assume "files" for everything in nsswitch. Instead, ask "getent passwd"
about which libnss modules it dlopen()s, and install these.
commit 53d90f9582f96208b3674da823ad1a3d2c3b1aa4
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Mon Feb 2 00:19:30 2015 +0100
tests: don't hardcode systemctl path
Get it from type -P instead, to support --enable-split-usr.
commit 3486cb6cfa3d32a95c0daf02c7510fdf372507bf
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Mon Feb 2 00:19:29 2015 +0100
tests: determine rootlibdir from pkg-config
Prefer asking pkg-config for the rootlibdir, to also support systems with
--enable-split-usr. Fall back to the hardcoded /usr/lib/systemd if that fails.
commit 4be4833ece2856e0cacc09f8f8b2c02b320751fa
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Mon Feb 2 00:19:28 2015 +0100
tests: Make sushell optional in image creation
sushell does not exist in all distributions, and it can be changed with
configure --with-debug-shell, so make installation of it optional.
commit 36c957959dc11ae7176c5ed07a03ca370014899b
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Feb 2 22:59:22 2015 -0500
build-sys: distribute systemd-networkd.socket
commit 6cb8e687f038424ef54b5c5c3c433be974fbe371
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Feb 2 21:32:28 2015 -0500
network-address,test-network: avoid undefined behaviour
commit c1d630d5fd3c0b3307811d51f9840652e066a0f2
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Feb 2 14:51:31 2015 -0500
shared/async: simplify asynchronous_job a bit
commit 374c22b351e43ce4ef70ef0ad1bd1e4e520f9a28
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Feb 2 14:50:56 2015 -0500
test-dhcp-client: add a kludge to make valgrind happy
commit fe0885f8ce0f49c8d7496344c39abbebc46c6155
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Feb 2 14:46:40 2015 -0500
test-dhcp-client: open a real udp socket for test execution
./test-dhcp-client would attempt to operate fd 0, i.e. stdin.
For example, './test-dhcp-client </dev/null' would fail with EPERM
because /dev/null cannot be used with epoll.
https://bugzilla.redhat.com/show_bug.cgi?id=1076119
commit e0ec8950935ce587935e299c22232fbf4a2664c9
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Feb 3 02:07:59 2015 +0100
update TODO
commit 63c372cb9df3bee01e3bf8cd7f96f336bddda846
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Feb 3 02:05:59 2015 +0100
util: rework strappenda(), and rename it strjoina()
After all it is now much more like strjoin() than strappend(). At the
same time, add support for NULL sentinels, even if they are normally not
necessary.
commit 44de0efc6e406515fc1cf8b95d9655d0d7f7ffff
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Feb 2 23:21:20 2015 +0100
networkd: minor simplification
Let's return the fd we found as return value in systemd_netlink_fd(),
instead of using call-by-reference.
commit fed6df828d86c053a96d5b50af75c53eb8dd4666
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Mon Feb 2 22:56:44 2015 +0100
remove unused variables
commit 73cb77549536deab85d8d1261b5381e87d80ab23
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Feb 2 21:54:23 2015 +0100
update TODO
commit 75f709fbf284041d951717cfb3bf6304db0fa7c9
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Feb 2 21:34:32 2015 +0100
units: so far we defaulted to 90s as default timeout for most things, let's do so for our oneshot services too
Fewer surprises, and stuff...
commit 7a7d5db71f12ae6f3c055b88a85f6bc9305ea1c4
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Feb 2 21:34:09 2015 +0100
tmpfiles: let's always use DEFINE_PRIVATE_STRING_TABLE_LOOKUP_TO_STRING() instead of defining our own string tables
commit babc21fdc0c309e3f397fdb57fb3038b5bef654a
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Feb 2 21:28:33 2015 +0100
time-util: let's make xstrftime() useful for everybody, even if we only have a single user so far.
commit b7ce6b592d8908d378904323a4a6670bfe0b7ab1
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Feb 2 21:28:19 2015 +0100
macro: document that DECIMAL_STR_MAX contains space for the trailing NUL byte
commit 6e1bf7ab998e30b23202192b5b47c119e7a3697d
Author: Sebastien Bacher <seb128 at ubuntu.com>
Date: Mon Feb 2 15:48:40 2015 +0100
bootchart: Ensure that systemd is the init called after using bootchart
When booting with systemd-bootchart, default to call the systemd binary
rather than the init binary on disk, which might be another init system.
Collecting data only works with booting systemd.
commit bca81be7755d15e7369d764bfa94a7ca6c595c76
Author: Topi Miettinen <toiwoton at gmail.com>
Date: Sun Feb 1 08:49:02 2015 +0200
backlight: let udev properties override clamping
On my computer, the minimum brightness enforced by clamping in
backlight is too bright.
Let udev property ID_BACKLIGHT_CLAMP control whether the brightness
is clamped or not.
commit 3f4d56a069d8aedc0a784b6f4a2c049db76289b7
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Mon Feb 2 16:53:39 2015 +0100
cryptsetup: only warn on real key files
Simplify the check from commit 05f73ad to only apply the warning to regular
files instead of enumerating device nodes.
commit d109a95f3d7f8c5c50d6fd48221791fcc98b4544
Author: Sangjung Woo <sangjung.woo at samsung.com>
Date: Mon Feb 2 20:25:02 2015 +0900
tmpfiles: Remove unnecessary blank line when configured with "--disable-resolved"
This patch removes unnecessary blank line in
/usr/lib/tmpfiles.d/etc.conf when configured with "--disable-resolved".
(i.e. ENABLE_RESOLVED is not defined)
commit 84bef24dd3ad050bab8ecdcd130d0d9794005fa0
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Feb 2 16:43:00 2015 +0100
update TODO
commit 05f73ad22b85270c7db4ff7cbb6da852ad71d4c1
Author: Cristian Rodríguez <crrodriguez at opensuse.org>
Date: Mon Feb 2 12:06:05 2015 -0300
cryptsetup: Do not warn If the key is /dev/*random
Using /dev/urandom as a key is valid for swap, do not
warn if this devices are world readable.
commit 5544ee85163733eaa50f598fcf3bd9421d4a42f9
Author: Tom Gundersen <teg at jklm.no>
Date: Sun Feb 1 22:13:26 2015 +0100
networkd: support socket activation
Still keep the non-socket activation code around for starting from the commandline, but
will likely drop that too in the future.
commit a9944163fe5600bce85898dae78cd68442a6ff7c
Author: Tom Gundersen <teg at jklm.no>
Date: Sun Feb 1 22:12:33 2015 +0100
sd-rtnl: introduce sd_rtnl_new_from_netlink
commit e56cdb7ae2657d62c9a8b6d3427382b209dff8e7
Author: Tom Gundersen <teg at jklm.no>
Date: Sun Feb 1 21:04:35 2015 +0100
networkd-wait-online: add timeout
Default to timing out after 120 seconds without a network connection. Setting a
timeout of 0 disables the timeout.
commit c4f1aff2306e4fb10efeda75f7015e5d043d4e8d
Author: Tom Gundersen <teg at jklm.no>
Date: Sun Feb 1 18:06:40 2015 +0100
sd-event: treat NULL callback for timer events like sig events
In both cases exit the event loop.
commit 5d8689d749ffc50ade3d5c8598c1d3d11f5240f2
Author: Tom Gundersen <teg at jklm.no>
Date: Sun Feb 1 15:13:17 2015 +0100
networkd-wait-online: support globbing for ignored devices
commit 3cc711193df8f11daf30c918ec2dc4c0bfe04715
Author: Marcel Holtmann <marcel at holtmann.org>
Date: Mon Feb 2 09:18:28 2015 +0100
hwdb: Update database of Bluetooth company identifiers
commit 74a6d87d0cd1f2213869e168b6ca55eded6f4ae8
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Feb 1 16:05:56 2015 -0500
man: switch yum to dnf for Fedora
The dnf name is here to stay, we might as well adjust.
commit 7d328b544621d4b1bec936dec612947ad8bfb65a
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Feb 1 15:26:46 2015 -0500
shared/capability: go frugal on space for caps
commit 51ddf61540976fc7b09ce5ace707b27f3acc3871
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Feb 1 14:33:10 2015 -0500
Fix dropping of all capabilities
From fd.o bug 88898:
systemd-resolved fails to start:
Failed to drop capabilities: Operation not permitted
Broken in f11943c53ec181829a821c6b27acf828bab71caa.
Drop all capabilities:
1. prctl(PR_SET_KEEPCAPS, keep_capabilities != 0) // 0 when we drop all
capabilities
2. setresuid() // bye bye capabilities
3. Add CAP_SETPCAP // fails because we have no capabilities
4. Reduce capability bounding set
5. Drop capabilities
6. prctl(PR_SET_KEEPCAPS, 0)
Capabilites should always be kept after setresuid() so that the capability
bounding set can be reduced.
Based-on-a-patch-by: mustrumr97 at gmail.com
https://bugs.freedesktop.org/show_bug.cgi?id=88898
We must be careful not to leave PR_SET_KEEPCAPS on. We could use the
setresuid() call to drop capabilities, but the rules when capabilities
are dropped are fairly complex, since a transition to non-zero uid must
happen. Let's instead keep the capabilities during setresuid(), and drop
them later.
commit 615938651d3a4fd9253b08da00db22d451a8cef8
Author: Michael Olbrich <m.olbrich at pengutronix.de>
Date: Fri Jan 30 09:49:55 2015 +0100
config_parse_set_status: put signals in the correct set
This was broken when the code was rearranged in "1e2fd62d70ff
core/load-fragment.c: correct argument sign and split up long lines"
commit 5ffa8c818120e35c89becd938d160235c069dd12
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Jan 27 08:00:11 2015 -0500
Add a snprinf wrapper which checks that the buffer was big enough
If we scale our buffer to be wide enough for the format string, we
should expect that the calculation was correct.
char_array_0() invocations are removed, since snprintf nul-terminates
the output in any case.
A similar wrapper is used for strftime calls, but only in timedatectl.c.
commit 294929f8916ca37d89ccb1757868d22f8068c56b
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Feb 1 12:29:27 2015 -0500
tmpfiles: accurately report creation results
commit 612532206c531ab2aafd398338d5dd44cb6d3553
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Jan 31 01:03:09 2015 -0500
tmpfiles: remove dead branch
In the test, p is a path to a directory, always absolute. dent->d_name
is a single path component, so they cannot be equal. The comparison
was wrong also for other reasons: D type supports globs, so direct
comparisons using streq are not enough.
commit 0775b9b61120f8be99cd45a7df907b828188cb47
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jan 30 23:54:21 2015 -0500
units: set TimeoutSec on some oneshot services
Services which are not crucial to system bootup, and have Type=oneshot
can effectively "hang" the system if they fail to complete for whatever
reason. To allow the boot to continue, kill them after a timeout.
In case of systemd-journal-flush the flush will continue in the background,
and in the other two cases the job will be aborted, but this should not
result in any permanent problem.
commit a3bd89ea99214db7ca2ad6ae59181d5119a54f09
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Jan 31 23:03:25 2015 -0500
core/cgroup: fix embarrassing typo
https://github.com/docker/docker/issues/10280
commit afa3509a4f4438a869725dae1d6a6f20dc0182f3
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Jan 31 12:25:12 2015 -0500
test-dhcp-client: remove linebreak
commit 2d9079c2173e95a06853ebea5ed6bbe4b7e3917a
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Jan 31 15:27:49 2015 +0100
TODO
commit d4cdbea5550ae9defa1c731ffe091837d329fec7
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Jan 30 19:54:01 2015 +0100
networkd: dhcp-server - start as soon as addresses have been set
We would otherwise wait for the interface to be completely configured, which
could take considerable time with IPv4LL. As a result nspawn was very slow
at obtaining IP addresses.
commit 79b1f37d95f08fe7620b071eec51d2810ed077c9
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Jan 29 07:34:34 2015 +0100
networkd-wait-online: allow specific devices to be ignored
In addition to the loopback device, also explicitly configured devices to be ignored.
Suggested by Charles Devereaux <systemd at guylhem.net>.
commit 233ba5c3a0f73e01fe6149fd8c377826a83c2a0a
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Jan 29 07:26:58 2015 +0100
sd-rtnl: don't fail event handler when callback fails
As in sd-bus, simply log at debug level when a callback fails, but don't fail the event handler.
Otherwise any error returned by any callback will disable the rtnl event handler. We should
only do that on serious internal errors in sd-rtnl that we know cannot be recovered from.
commit 81f5fc2d43800c23a4440ed94cfe38d579e896fe
Author: Maxim Mikityanskiy <maxtram95 at gmail.com>
Date: Thu Jan 29 01:23:07 2015 +0100
core: make setting the shutdown watchdog configuration via dbus work
https://bugs.freedesktop.org/show_bug.cgi?id=88284
commit 954871d8ba15911d014f76ed2c7a9492953cf39d
Author: Kay Sievers <kay at vrfy.org>
Date: Fri Jan 30 13:53:45 2015 +0100
Revert "sd-bus: change serialization of kdbus messages to qualify in their entirety as gvariant objects"
This breaks booting with kdbus.
This reverts commit b381de4197157748ed96e469fcc372c23f842ae1.
commit 82c28f5621ad80585eb6c232a988af955a07060c
Author: Kay Sievers <kay at vrfy.org>
Date: Fri Jan 30 10:59:47 2015 +0100
Revert "core: make setting the shutdown watchdog configuration via dbus work"
This reverts commit df6e44c4affced590b0d19c594d9301ffd436591.
systemd --version segfaults.
Starting program: /usr/lib/systemd/systemd --version
Missing separate debuginfos, use: debuginfo-install systemd-216-16.fc21.x86_64
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
systemd 218
+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN
Program received signal SIGSEGV, Segmentation fault.
0x000055555557c9be in main (argc=2, argv=0x7fffffffe4d8) at src/core/main.c:1832
1832 arg_shutdown_watchdog = m->shutdown_watchdog;
(gdb) bt
(gdb) bt full
m = 0x0
commit b4f91f2ba354c16dc23111cc231010c975c717a2
Author: Carlos Morata Castillo <cmc809 at inlumine.ual.es>
Date: Sat Jan 10 02:08:21 2015 +0100
Updates in bash autocompletions
Hi,
I did ./check-undocumented.sh -b (my script just submitted) and checked
the results.
Cheers.
commit 001a247324b44c0e0b8fdba41a6fc66e7465b8b6
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date: Wed Jan 28 14:05:01 2015 +1000
hwdb: add a touchpad hwdb
Currently used to tag devices in the new Lenovo *50 series and the X1 Carbon
3rd. These laptops re-introduced the physical trackpoint buttons that were
missing from the *40 series but those buttons are now wired up to the
touchpad.
The touchpad now sends BTN_0, BTN_1 and BTN_2 for the trackpoint. The same
button codes were used in older touchpads that had dedicated scroll up/down
buttons. Input drivers need to work around this and thus know what they're
dealing with.
For the previous gen we introduced INPUT_PROP_TOPBUTTONPAD in the kernel, but
the resulting mess showed that these per-device quirks should really live in
userspace.
The list currently includes the X1 Carbon 3rd PNPID, others will be added as
get to know which PNPID they have.
commit 3e495a6651609d0a45b62aab5c3ed5a3b40e11ab
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Jan 28 21:30:06 2015 -0500
systemctl: refuse --host with cat
This might be fixed one day, but for now it's better to fail.
https://bugzilla.redhat.com/show_bug.cgi?id=1186952
commit 590ba75f32ef6557f57ddfd8e8bebea452bc0b7e
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 29 03:43:34 2015 +0100
update TODO
commit ebb90c83ea24548b2ad9450a0b96622b5911e4cd
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date: Thu Jan 29 11:51:05 2015 +1000
Fix ordering of the 70-mouse.rule in the Makefile
commit f11943c53ec181829a821c6b27acf828bab71caa
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 29 02:47:29 2015 +0100
coredump: drop caps while we are processing the coredump
https://bugs.freedesktop.org/show_bug.cgi?id=87354
commit 9e8abdf0d9f0fa11fbceb02dfd36252bd32a534e
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 29 02:10:15 2015 +0100
Revert "journal: do not check for number of files"
This reverts commit b914ea8d379b446c4c9fac4ba181771676ef38cd.
We really need to put a limit on all our resources, everywhere, and in
particular if we operate on external data.
Hence, let's reintroduce the limit, but bump it substantially, so that
it is guaranteed to be higher than any realistic RLIMIT_NOFILE setting.
commit 6c2b9c8da1eb1bac7e8f170b913f63dbd13a16d7
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 29 01:40:48 2015 +0100
man: turn new netdev table into a proper table
commit df6e44c4affced590b0d19c594d9301ffd436591
Author: Maxim Mikityanskiy <maxtram95 at gmail.com>
Date: Thu Jan 29 01:23:07 2015 +0100
core: make setting the shutdown watchdog configuration via dbus work
https://bugs.freedesktop.org/show_bug.cgi?id=88284
commit fc07d5d3a982e59d984d6be54342a18028faf7be
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Jan 28 21:31:47 2015 +0100
man: netdev - add some minimal explanation to the different netdev kinds and modes
Would be awesome to expand on this a lot, as there is currently no decent documentation for most of these things.
commit 73b23bea8666f9c6d01d595ebbdbf7e78680c0ea
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Jan 28 17:32:50 2015 +0100
networkd: tunnel - call tunnel modes ipip6, not ip4ipv6 to match ip(8)
commit be94d95499bf9c63fe9331e9b9ecc64f32fe9d79
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Wed Jan 28 18:14:01 2015 +0100
logind: handle closing sessions over daemon restarts
It may happen that you have several sessions with the same VT:
- Open a session c1 which leaves some processes around, and log out. The
session will stay in State=closing and become Active=no.
- Log back in on the same VT, get a new session "c2" which is State=active and
Active=yes.
When restarting logind after that, the first session that matches the current
VT becomes Active=yes, which will be c1; c2 thus is Active=no and does not get
the usual polkit/device ACL privileges.
Restore the "closing" state in session_load(), to avoid treating all restored
sessions as State=active. In seat_active_vt_changed(), prefer active sessions
over closing ones if more than one session matches the current VT.
Finally, fix the confusing comment in session_load() and explain it a bit
better.
https://launchpad.net/bugs/1415104
commit 40672b99c7da7efd317fc31612504fe7d5ab0b65
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 28 17:48:05 2015 +0100
util: add comment explaining hostname_is_valid()
commit 477e75ef9ea6bb2e7e8cc76278c442942110f227
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 28 17:48:01 2015 +0100
update TODO
commit f50f01f4b738f2f00b30d0e02e8cf54ab99a9f27
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 28 17:47:37 2015 +0100
sd-dhcp: chop of trailing dot of DHCP supplied host and domain nams
commit 3b48ce4ec4639437ca3db344962ed37b0c83ea9a
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Wed Jan 28 13:57:47 2015 +0100
rules: clean up stale CD drive mounts after ejection
Ejecting a CD with the hardware drive button only causes a change uevent, but
the device node stays around (just without a medium). Pick up these uevents and
mark the device as SYSTEMD_READY=0 on ejection, so that systemd stops the
device unit and consequently all mount units on it.
On media insertion, mark the device as SYSTEMD_READY=1 again.
https://bugs.freedesktop.org/show_bug.cgi?id=72206
https://bugzilla.opensuse.org/show_bug.cgi?id=909418
https://bugs.archlinux.org/task/42071
https://bugs.launchpad.net/bugs/1168742
commit 06e97888883e2cc12eb6514e80c7f0014295f59b
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Wed Jan 28 13:53:25 2015 +0100
core/mount: add dependencies to dynamically mounted mounts too
Add unit dependencies for dynamic (i. e. not from fstab) mounts. With that,
mount units properly bind to their underlying device, and thus get
automatically stopped/unmounted when the underlying device goes away.
This cleans up stale mounts from unplugged devices.
Thanks to Lennart Poettering for pointing out the fix!
commit 3315f085178f46155fda345d9526c09083b45946
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 28 15:11:49 2015 +0100
sysv-generator: no need to check for identical symlinks source and target twice
http://lists.freedesktop.org/archives/systemd-devel/2015-January/027594.html
commit 82a2b6bb5e4e5d294f09af778c48974a7857afb6
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 28 15:07:13 2015 +0100
core: output unit status output strings to console, only if we actually are changing unit state
Unit _start() and _stop() implementations can fail with -EAGAIN to delay
execution temporarily. Thus, we should not output status messages before
invoking these calls, but after, and only when we know that the
invocation actually made a change.
commit 3ad85e3775d018f32098a2957ce25e1f53440da1
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 28 14:22:13 2015 +0100
test: duplicate LIST_FOREACH_OTHERS test to check for corner cases of end and start of list
commit cdda4aa8d20c2679cc937d40e793abe7806f17cb
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 28 14:03:31 2015 +0100
list: properly skip over first item in LIST_FOREACH_OTHERS
commit d1f6b1b455cd15dec3948267d5fff570d5597309
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 28 14:03:24 2015 +0100
manager: fix minor typo
commit 40780877c19ef408da8ab21f4156cfc153f94b5c
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Wed Jan 28 08:00:28 2015 +0100
sysv-generator: Re-fix .sh suffix handling
Commit 4e48855534 caused the .sh suffix to be stripped from the original
"filename", which caused the generated units to call the wrong init.d script.
Only use the .sh stripped file name for comparing with Provides:, not for
generating the Exec*= lines.
Spotted by sysv-generator-test.
commit 78eb158a20e2bee772f6e49d8b432b98f68cbb55
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Jan 27 21:22:26 2015 -0500
build-sys: add check for --help width
commit b57b06258e0b1894edb6d1fc52a80b3c33164892
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Jan 27 21:22:57 2015 -0500
notify,firstboot,analyze,run: trim --help output to 80 lines
commit 79ca888f5ad026b5b3844c05a80401905e64e2f0
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Jan 27 21:22:08 2015 -0500
tmpfiles: fix help text
The help text, apart from being too long, did not describe what the options
really do.
commit 6bf12f55aff33a588a1945d9d06aa31c164984fd
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 28 03:21:56 2015 +0100
build-sys: make xz and zlib build-time optional again
commit 5eeac515bf234a111f0e37355893dfb96926f676
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 28 02:33:22 2015 +0100
man: document the new Ctrl-Alt-Del magic
commit a626df3efd908b6d868d49207905bdd5162e5609
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 28 02:26:03 2015 +0100
manager: when we immediately reboot due to 7x C-A-D within 2s, mention this on the console too
commit 4b42934665bf14055c82e9ea73b0cb450b3bc467
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 28 02:22:19 2015 +0100
update TODO
commit 2e5c94b9aaefce46835b623e800cfc168995ea3f
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 28 02:18:59 2015 +0100
core: when the user hits Ctrl-Alt-Del more than 7x per 2s, reboot immediately
This should be useful for cases where clean rebooting doesn't work, and
the user wants to hurry up the reboot.
commit a986501b9059b72e8deced262554fbdd1ab9da17
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 28 01:36:40 2015 +0100
sysv-generator: there's really no need to invoke fstatat() multiple times on the same sysv script
It's sufficient to check once if something is a regular file, hence,
let's do that.
commit 7dfb0404b3b6882d582a571f61a52b2f56961675
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 28 01:02:36 2015 +0100
update TODO
commit 37cf8fee46025d704660a9fc1d1349fe7d0b139d
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 28 00:38:38 2015 +0100
core: if two start jobs for the same swap device node are queued, only dispatch one of them at a time
If two start jobs for two seperate .swap device nodes are queued, which
then turns out to be referring to the same device node, refuse
dispatching more than one of them at the same time.
This should solve an issue when the same swap partition is found via GPT
auto-discovery and via /etc/fstab, where one uses a symlink path, and
the other the raw devce node. So far we might have ended up invoking
mkswap on the same node at the very same time with the two device node
names.
With this change only one mkswap should be executed at a time. THis
mkswap should have immediate effect on the other swap unit, due to the
state in /proc/swaps changing, and thus suppressing actual invocation of
the second mkswap.
http://lists.freedesktop.org/archives/systemd-devel/2015-January/027314.html
commit caac2704d57ef6d95f7053456479353bae3638de
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 28 00:37:11 2015 +0100
swap: simplify a few things by making use of new LIST_FOREACH_OTHERS macro
commit 7663df377016cf7b95001aec893006647175ae4a
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 28 00:34:58 2015 +0100
list: add macro for iterating through a list an item is in, skipping the item
commit 976dec6e7b2d193533191be2969dd4eee95fc6bb
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 28 00:04:47 2015 +0100
swap: properly specify errno when logging
commit 9993ef2e9817b35b1d467707bef12b2a140b62dc
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 27 23:13:28 2015 +0100
sysv-generator: use is_symlink() utility call where appropriate
commit 4e4885553447f6f4c014bfa3e5b5837a76a0e612
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 27 23:11:01 2015 +0100
sysv-generator: minor simplifications
commit d44efb621acfbd09973b7e63246536fd53405d4e
Author: Christian Seiler <christian at iwakd.de>
Date: Tue Jan 27 17:38:02 2015 +0100
man: systemd.service(5): add some simple examples
Add a couple of exampels, at least one for each service type that
include some explanations and pointers to various relevant options.
commit 92b1e2256a3aca86a49ee5961cde9b8d27c0e0f0
Author: Christian Seiler <christian at iwakd.de>
Date: Sat Jan 24 14:04:03 2015 +0100
man: systemd.unit(5): add examples for common tasks
Add examples for (a) how to allow units to be enabled and (b)
overriding vendor settings to the man page.
commit 11c6476a08af7a8a9ae6a2d0f8370587f7b31663
Author: Christian Seiler <christian at iwakd.de>
Date: Tue Jan 27 18:58:40 2015 +0100
logind: chown+chmod /run/user/$UID if mount(tmpfs) fails with EPERM
In containers without CAP_SYS_ADMIN, it is not possible to mount tmpfs
(or any filesystem for that matter) on top of /run/user/$UID.
Previously, logind just failed in such a situation.
Now, logind will resort to chown+chmod of the directory instead. This
allows logind still to work in those environments, although without the
guarantees it provides (i.e. users not being able to DOS /run or other
users' /run/user/$UID space) when CAP_SYS_ADMIN is available.
commit 4d858e7d9f39038713f760d7acc64acf7bba2aa7
Author: Christian Seiler <christian at iwakd.de>
Date: Fri Jan 23 15:26:18 2015 +0100
logind: remove per-user runtime dir again if setup fails
If setup of per-user runtime dir fails, clean up afterwards by removing
the directory before returning from the function, so we don't leave the
directory behind.
If this is not done, the second time the user logs in logind would
assume that the directory is already set up, even though it isn't.
commit e611755d98ac6b213f39426359c3a94defc6a029
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 27 18:29:33 2015 +0100
man: mention that 99-default.link is shipped by default, and users hence need to install a lexically earlier .link file for it to be honoured
commit 2bc39683c0cada86c9dc39e5f3d0ea475cf12e57
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 27 14:31:29 2015 +0100
update TODO
commit 831f18cbf3f250207fcde15ea736639898317d77
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 27 17:24:11 2015 +0100
build-sys: make bzip2 really optional
commit 0ef403877a2257199ef22af5e217831d03eae8af
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 27 14:30:52 2015 +0100
units: turn on watchdog for resolved
commit e87bc3ef67a892e2b3dba753190675e5f9b592b5
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 27 14:28:45 2015 +0100
units: fix all TTY paths for container gettys
Spotted by Christian Seiler:
http://lists.freedesktop.org/archives/systemd-devel/2015-January/027441.html
commit c62c4628d9dbc27effd36143c75abe528f561867
Author: Patrik Flykt <patrik.flykt at linux.intel.com>
Date: Tue Jan 20 19:36:04 2015 +0200
networkd-dhcp6: Assign DHCPv6 addresses and prefix lengths
Once IPv6 addresses have been acquired, assign these to the interface
with the prefix lengths taken from the ICMPv6 Router Advertisement
handling code. The preferred and valid IPv6 address lifetimes are
handed to the kernel which will clean up them if not renewed in time.
When a prefix announced via Router Advertisements expires, find all
addresses that match that prefix and update the address to have a
prefix length of 128 causing the prefix to be off-link.
commit bd1957e906fbf92fca6c97bc6cadcf89248d2419
Author: Patrik Flykt <patrik.flykt at linux.intel.com>
Date: Tue Jan 20 19:36:03 2015 +0200
sd-icmp6-nd: Add support for fetching the latest expired prefix
Keep the expired prefix for the duration of the prefix expiration event
and remove it afterwards.
commit 99af546d0ee63ac4af3f234a448d4a3b7bdcfab4
Author: Patrik Flykt <patrik.flykt at linux.intel.com>
Date: Tue Jan 20 19:36:02 2015 +0200
test-icmp6-nd: Add test cases for prefixes
Add test cases that feeds an Router Advertisement to the ICMPv6 code
and verify that the correct prefix lengths are returned given an IPv6
address.
Enhance the prefix verification test by adding a shorter prefix and
check that the intended prefix lengths are now updated.
commit d77bde34cfcf91246a075fd47919294894bf6f8a
Author: Patrik Flykt <patrik.flykt at linux.intel.com>
Date: Tue Jan 20 19:36:01 2015 +0200
sd-icmp6-nd: Parse ICMPv6 prefix information
Save each new onlink IPv6 prefix and attach an expiry timer to it.
If the prefixes overlap, take the shorter prefix and write a debug
message about the event. Once the prefix is resent in a Router
Advertisement, update the timer. Add a new event for the expiring
prefix.
Add two helper functions, one for returning a prefix length given a
Router Advertisement and the other for generic prefix matching given
an IPv6 prefix and address.
commit 8d7f2c6a47db4bdb753b9d523d3bcb1105827991
Author: Patrik Flykt <patrik.flykt at linux.intel.com>
Date: Tue Jan 20 19:36:00 2015 +0200
test-icmp6-rs: Add trivial test case for an MTU that is not present
commit d14b5bc621fc1fa57ef0db3ccba6957efed8e7d4
Author: Patrik Flykt <patrik.flykt at linux.intel.com>
Date: Tue Jan 20 19:35:59 2015 +0200
sd-icmp6-nd: Add helper function to get the IPv6 link MTU
Update MTU according to the latest value received.
commit 5624c4801e6281189a876fb2bdd65ff276cae514
Author: Patrik Flykt <patrik.flykt at linux.intel.com>
Date: Tue Jan 20 19:35:58 2015 +0200
sd-icmp6-nd: Add link and prefix structures for ICMPv6
Each ICMPv6 structure has an interface index and will therefore be
associated with an IPv6 link containing a list of of prefixes.
commit 09667885bad3a8cb7f1a002766f9e59140775526
Author: Patrik Flykt <patrik.flykt at linux.intel.com>
Date: Tue Jan 20 19:35:57 2015 +0200
sd-icmp6-nd: Update Router Advertisement handling
As the IPv6 prefixes are needed, update the ICMPv6 Router Advertisement
code to dynamically allocate a suitably sized buffer. Iterate through
the ICMPv6 options one by one returning error if the option length is
too big to fit the buffer.
commit e7504d95479455be5cef120fc8e0a48fd74ad5ca
Author: Patrik Flykt <patrik.flykt at linux.intel.com>
Date: Tue Jan 20 19:35:56 2015 +0200
sd-dhcp6-lease: Revise address iteration functions
Revise the address iteration functions so that one helper function
resets the iterator to the start of the address list while the
second one fetches addresses one by one.
The test case is also updated.
commit 2a481c84561d6c8ce37d75cc334f7c149ffb2bb9
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jan 26 23:19:14 2015 -0500
compile-unifont: Python 2 compatibility
Under Python 2, sys.stdout.buffer is missing.
commit 10bc4cd469fc677892b07748ec85804ca120825f
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jan 26 19:12:56 2015 -0500
build-sys: unbundle unifont
We should prefer the unifont.hex file from the system, instead of our
own. Upstream has made a few releases since our version was included,
and we should follow upstream changes. But adding 2.6MB to our source
repo every time upstream releases is not nice.
commit 4a84f3e61434cdc52f91477d7fd937600159e4f1
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jan 26 18:12:45 2015 -0500
TODO: remove laccess conversion
I looked over all access invocations, and I think are using access()
correctly. Accepting dangling symlinks makes sense only in special
circumstances.
So far we do not allow "flag" files like "/fastboot" to be dangling
symlinks. We could, but I don't see a reason to.
commit 687f6a0ba77872299b9fb1f2f04d31c977088a63
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 27 02:36:40 2015 +0100
update TODO
commit 7e26029ff36d6112bd8c3273327c97708f9ee61e
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 27 02:33:46 2015 +0100
timesyncd: set RLIMIT_NPROC to 2
This way timesyncd cannot be used to fork().
Note that it generally is not safe to use RLIMIT_NPROC, since it breaks
running the same daemon in multiple containers if they do not use user
namespacing. However, timesyncd is excepted from running in a container
anyway, hence it is safe in this case.
commit c51cbfdcc7f38438553e4c2c60499f6aea7cc504
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 27 02:19:33 2015 +0100
man: document that ProtectSystem= also covers /boot
commit 297d563de43167f21510061d2de55979a4d65ac4
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 27 01:47:37 2015 +0100
core: explain why failing to set up the crash handler is not a real problem
http://lists.freedesktop.org/archives/systemd-devel/2015-January/027428.html
commit 31a11e8f30449a81867e8fd081e3e76cf6664bb4
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 27 01:28:53 2015 +0100
update TODO
commit 6b321a790142449e0cf3685ffa5294e147d692f7
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jan 26 07:34:32 2015 +0100
system-update-generator: accept a dangling symlink
The offline update mechanism is explicitly designed to work with a
separate /var. systemd-update-generator is supposed to run early,
before filesystems are mounted, so it cannot check if the
/system-update symlink actually points to anything.
The update is run *after* filesystems are mounted, so it should be
able to access the target of the symlink without trouble.
https://bugzilla.redhat.com/show_bug.cgi?id=1178978
commit 7fd68245a1778e187376736285fd89b968b9731c
Author: Michael Olbrich <m.olbrich at pengutronix.de>
Date: Mon Jan 26 16:51:17 2015 +0100
missing: define correct syscall numbers for memfd_create() and getrandom() on aarch64
commit dbdee28bfadd6d8bd93cb34c85ce1fc325dd8120
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 26 21:51:57 2015 +0100
update TODO
commit b381de4197157748ed96e469fcc372c23f842ae1
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 26 21:48:08 2015 +0100
sd-bus: change serialization of kdbus messages to qualify in their entirety as gvariant objects
Previously, we only minimally altered the dbus1 framing for kdbus, and
while the header and its fields where compliant Gvariant objects, and so
was the body, the entire message together was not.
As result of discussions with Ryan Lortie this is now changed, so that
the messages in there entirely are fully compliant GVariants. This
follows the framing description described here:
https://wiki.gnome.org/Projects/GLib/GDBus/Version2
Note that this change changes the framing of *all* messages sent via
kdbus, this means you have to reboot your kdbus system, after compiling
and installing this new version.
commit ee04388a54f0e045377eeaf33c17eb357fe12d69
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 26 20:03:25 2015 +0100
bus-dump: fix two minor memory leaks
commit ad4cdc551588ee543ab1c2b3adfcadf0a2040f23
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 26 17:48:58 2015 +0100
man: fix minor type in man page
commit 72e6110485926c884f056717a21e4f5f3942908c
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 26 17:48:14 2015 +0100
sd-bus: reuse the KDBUS_CMD_FREE wrapper wherever appropriate
commit cc98b3025eeb89addb76a27390cb2baca4eab8b9
Author: Torstein Husebø <torstein at huseboe.net>
Date: Mon Jan 26 15:29:14 2015 +0100
treewide: fix multiple typos
commit ebf31a1f58d0b10ca63c928ff31b7745fc724003
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jan 26 10:39:03 2015 -0500
tmpfiles: use casts instead of warning suppression
This warning got its own name only in gcc5, so the suppression does
not work in gcc4, and generates a warning of its own. Use a cast,
which is ugly too, but less so.
commit 9cccac8cd23cb3cd9a4c46cdabf26a9501769b30
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 26 15:28:18 2015 +0100
man: minor typo fix
Spotted by John Paul Adrian Glaubitz
commit 71ef8b3ac49fd8b5cff36ee7efc945a751ab9a09
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Jan 26 14:48:04 2015 +0100
libudev: private - drop some functions from the internal API
commit 2df959ec3b5128dfe4d9b996dc13b16a8f4c4233
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Jan 26 14:45:12 2015 +0100
libudev: monitor - move nulstr parsing to libudev-device
Hide the details a bit.
commit 04ef387ea900ff59f801d7bf745f21e644711643
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Jan 26 14:13:31 2015 +0100
udev: event - minor nit
Stay uniform and use 'dev' rather than 'event->dev', as these are aliases (and event->dev looks
like it may be a typo for event->dev_db).
commit fa639f3ae770ffccdd9f97430b0883d01bc821ce
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Jan 26 14:12:45 2015 +0100
udev: event - introduce and use internal udev_device_shallow_clone()
commit 243d182543c7edc3980e1ae41712bb0b96df46bd
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Jan 26 13:33:00 2015 +0100
udev: event - move renaming of udev_device to libudev
This is not exposed in the public API. We want to simplify the internal libudev-device API as much as possible
so that it will be simpler to rip the whole thing out in the future.
commit df99a9ef5bb7a89b92ccfb103b2f3e7046c62ef5
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jan 2 00:02:31 2014 -0500
tmpfiles: do not bump access times of directories we are cleaning up
Both plain opendir() and glob() will bump access time. Privileged
option O_NOATIME can be used to prevent the access time from being
updated. We already used it for subdirectories of the directories
which we were cleaning up. But for the directories specified directly
in the config files, we wouldn't do that. This means that,
paradoxically, our own temporary directories for PrivateTmp would stay
around forever, as long as one let systemd-tmpfiles-clean.service run
regularly, because they had their own glob patterns specified.
https://bugzilla.redhat.com/show_bug.cgi?id=1183684
commit 582deb8446b7c76f945bb3174a8059d56b5edb65
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Jan 24 01:54:05 2015 -0500
tmpfiles: add debug statements for all actions
systemd-tmpfiles can be used by users, but it can be quite hard to
figure out the logic it follows, especially since the logic is in some
places rather torturous. Hopefuly this will make it easier for users
to understand what is happening.
commit ff485617d98f002754ded00a702074848385da50
Author: Sergey Ptashnick <0comffdiz at inbox.ru>
Date: Fri Jan 23 20:56:36 2015 +0300
po: update Russian translation
Add strings for importd.
commit d8681b3fa5982399a74876146da21c6113757a4d
Author: Piotr Drąg <piotrdrag at gmail.com>
Date: Thu Jan 22 15:28:04 2015 +0100
catalog,po: update Polish translation
Patch updates Polish translation with new strings from
org.freedesktop.import1.policy.in, as well as incorporates updates in
catalog and po files to accommodate recent changes in the original
strings (commits 2e219e5672689dad60e110f0b3366765506c4c58 and
2057124e7910c4cab7e53d26e0c3749d326ae2bb).
https://bugs.freedesktop.org/show_bug.cgi?id=88707
commit 56b921c3d863f0e098f60f934e6c5880575c68ab
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Jan 24 21:07:27 2015 -0500
machinectl: fix typo
commit cb708b1c6d970cc2376fb2c7c24b479f6f129594
Author: Cristian Rodríguez <crrodriguez at opensuse.org>
Date: Fri Jan 23 13:25:30 2015 -0300
mount-setup: Do not bother with /proc/bus/usb
Current systemd requires kernel >= 3.7 per the README file
but CONFIG_USB_DEVICEFS disappeared from the kernel in
upstream commit fb28d58b72aa9215b26f1d5478462af394a4d253
(kernel 3.5-rc1)
commit 66b0e0e0e3652227fe107ab9d09fa14fd4bc4dfa
Author: Cristian Rodríguez <crrodriguez at opensuse.org>
Date: Fri Jan 23 14:35:20 2015 -0300
build-sys: lookup for sulogin, it might not be in /sbin
commit 36a03ca2a8952ca1acb29fbe796210c27ff71aff
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 23 18:57:29 2015 +0100
resolved: when rereading /etc/resolv.conf, always start using first DNS server again
Previously we tried to stick to a DNS server as long as it is available.
When /etc/resolv.conf changed, and the old DNS server we used was still
in there we'd continue to use it, even if it was at the end of the list.
With this change we'll now always start with the first DNS server in the
list again.
Rationale: certain network managing implementations (notably
NetworkManager) when connected to a VPN place both the VPN DNS server as
well as the local DNS server in /etc/resolv.conf. If we used the local
one before we would thus continue to use the local one, making VPN names
unresolvable. NetworkManager really should be fixed to only place the
VPN DNS servers in the file, but with this commit things are at least
similarly bad as they used to be...
commit c9403dced7c3eb0cc2a925c6428ca30ef8527b55
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jan 23 09:20:59 2015 -0500
#pragma once here and there
commit 6825a04de61f0bceab0ccddb34d825c3951caef1
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jan 23 09:06:00 2015 -0500
build-sys: fix build on compilers without static_assert
Build would fail when assert was used on the same line in
different files #included together.
https://bugs.freedesktop.org/show_bug.cgi?id=87339
commit b986229efe2cc96157aa14c37bab7843311bbef1
Author: Sangjung Woo <sangjung.woo at samsung.com>
Date: Fri Jan 23 20:21:57 2015 +0900
systemctl: bugfix for systemctl reboot command with argument
According to systemctl man page, 'systemctl reboot [arg]' should work
without any errors. However, it does not work because of 'Invalid number
of arguments' error, except for 'reboot [arg]'. This patch fixes the bug
so that both of commands work in exactly the same way.
commit 874d3404cbf2363604106c8f86683db4082691ea
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 23 13:44:44 2015 +0100
core,shutdown: don't bother with unmounting any mounts below /sys, /proc, /dev when shutting down
After all, mounts below these directories are pretty much guaranteed to
be virtual, and it's hence unnecessary to unmount them during shutdown.
Moreover, in less-priviliged containers we might lack the rights to
unmount them, hence don't even try.
http://lists.freedesktop.org/archives/systemd-devel/2015-January/027113.html
commit b4d5b78374e093ffb280fbfbbcfedbe68d60b956
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 23 13:44:27 2015 +0100
mount-setup: /selinux, /cgroup, /dev/cgroup are sooo old, don't bother with them anymore
commit 7fcb4b9b17fcb19c97fdfff689dc0aaaa1391b68
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jan 22 23:35:34 2015 -0500
tmpfiles: minor simplification
commit d35d791950ddf676d20ffaef43d02eaca1b0d027
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jan 22 23:32:19 2015 -0500
man: bring tmpfiles.d(5) in line with code
commit 17fe56148c44dfa5583a8643c1918fd6eccf2aee
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 23 02:59:58 2015 +0100
update TODO
commit 1c0216696a5024db431ce397e8f2ca052084a71e
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 23 02:59:30 2015 +0100
sd-bus: fix typo
commit 934277fe6a26ff2a4da37059c70d84ab6a700781
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 23 02:58:02 2015 +0100
core: add a property that shows the current memory usage of a unit
This is exposed the memory.usage_in_bytes cgroup property on the bus,
and makes "systemctl status" show it in its default output.
commit da41abc52ca1f5965a22cc481a720328b987b335
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jan 22 20:03:58 2015 -0500
cgroup-show: remove duplicated check
After 3637713a20 it is not necessary anymore.
commit 9ba762cdd7a5e1293b1d0b79a26839d83a3fd777
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 23 01:44:14 2015 +0100
update TODO
commit c0534580aca48c65a5f240b093f8d0cc33eb98b9
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 23 01:43:16 2015 +0100
nspawn: when mounting the cgroup hierarchies, use the exact same mount options for the superblock as the host
Otherwise we'll generate kernel runtime warnings about non-matching
mount options.
commit bbb99c30d01a8bcdc27fb151cc6376a7877a6b07
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 23 01:27:06 2015 +0100
nspawn: mount /tmp in the container, don't leave this to the container's init
We really want /tmp to be properly mounted, especially in containers
that lack CAP_SYS_ADMIN or that are not fully booted up and only get a
shell, hence let's do so in nspawn already.
commit 05e7da5afa07b5620c06507a3f033334a5179d21
Author: Alban Crequy <alban at endocode.com>
Date: Thu Jan 22 16:47:07 2015 +0100
nspawn: allow bind-mounting char and block files
commit 24fdceabbf97adc2fe4f5d55eb33cd5f079c44e7
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 23 01:20:16 2015 +0100
update TODO
commit 7079cfeffb6d520f20ddff53fd78467e72e6cc94
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 23 01:16:31 2015 +0100
importd: when listing transfers, show progress percentage
With this change the pull protocol implementation processes will pass
progress data to importd which then passes this information on via the
bus. We use sd_notify() as generic transport for this communication,
making importd listen to them, while matching the incoming messages to
the right transfer.
commit a92ccc5ba22ec40fee560a46c478321d1c5df5af
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 23 01:16:07 2015 +0100
importd: fix bus policy
commit 56e6c2abb8f18bba2bb9d96d66ac7e633349ddfb
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 23 01:15:08 2015 +0100
machinectl: fix handling of --verify= argument for dkr downloads
commit 6cd37a5e59e01f4a2b3f02d9746b3e7417d424e6
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 23 01:13:09 2015 +0100
sd-bus: fix handling of double parameters in sd_bus_message_append()
We really need to use va_arg() with the right type here as uint64_t and
double might have the same size, but are passed differently as
arguments.
commit e026c242af5b724da53e4944aab2645547644cf7
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 23 01:12:10 2015 +0100
import: we need CAP_DAC_OVERRIDE for untarring systems after all
commit d875aa8ce10b458dc218c0d98f4a82c8904d6d03
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 23 01:11:46 2015 +0100
core: zero size notify messages are OK
commit 0c0cdb06c139b52ff103287f6909b3daa5b2dc54
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Thu Jan 22 22:53:42 2015 +0100
tests: use assert_se instead of assert
Otherwise they can be optimized away with -DNDEBUG
commit 714af6af8a912650f9129f8b056ed92589443060
Author: Sylvain Plantefève <sylvain.plantefeve at gmail.com>
Date: Thu Jan 22 21:51:46 2015 +0100
po: update french translation
commit 06d99637b8d62de431d08105ccf57e5089bee5b3
Author: Sylvain Plantefève <sylvain.plantefeve at gmail.com>
Date: Thu Jan 22 21:51:45 2015 +0100
catalog: update french translation
commit 9b0374e954f504701fbe5d3f68d65360139ca2f9
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sun Jan 18 23:23:38 2015 +0100
man: fix typos
commit 5bac5235934fabe5a3e6a9d47f4812f81034c427
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Jan 22 00:53:16 2015 +0100
sd-dhcp-client: use RFC4361-complient ClientID by default
In addition to the benefits listed in the RFC, this allows DHCP to work also in
case several interfaces share the same MAC address on the same link (IPVLAN).
Note that this will make the ClientID (so probably the assigned IP address)
change on upgrades. If it is desired to avoid that we would have to remember and
write back the ID (which the library supports, but networkd currently does not).
commit 40862866417265ac8c20422cb44f14a8f141ce0d
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Jan 22 21:18:30 2015 +0100
dhcp-identifier: create IAID even if no udev device can be found
This is useful for testing.
commit b16492f86f13abd4a9447afd0910139af9656906
Author: Susant Sahani <susant at redhat.com>
Date: Sun Jan 18 23:24:24 2015 +0530
networkd: Introduce ip6gre and ip6gretap
This patch introduces ipv6 gre and gretap.
test:
ip6gre.netdev:
[NetDev]
Name=ip6gretap
Kind=ip6gretap
[Tunnel]
Local=2a00:ffde:4567:edde::4987
Remote=2001:473:fece:cafe::5179
ip6gre.network:
[Match]
Name=eno16777736
[Network]
Tunnel=ip6gretap
ip link
6: ip6gre at eno16777736: <POINTOPOINT,NOARP> mtu 1448 qdisc noop state
DOWN mode DEFAULT group default
link/gre6 2a:00:ff:de:45:67:ed:de:00:00:00:00:00:00:49:87 peer
20:01:04:73:fe:ce:ca:fe:00:00:00:00:00:00:51:79
commit 855ee1a1d272b599410212b40768a9c71f260e37
Author: Susant Sahani <susant at redhat.com>
Date: Sat Jan 17 00:39:10 2015 +0530
networkd: Introduce IP6 tunnel
This patch enables networkd to create IP6 tunnels
example conf:
ipip6.netdev:
[NetDev]
Name=ipip6-tunnel
Kind=ip6tnl
[Tunnel]
Mode=ip4ipv6
Local=2a00:ffde:4567:edde::4987
Remote=2001:473:fece:cafe::5179
ipip6.network
[Match]
Name=wlan0
[Network]
Tunnel=ipip6-tunnel
23: ipip6-tunnel at wlan0: <POINTOPOINT,NOARP> mtu 1452 qdisc noop state
DOWN mode DEFAULT group default
link/tunnel6 2a00:ffde:4567:edde::4987 peer 2001:473:fece:cafe::5179
commit 1af2536acf8aecc3eb940d04268a419c956ee10a
Author: Susant Sahani <susant at redhat.com>
Date: Sat Dec 20 13:35:06 2014 +0530
networkd: introduce gretap
This patch introdeces gretap to networkd
commit 34109a531fb3b26fa00f0261987c7cca710e42aa
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 22 18:55:30 2015 +0100
update TODO
commit e57565dd5bae380122ba1b6c34cbba1d44f44d1f
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 22 18:55:08 2015 +0100
importd: run daemon at minimal capabilities
commit 3637713a2006320a8844adc6de5cd134444bb329
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 22 18:54:48 2015 +0100
cgroup-show: don't hit assert, when the extra pids array is empty
commit 57d8a552af020a4dee034e2fd67782c3d8128f58
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 22 18:38:51 2015 +0100
importd: fix path to download binary
commit 7315edd36a144e746dbcc43cef2206441969ca34
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 22 18:19:58 2015 +0100
import: lock tar into its own private network namespace
That way it cannot get access to the network
commit 2c140ded48fc31e3c80a92a1f755a2b1ab6e1a30
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 22 18:12:31 2015 +0100
import: drop all capabilities when invoking tar
commit a8683176ee1da908c65721468141a74892791fda
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 22 17:50:26 2015 +0100
update TODO
commit b9a5f8588facd64fcff0f75fa91e3f80730b93f2
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 22 17:49:28 2015 +0100
import: only define the _to_string() enum mapping function, thus making gcc shut up
commit aa9bd4992ff0240f6ceecb70ec364d5d9c7574f4
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 22 17:38:10 2015 +0100
import: now that the worker binary is called "systemd-pull" we can shorten the verbs
Atfer all "systemd-pull pull-tar" is unnecessarily redundant, over
"systemd-pull tar"...
commit ff828763c40cd138658abf9ed7a19da73c92dec1
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 22 17:34:54 2015 +0100
importd: try to minimize confusion by renaming "systemd-import" binary to "systemd-pull"
This way "systemd-importd" is the daemon that uses "systemd-pull" as
backend worker.
commit 6adf7b5e46d32376868feef0197e6ada352aa6f2
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 22 17:31:59 2015 +0100
machinectl: when downloading an image, clarify that C-c will not cancel the download, but continue it in the background
commit 813c65c34beae2eed1f93d9317f97d7e806389f5
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 22 17:30:58 2015 +0100
machinectl: minor simplification
commit 6e18cc9fa078d2a967251017ddb5baefb104b720
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 22 17:30:40 2015 +0100
machinectl: parse verify setting client-side
commit 09d46cfd41d14f65cb5fe8798a6f7d964700fcd0
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 22 17:30:02 2015 +0100
importd: minor log improvements
commit 1c49d1ba850f9306d5cebc0441ef66ffa33d348b
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 22 17:07:27 2015 +0100
import: make the user verficiation keyring override the vendor keyring, instead of extending it
This way the user has the ability to remove keys from the
vendor-supplied keyring if he intends so.
commit 8dbce34b0373923c7aa7d795024bbedb0a85c7ea
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date: Thu Jan 22 11:36:02 2015 +1000
logind: fix sd_eviocrevoke ioctl call
If the third argument is non-null, the kernel will always error out with
EINVAL and devices won't get revoked.
Reported-by: Benjamin Tissoires <benjamin.tissoires at gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
commit b5b38b41c37dbe1a117af9bf99e94b58ac91239a
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 22 15:14:23 2015 +0100
machinectl: various minor updates to the --help text
commit 7f444afa1b62920265fec99a61cb4dc53d521956
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 22 15:13:53 2015 +0100
import: rename --verify=sum to --verify=checksum
This is how we call it internally, and also a bit more descriptive.
commit e0ea94c1e2ab3930c85c6057189a2a829a13a800
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 22 15:12:11 2015 +0100
man: document new download magic
commit 838d5f029882e8122b0c2c7e988546a4c4981d21
Author: Piotr Drąg <piotrdrag at gmail.com>
Date: Thu Jan 22 14:56:45 2015 +0100
import: add org.freedesktop.import1.policy.in to POTFILES.in
https://bugs.freedesktop.org/show_bug.cgi?id=88705
commit 534644b7be7b240eb0fbbe06e20cbecbe8206767
Author: Mindaugas Baranauskas <embar at super.lt>
Date: Thu Jan 22 01:07:24 2015 -0500
kbd-model-map: add more mappings for Slovak, Lithuanian, and Khmer
https://bugs.freedesktop.org/show_bug.cgi?id=88545
commit 25b47f96d9601ff566257b2a31bfb5f4bd25d661
Author: Marko Myllynen <myllynen at redhat.com>
Date: Thu Jan 15 14:44:17 2015 +0200
Use eurlatgr as the example console font
See https://fedoraproject.org/wiki/Changes/NewDefaultConsoleFont
https://bugzilla.redhat.com/show_bug.cgi?id=1182529
commit 0814f65ec6feba5efcf0f5b14c054f3c40e4cd8f
Author: Cristian Rodríguez <crrodriguez at opensuse.org>
Date: Wed Jan 14 02:51:41 2015 -0300
sysv-generator: only allow regular files in enumerate_sysv()
Otherwise, if the directory contains other directories we fail
at fopen in load_sysv() with EISDIR.
commit 3a5afdec90a08b1eb6dfeab667783849204ee8bd
Author: Lucas De Marchi <lucas.de.marchi at gmail.com>
Date: Wed Jan 21 22:59:45 2015 -0200
build: export symbols to integrate mainloops
commit 614cc34f3a2a7c64a21c3f5256f2e2b2c1de1d51
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Jan 18 18:28:17 2015 -0500
TODO: tmpfiles
commit dd4105b0a90c3c146a01e5a7734ee76c3a9aa1cd
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Jan 18 18:22:27 2015 -0500
shared/acl-util: add mask only when needed, always add base ACLs
For ACLs to be valid, a set of entries for user, group, and other
must be always present. Always add those entries.
While at it, only add the mask ACL if it is actually required, i.e.
when at least on ACL for non-owner group or user exists.
commit a48a62a1af02aec4473c9deed98dd5b89d210f93
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Jan 18 15:05:40 2015 -0500
tmpfiles: use ACL magic on journal directories
commit 50d9e46dbb8400d4570781728c63b151d9ca982b
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Jan 18 05:02:47 2015 -0500
tmpfiles: implement augmenting of existing ACLs
This is much more useful in practice (equivalent to setfacl -m).
commit b705ab6a838937f947216af7b2d1fffb00f8b0dc
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Jan 18 02:10:00 2015 -0500
tmpfiles: make t and a globby, add their recursive versions T and A
For types which adapt existing files it is generally more useful to accept
globs.
In analogy to z and Z, add recursive versions using uppercase letters.
Technically, making a accept globs is backwards incompatible, but in
practice it probably isn't yet widely used and we can assume that most
people don't create files with wildcards in names.
Functions which are used as callbacks, but not directly on items, are
renamed not to have "item_" prefix.
commit 081043cf06cc67a327f55806039639c55acdd439
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Jan 18 01:33:39 2015 -0500
tmpfiles: make recursive operation generic
commit f8eeeaf9b783ebbab30672629abf3920db286811
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Jan 17 23:27:39 2015 -0500
tmpfiles: add 'a' type to set ACLs
commit 3f93da987961c139215d3a55fd25496310537d1b
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jan 9 02:00:37 2015 -0500
tmpfiles: attach an array of items to each path
The data structure used by tmpfiles is changed: instead of hashmaps
mapping {path → Item*} we now have hashmaps containing
{path -> ItemArray}, where ItemArray contains a pointer
to an array of Items.
For current code it doesn't matter much, but when we add new types it
is easier to simply add a new Item for a given path, then to coalesce
multiple lines into one Item.
In the future, this change will also make it possible to remember the
file and line where each Item originates, and use that in reporting
errors. Currently this is not possible, since each Item can be created
from multiple lines.
commit 222c47f47615a275b9a9862a45f9b91b01eb8be5
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jan 9 01:27:31 2015 -0500
tmpfiles: make sure not to concatenate non-absolute path
If the path is absolute was only checked later.
Also do not check if path if absolute if we just
specified it starting with a slash.
commit 5f255144ae1ca7162b15e712a79d2eb9d83015f7
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jan 9 01:11:01 2015 -0500
tmpfiles: detect all combinations of + and !
The same algorithm as with - and @ in ExecStart= is used.
commit 505ef0e36c218f5c7a0987156a8d5bd5129a6773
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jan 9 01:10:02 2015 -0500
tmpfiles: simplification
Certain conditions were checked more than once. Warning message
is improved.
commit 158bffeb434c0015e2d6b9e9f15e24a6dc69a493
Author: Rafael Ferreira <rafael.f.f1 at gmail.com>
Date: Mon Jan 19 12:39:43 2015 -0200
catalog: update pt_BR translation
Brazilian Portuguese update for CATALOG patch, according to commit
2057124e7910c4cab7e53d26e0c3749d326ae2bb ("Grammar changes to catalog")
https://bugs.freedesktop.org/show_bug.cgi?id=88588
commit 3da7a50f847ce5ea6094927cb51bab7eb1818efd
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Jan 20 23:09:58 2015 -0500
shared/cgroup-show: simplify show_pid_array()
int[] should not be used as pid_t[], even if happens to be same thing.
Also deduplicating in a quadratic loop right before sorting is unnecessary.
Remove custom greedy_realloc implementation.
commit 1fa2f38f0f011010bf57522b42fcc168856a7003
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Jan 20 22:22:15 2015 -0500
Assorted format fixes
Types used for pids and uids in various interfaces are unpredictable.
Too bad.
commit 8facc3498ed037f842891ff55d1f60fe834f4ba0
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Jan 21 23:47:37 2015 -0500
Fix some format strings for enums, they are signed
commit 213c305a2ff44c4b2ea7d0c96dd64be010ac797d
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Jan 21 23:35:19 2015 -0500
shared/util: use signed printf format for PIDs
gcc 5 started warning about this.
commit da36017e0565247ffad930314956c37c518ab805
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 22 04:01:58 2015 +0100
update TODO
commit 3d7415f43f0fe6a821d7bc4a341ba371e8a30ef3
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 22 03:57:15 2015 +0100
import: introduce new mini-daemon systemd-importd, and make machinectl a client to it
The old "systemd-import" binary is now an internal tool. We still use it
as asynchronous backend for systemd-importd. Since the import tool might
require some IO and CPU resources (due to qcow2 explosion, and
decompression), and because we might want to run it with more minimal
priviliges we still keep it around as the worker binary to execute as
child process of importd.
machinectl now has verbs for pulling down images, cancelling them and
listing them.
commit f4c135bf2f0abcf79c89efbeae51f03bacba5f2f
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 22 03:51:22 2015 +0100
impot: minor cleanups
commit aca83a53ee1dd01beafcd07c55c4cd6c3efb4224
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 22 03:47:46 2015 +0100
log: add new log output mode, that prints to console, but prefixes with syslog priority
This is useful when we execute our own programs, reading output from its
STDERR, and want to retain priority information.
commit 07e10d1a7c7535bd3938b09a11bf29b94a9dae77
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Jan 21 23:02:22 2015 +0100
networkd: plug lldp leak
commit cfb5b3805759e63dc5e0cae6e92e1df885b5c5b6
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Jan 21 22:25:20 2015 +0100
network: dhcp - split out dhcp_identifier_set_{iaid,duid_en} from dhcp6-client
This will also be used in dhcp4-client.
commit 764aad6258eec3bd4ae62ea341ea507bd69ce628
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Jan 21 21:23:47 2015 +0100
network: dhcp - split out the duid structure into a new header file
We will use the same in both dhcp4 and dhcp6.
commit 7687f85ea6bab434324bb985e2898bf6373891bf
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 21 20:05:24 2015 +0100
update TODO
commit ff2670ad11a1a29d483b7a246c95b159ddc1137c
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 21 20:03:57 2015 +0100
import: simplify dkr importer, by making use of generic import-job logic, used by the raw and tar importers
This gets us progress output as well xz/bzip2 support.
commit 8b71fce8c2bb0e0a8c2317a34f8f114ff10e6aa6
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 21 20:02:30 2015 +0100
import: minor cleanups for the tar and raw importers
commit 91ca5bf0b6f3b487a16cc262527c9de6744db624
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Wed Jan 21 17:10:20 2015 +0100
build: Add parallel-tests automake option
We use PY_LOG_COMPILER in Makefile.am for running *.py tests, which requires
automake's parallel test runner. This has only been the default from 1.13 on.
As we only require automake 1.11, add it as an option explicitly.
commit 77354c7e6f096a447245a8781c1eaa4acbe67089
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Wed Jan 21 10:25:14 2015 +0100
sysv-generator: Replace Provides: symlinks with real units
Since commit b7e7184 the SysV generator creates symlinks for all "Provides:" in
the LSB header. However, this is too greedy; there are cases where the
creation of a unit .service file fails because of an already existing
symlink with the same name:
- Backup files such as /etc/init.d/foo.bak still have "Provides: foo", and
thus get a foo.service -> foo.bak.service link. foo.bak would not be enabled
in rcN.d/, but we (deliberately) create units for all executables in init.d/
so that a manual "systemctl start" works. If foo.bak is processed before,
the symlink already exists.
- init.d/bar has "Provides: foo", while there also is a real init.d/foo. The
former would create a link foo.service -> bar.service, while the latter
would fail to create the real foo.service.
If we encounter an existing symlink, just remove it before writing a real unit.
Note that two init.d scripts "foo" and "bar" which both provide the same name
"common" already work. The first processed init script wins and creates the
"common.service" symlink, and the second just fails to create the symlink
again. Thus create an additional test case for this to ensure that it keeps
working sensibly.
https://bugs.debian.org/775404
commit d816e2b7909e50ee887e1a0a825db760cf6fd3b0
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Wed Jan 21 15:30:01 2015 +0100
systemd-sysv-generator test: test scripts with hidden suffixes
We don't expect any unit generated from temporary package manager, swap, and
similar files.
commit c7088e4999f2e5dd33259948c806f4e2706e77ce
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Wed Jan 21 15:26:13 2015 +0100
util: Add some missing hidden_file() suffixes
dpkg itself also uses *.dpkg-dist, while .dpkg-{bak,backup,remove} are being
used by dpkg-maintscript-helper.
commit 29e0e6d8c1f7f648b7c998880d034eaa3e58c53a
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Tue Jan 20 16:41:31 2015 +0100
sysv-generator: Handle .sh suffixes when translating Provides:
When deciding whether the provided name equals the file name in
sysv_translate_facility(), also consider them equal if the file name has a
".sh" suffix.
This was uncovered by commit b7e7184 which then created a symlink
"<name>.service" to itself for ".sh" suffixed init.d scripts.
For additional robustness, refuse to create symlinks to itself in add_alias().
Add test case which reproduces the bug.
https://bugs.debian.org/775889
commit 9cba813191c9e7897f7856cbe10f19600f1d56e5
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 21 13:45:07 2015 +0100
update TODO
commit 8af3cf74df03f7528f9e2605ec7896a5daf0f711
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 21 13:43:55 2015 +0100
import: support downloading bzip2-encoded images
This way, we can import CoreOS images unmodified.
commit ccf23ad5faf228d450d263d7291156a948b61af2
Author: Christian Seiler <christian at iwakd.de>
Date: Tue Jan 13 11:53:25 2015 +0100
journal: Fix syslog forwarding without CAP_SYS_ADMIN
In case CAP_SYS_ADMIN is missing (like in containers), one cannot fake pid in
struct ucred (uid/gid are fine if CAP_SETUID/CAP_SETGID are present).
Ensure that journald will try again to forward the messages to syslog without
faking the SCM_CREDENTIALS pid (which isn't guaranteed to succeed anyway, since
it also does the same thing if the process has already exited).
With this patch, journald will no longer silently discard messages
that are supposed to be sent to syslog in these situations.
https://bugs.debian.org/775067
commit e37b56c7355a9b84ac1e1893ab828b19aa1dc217
Author: Wieland Hoffmann <themineo at gmail.com>
Date: Sat Jan 17 02:10:42 2015 +0100
zsh-completion: Do not interpret escape sequences in _filter_units_by_property
This makes all functions that rely on _filter_units_by_property() (like
_systemctl_{stop,kill,try_restart}) work with unit names that contain backslash
escaped sequences (like automount units with spaces that are escaped to
"\x20").
commit eb89bc1d25086a1b4117683697f35c1398a98c02
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Wed Jan 21 10:21:08 2015 +0100
systemd-sysv-generator test: fix enabled check
Fix hardcoded "foo.service", test for the actual unit parameter.
commit 56401ac57a543395d06690768e63b92633ad15dd
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Wed Jan 21 09:45:15 2015 +0100
systemd-sysv-generator test: don't parse symlinks
Generated services which are symlinks should be tested/handled differently from
files, so ignore them in run_generator()'s result parsing.
commit e28aa588f04ace17ca94e9e0667819bea265fbd9
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Tue Jan 20 16:08:05 2015 +0100
test: add integration test for systemd-sysv-generator
This covers the general functionality as well as regression tests for recent
fixes like commits b7e718 and 1ed0c19.
commit 0100b6e1bf682385e0939d4dd7be815d5cdf0e1a
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 21 04:03:33 2015 +0100
import: also add verification support to tar importer
commit 98c3800184cfc961b19d605f69d555d0cea8bb7a
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 21 03:46:01 2015 +0100
import: make verification code generic, in preparation for using it pull-tar
commit 5a3b1abd0ef47de9984d921463c2aaccc630fad6
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 21 03:02:23 2015 +0100
import: improve logging
commit 90bc083bda5e97064d6a97c855ef7b4868f650de
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 21 03:02:04 2015 +0100
import: show download speed while downloading
commit 3576d6315f3b6b686cdcf9f280d5e829e3d3daa0
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 21 03:01:13 2015 +0100
import: add image verification using gpg
This also adds an initial keyring for the verification, that contains
Ubuntu's and Fedora's key. We should probably add more entries sooner or
later.
commit 72521ab9fd8a47e5b9df4b99b7289531124df5e7
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Tue Jan 20 21:26:35 2015 +0100
test: eliminate shell wrapper for Python test
Use the parallel test runner's TEST_EXTENSIONS/*_LOG_COMPILER feature
(https://www.gnu.org/software/automake/manual/html_node/Parallel-Test-Harness.html)
to run *.py tests through $(PYTHON), and only if we have python
available/enabled.
This eliminates the need of having shell wrappers, thus drop
test/rules-test.sh.
commit e8015e6e28fe7d287fc1d5d8bfd82ca65c51326c
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Tue Jan 20 20:50:35 2015 +0100
test: simplify rules-test.sh wrapper
Drop globbing of rules/*.rules in the rules-test.sh wrapper and move that logic
into the actual test rule-syntax-check.py. This can still be called with
individual rules files, but when being called without arguments it will now
process all top_builddir/rules/*.rules.
Preparation for dropping the shell wrappers altogether.
commit c09ef2e4e8331ddc7ee063d295c322a0939ea851
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 20 20:36:19 2015 +0100
nspawn: work around kernel bug with partition table probing on loopback devices
When we set up a loopback device with partition probing, the udev
"change" event about the configured device is first passed on to
userspace, only the the in-kernel partition prober is started. Since
partition probing fails with EBUSY when somebody has the device open,
the probing frequently fails since udev starts probing/opening the
device as soon as it gets the notification about it, and it might do so
earlier than the kernel probing.
This patch adds a (hopefully temporary) work-around for this, that
compares the number of probed partitions of the kernel with those of
blkid and synchronously asks for reprobing until the numebrs are in
sync.
This really deserves a proper kernel fix.
commit c660bb094288d89762cdbedd08661127988e5548
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 20 16:37:27 2015 +0100
import: add a couple of additional suffixes to remove from raw images
commit 8f6950587ab7b4d6fe1b51241759cc3a4682b96d
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 20 16:36:40 2015 +0100
import: make image verification optional
commit 950a1705dcedf7c71ee28ee995fb51f95cfb2ed5
Author: Patrik Flykt <patrik.flykt at linux.intel.com>
Date: Mon Jan 5 16:25:49 2015 +0200
sd-dhcp6-client: Remove unnecessary debug printout
commit 85dbc41dc67ff49fd8a843dbac5b8b5cb0b61155
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 20 15:06:34 2015 +0100
import: add a simple scheme for validating the SHA256 sums of downloaded raw files
commit 88a1aadc48e5bbefd2e689db099569ec4c3c1e4b
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 20 15:06:01 2015 +0100
import: be less aggressive when allocating memory for downloaded payload
commit 68c913fd751f5c750e3c786b4ed512154b354599
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 20 15:05:25 2015 +0100
import: improve logging a bit
commit 0d6e763b48cabe8899a20823b015c9a988e38659
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 20 03:00:07 2015 +0100
import: port pull-raw to helper tools implemented for pull-tar
This allows us to reuse a lot more code, and simplify pull-raw
drastically.
commit 56ebfaf1ca185a93ffb372b6e1a1fa3a957d93cd
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 20 01:36:11 2015 +0100
import: add support for pulling raw tar balls as containers
Ubuntu provides their cloud images optionally as tarball, hence also
support downloading those.
commit a2e0337875addaf08225fbf9b231435ba12a88b5
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 19 20:45:27 2015 +0100
util: make http url validity checks more generic, and move them to util.c
commit 6c8f2e7d78b1fe280588dc91beae90cdf36fcd49
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Tue Jan 20 12:46:28 2015 +0100
test: Use configured Python
Don't hardcode "python" or /usr/bin/python, but use the configured $(PYTHON).
commit c6be83c16d605fb2e66b2a5a8ff0f4a7a6e0e1e4
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Tue Jan 20 12:18:40 2015 +0100
test/rule-syntax-check.py: Fix for Python 3
Make this work with both Python 2 and 3.
commit 6fb2f9ab6bd7f6039cf98659d939e865e230b3ea
Author: Rami Rosen <rami.rosen at intel.com>
Date: Tue Jan 20 13:56:14 2015 +0200
networkd: fix a typo in networkd-wait-online-manager.
subscibe->subscribe
commit d9000fd3b3ad0728832007f56e9cafacfbbe54e7
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jan 19 21:44:16 2015 -0500
man: add networkctl(1)
commit 12f15e596a3040f32bb8c9aa9d0bf9b43fc96567
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jan 19 21:43:35 2015 -0500
man: use one description of --no-legend
commit 4bbfe7ad22b0666e82719e39e40be1c6cbb5cc91
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Jan 20 00:18:28 2015 +0100
nspawn: add ipvlan support
commit c4a5ddc9f29cf910fac9d814cd898b4cc2bd79b1
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Jan 19 22:24:32 2015 +0100
networkd: netdev - add ipvlan support
commit 250ba6647bce6099b6cc029a63d43231b4fa3261
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jan 19 15:41:03 2015 -0500
systemctl: do not show dots with --plain
Plain implies a ... "plain" output.
Also do not say "No jobs" with --no-legend. We skip
reporting the number of jobs with --no-legend if there
are any, and 0 is also a number, and should be skipped.
commit f6c51a8136de3f27e28caea2003e18f4bc4cb9a8
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 19 20:22:58 2015 +0100
nspawn: support dissecting GPT images that contain only a single generic linux partition
This should allow running Ubuntu UEFI GPT Images with nspawn,
unmodified.
commit ec5cb56ee18f529a023deedd0806854f08499b6a
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 19 20:22:50 2015 +0100
import: clarify when we are unpacking the qcow2 device
commit 2fbe4296c5ba5bcce3ac845f196c60a88e3181fe
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 19 20:21:57 2015 +0100
inspawn: wait until udev has probed a loopback device before making us of it
commit 0716faad4a846d5f3cdce4bf37648d3254b9332f
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 19 17:02:37 2015 +0100
import: make sure don't leak the LZMA context
commit c19de71113f956809995fc68817e055e9f61f607
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 19 17:01:15 2015 +0100
machined: refer to the disk space allocated for an image to "usage" rather than "size"
After all, it's closer to the "du"-reported value than to the file
sizes...
commit 1c7dd82563ff2e71a067aea20d2acb2d0553644b
Author: Lennart Poettering <lennart at poettering.net>
Date: Sat Jan 17 18:11:45 2015 +0100
qcow2: when dissecting qcow2, use btrfs clone ioctls for reflinking blocks to target
commit 1e20b41187ff7d27477b5322690e447753c66ace
Author: Lennart Poettering <lennart at poettering.net>
Date: Sat Jan 17 03:22:06 2015 +0100
import: when downloading raw files, show simple progress reports
commit 2f64ba0e6ea4fe8bac69215290d16321ab820f54
Author: Lennart Poettering <lennart at poettering.net>
Date: Sat Jan 17 02:45:42 2015 +0100
import: simplify the code a bit
commit ff6a74609b7c925834da1373d3adb9642ca51422
Author: Lennart Poettering <lennart at poettering.net>
Date: Sat Jan 17 02:36:23 2015 +0100
import-raw: when downloading raw images, generate sparse files if we can
commit 47bc4fd86d1119945be3d0217f3795c901b7ffff
Author: Lennart Poettering <lennart at poettering.net>
Date: Sat Jan 17 02:34:33 2015 +0100
import-raw: set NOCOW flag on all raw images we create
commit 3fb90db2d6aa6eb7711dbccb34a07e3e7ae85c91
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jan 19 13:55:44 2015 -0500
systemctl: fix import-environment description, trim help to 80 cols
commit 40f0b71b063da6a36b8d7ec75ef20103abd18243
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jan 19 13:42:34 2015 -0500
journalctl: trim --help to fit in 80 columns
Terminals tend to be 80 columns wide by default, and the help
text is only supposed to be a terse reminder anyway.
https://bugzilla.redhat.com/show_bug.cgi?id=1183771
commit 71c26873600f7816ea418ded6cd6516dd5e4623a
Author: Daniel Mack <daniel at zonque.org>
Date: Fri Jan 16 13:44:32 2015 +0100
cgroup: fix typo
commit a2341f6836da0a217ab0c5f2b82f0c4ea13d429d
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Jan 17 23:20:00 2015 -0500
Move DEFINE_TRIVIAL_CLEANUP_FUNC to macro.h
This remove the need for various header files to include the
(relatively heavyweight) util.h.
commit 2695c5c44e028d1bc07404baf3357e5a6017fc57
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Jan 7 10:28:04 2015 -0500
Add initialization helper for file_handle_union
commit 302fbdf29eb0ad4ca1fe8ee18755edad7db11b37
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Jan 6 01:58:31 2015 -0500
man: reindent tmpfiles.d(5)
Reindent to 2 spaces, use more markup.
commit 42d8fafc4bb2f890688e25fe886f88b54ce2c1e3
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Jan 6 01:15:59 2015 -0500
man: mention "wheel" and "adm" in journalctl(1)
https://bugs.freedesktop.org/show_bug.cgi?id=70866
commit 49fba678a0e2c30df0d2ccefab731beb3955a473
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Jan 6 01:09:55 2015 -0500
man: reindent journalctl(1)
Reindent with two spaces, use non-breaking spaces, add <literal> tags.
commit 314808cea4d7655b881ce7b1204efa476e7b8fbb
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Jan 18 23:56:19 2015 +0100
bus: drop systemd.kdbus_attach_flags_mask= cmdline
There is no reason to provide our own attach_flags_mask. We can simply
rely on kdbus.attach_flags_mask= which is read by the kernel *and* kmod.
If it's set, we assume the user wants to override our setting, so we
simply skip setting it.
commit 90b99192ad5b7674585996e2b801679989f8a8a7
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Jan 18 23:54:42 2015 +0100
core: write kdbus.attach_flags_mask only on real boot
The kernel module system is not namespaced, so no container should ever
modify global options. Make sure we set the kdbus attach_flags_mask only
on a real boot as PID1.
commit 9c89c1cabd0357fa4e58a91c4d9233702896b709
Author: Topi Miettinen <toiwoton at gmail.com>
Date: Sun Jan 18 23:57:35 2015 +0200
libudev: fix check for too long packet
Don't use recvmsg(2) return value to check for too long packets
(it doesn't work) but MSG_TRUNC flag.
(David: add parantheses around condition)
commit 0193ad26ba121f3df259cc8b3bab54a99b8e5252
Author: Cristian Rodríguez <crrodriguez at opensuse.org>
Date: Thu Jan 15 02:27:34 2015 -0300
util: replace RUN_WITH_LOCALE with extended locale functions
There were two callers, one can use strtod_l() and the other strptime_l().
(David: fix up commit-msg and coding-style)
commit 43fcd650e5cb0836cfc9f667ed74b3bc0283a81c
Author: Topi Miettinen <toiwoton at gmail.com>
Date: Sun Jan 18 16:01:25 2015 +0200
timesyncd: consider too long packets as invalid
If the received NTP message from server didn't fit to our buffer, either
it is doing something nasty or we don't know the protocol. Consider the
packet as invalid.
(David: add parantheses around conditional)
commit 50efadb0ae7bcb4fc5ce5e41163c697501ca1d50
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Jan 18 21:34:33 2015 +0100
bus-proxy: don't pretend everyone is root
While it's a lovely scenario, it's probably not really useful. Fix our
GetConnectionUnixUser() to return the actual 'euid' which we asked for,
not the possible uninitialized 'uid'.
commit 607ff5f95aac387ef3fb79358e7416b7c8b2090d
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Jan 18 20:07:51 2015 +0100
Revert "test-exec: do not skip all the tests"
This reverts commit 68e68ca8106e7cd874682ae425843b48579c6539. We *need*
root access to create cgroups. The only exception is if it is run from
within a cgroup with "Delegate=yes". However, this is not always true and
we really shouldn't rely on this.
If your terminal runs from within a systemd --user instance, you're fine.
Everyone else is not (like running from ssh, VTs, and so on..).
commit 21fce57b26f50381d21a22be4d62a8f6067dc5c9
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Jan 18 19:37:34 2015 +0100
bus: fix SD_BUS_CREDS_AUGMENT on kdbus queries
If we set SD_BUS_CREDS_AUGMENT, we *need* the PID from the kernel so we
can lookup further information from /proc. However, we *must* set
SD_BUS_CREDS_PIDS in "mask", otherwise, our creds-collector will never
actually copy the pid into "sd_bus_creds". Fix this, so
SD_BUS_CREDS_AUGMENT works even if SD_BUS_CREDS_PID is not specified by
the caller.
commit eea0b59193f37fcc9ee227de26d0009e6bdc6d92
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Jan 18 19:28:30 2015 +0100
bus: fix typo
Fix comment typo and clarify that this is not about privileges but can
have rather arbitrary reasons.
commit 05bae4a60c32e29797597979cee2f3684eb3bc1e
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Jan 18 13:55:55 2015 +0100
bus: use EUID over UID and fix unix-creds
Whenever a process performs an action on an object, the kernel uses the
EUID of the process to do permission checks and to apply on any newly
created objects. The UID of a process is only used if someone *ELSE* acts
on the process. That is, the UID of a process defines who owns the
process, the EUID defines what privileges are used by this process when
performing an action.
Process limits, on the other hand, are always applied to the real UID, not
the effective UID. This is, because a process has a user object linked,
which always corresponds to its UID. A process never has a user object
linked for its EUID. Thus, accounting (and limits) is always done on the
real UID.
This commit fixes all sd-bus users to use the EUID when performing
privilege checks and alike. Furthermore, it fixes unix-creds to be parsed
as EUID, not UID (as the kernel always takes the EUID on UDS). Anyone
using UID (eg., to do user-accounting) has to fall back to the EUID as UDS
does not transmit the UID.
commit e23f4bb525991c5908be0d0e7f8374c964d9996c
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Jan 18 13:54:46 2015 +0100
bus-proxy: fake all UIDs/GIDs, not just the real UID/GID
Make sure we tell the kernel to fake all UIDs/GIDs. Otherwise, the remote
side has no chance of querying our effective UID (which is usually what
they're interested in).
commit d340f82032e4eb538e7b79087d95d5af1ae3dd91
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Jan 18 13:07:21 2015 +0100
bus-proxy: fix bus-uid tracking
We need to implicitly allow HELLO from users with the same uid as the bus.
Fix the bus-uid tracking to use the original uid, not the uid after
privilege-dropping.
commit ca56b0a68300b035c605bedc5b339128897debfc
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Jan 18 12:59:39 2015 +0100
logind: hide 'self' links if not available
If the caller does not run in a session/seat or has no tracked user, hide
the /org/freedesktop/login1/.../self links in introspection data.
Otherwise, "busctl tree org.freedesktop.login1" tries to query those nodes
even though it cant.
commit 7447362c530e3f7128f16a35d1e43da4251144cc
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Jan 17 21:18:52 2015 +0100
bus-proxy: don't print error-messages if we check multiple dests
If we test the policy against multiple destination names, we really should
not print warnings if one of the names results in DENY. Instead, pass the
whole array of names to the policy and let it deal with it.
commit 0d620e53360f8d1dd7fd750d26a9b273a6f4fc0b
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Jan 17 19:06:34 2015 +0100
bus-proxy: implement org.freedesktop.DBus.ReloadConfig()
Make sure to reload our xml policy configuration if requested via the bus.
commit bae8352c1dedc335b0e0b6ee2066f64b0b483e24
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Jan 17 18:54:09 2015 +0100
bus-proxy: fix indentation
Fix whitespace indentation.
commit a80a3a7543975d1268692937d9d1884c6ee6e301
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Jan 17 18:23:33 2015 +0100
bus-proxy: drop privileges if run as root
We cannot use "User=" in unit-files if we want to retain privileges. So
make bus-proxy.c explicitly drop privileges. However, only do that if
we're root, as there is no need to drop it on the user-bus.
commit c4bc1a8434f2a34840ea6f63064fa998ecfae738
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Jan 17 18:07:58 2015 +0100
bus-proxy: share policy between threads
This implements a shared policy cache with read-write locks. We no longer
parse the XML policy in each thread.
This will allow us to easily implement ReloadConfig().
commit b58d857136496ee463223cd90af46512e9eef152
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Jan 17 18:01:01 2015 +0100
build: move stdio-bridge into $PATH
Make sure stdio-bridge can be found in $PATH. Otherwise, "xyzctl -H"
fails.
commit 288026bda90245ae6523441ce308d58ad1caefc8
Author: Maxim Mikityanskiy <maxtram95 at gmail.com>
Date: Sat Jan 17 11:27:12 2015 -0500
hwdb: restore comments about MSI devices
Some time ago 95-keymap.rules was replaced by
60-keyboard.hwdb. Original comments for MSI laptops (that were in
95-keymap.rules) were removed, but I think they are important for
understanding what's going on.
https://bugs.freedesktop.org/show_bug.cgi?id=88412
commit d3394ff47c6c60b6efb55be59e9e647ab82a857a
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Jan 17 14:32:58 2015 +0100
bus-proxy: set custom thread names
Set thread-names to "p$PIDu$UID" and suffix with '*' if truncated. This
helps debugging bus-proxy issues if we want to figure out which
connections are currently open.
commit a8a1a43f482af480c375a97921df6b42452c7092
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sat Jan 17 13:57:46 2015 +0100
bus-proxy: turn into multi-threaded daemon
Instead of using Accept=true and running one proxy for each connection, we
now run one proxy-daemon with a thread per connection. This will enable us
to share resources like policies in the future.
commit f4a53250acb3aea2eb5ebed059887b9417afbd9e
Author: Michael Marineau <michael.marineau at coreos.com>
Date: Thu Jan 15 13:25:00 2015 -0800
missing: add macros for OFD locks
commit ecdacd4b2fca2153f35b689281ba38107c84f528
Author: Cristian Rodríguez <crrodriguez at opensuse.org>
Date: Wed Jan 14 10:39:53 2015 -0300
remove unneeded libgen.h includes
commit 2057124e7910c4cab7e53d26e0c3749d326ae2bb
Author: Chris Atkinson <cwa at pipeline.com>
Date: Tue Jan 13 10:06:25 2015 -0500
Grammar changes to catalog
commit 352e209804c70b991feededc0a45762929840ace
Author: Colin Guthrie <colin at mageia.org>
Date: Mon Jan 12 20:40:14 2015 +0000
random-seed: avoid errors when we cannot write random-seed file
When we call 'systemd-random-seed load' with a read-only /var/lib/systemd,
the cleanup code (which rewrites the random-seed file) will fail and exit.
Arguably, if the filesystem is read-only and the random-seed file exists
then this will be possibly be quite bad for entroy on subsequent reboots
but it should still not make the unit fail.
commit f299e3e430a26188106ce15abf05f3ae7e54ef59
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Jan 16 14:45:34 2015 +0100
bus-proxy: bring back systemd-stdio-bridge
Now that we want to make bus-proxy multi-threaded, we have to bring back
the systemd-stdio-bridge for our TCP use-cases.
commit c0395aeb903cde25bd9e81fba3334f63335fe0ef
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Jan 16 14:19:19 2015 +0100
bus-proxy: extract proxy into Proxy object
Move all the proxy code into a "struct Proxy" object that can be used
from multiple binaries.
We now dropped SMACK as we have to refactor it to work properly. We can
introduce it later on.
commit 91fd0103cc1525c66e3efb03ef781e9553437724
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Jan 15 17:33:28 2015 +0100
bus-proxy: refactor bus-creation
Move local and destination bus creation into a helper function. This
further reduces the line count of main().
commit 2a2054a796e396d1e6e679c70ac273f76ccfb39a
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 16 20:09:23 2015 +0100
update TODO
commit edce2aed3aa93b84f7b4c70412bdb665da2977b0
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 16 20:07:25 2015 +0100
import: support importing qcow2 images
With this change the import tool will now unpack qcow2 images into
normal raw disk images, suitable for usage with nspawn.
This allows has the benefit of also allowing importing Ubuntu Cloud
images for usage with nspawn.
commit 49bb233bb734536b9617d838f09a7bf9b8336003
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 16 18:42:17 2015 +0100
import: support downloading .xz compressed images
That way we can download fedora cloud raw images as-is and decompress
them on-the-fly.
commit 6ca5708aa969ea8ec43ee077fe70501302b8da93
Author: Kay Sievers <kay at vrfy.org>
Date: Fri Jan 16 15:35:42 2015 +0100
build-sys: add libsystemd-fw where needed
commit 8d09b6deae675b59c4be10e697081c9271a1f5d1
Author: Kay Sievers <kay at vrfy.org>
Date: Fri Jan 16 15:16:05 2015 +0100
build-sys: add missing HAVE_LIBIPTC
commit b333117c7844e550210f5199687f1e9247f460cf
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date: Fri Jan 16 11:11:10 2015 +1000
hwbd: add click angle for the Logitech M325
This device has 18 stops per rotation == 20 degree angle. Advertised as
"Micro-precise scrolling"
commit ed9e8bf66d1b3a00aa7fb6d57ec89dd8a3b8d7dc
Author: Bastien Nocera <hadess at hadess.net>
Date: Tue Jan 13 17:20:24 2015 +0100
os-release: Add PRIVACY_POLICY_URL
commit b3ff20978a5e9c5a9fdc693128f29988b4070c8a
Author: Susant Sahani <susant at redhat.com>
Date: Thu Jan 15 12:41:28 2015 +0530
LLDP: Support locally assigned port subtype
The Zyxel switch sends port subtype as Locally assigned (7).
Add LLDP_PORT_SUBTYPE_LOCALLY_ASSIGNED as supported type
reported by Mantas Mikulėnas <grawity at gmail.com>
commit b96014fad55afb2c1b9e744bbbb345a95ae669b3
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Jan 15 14:09:36 2015 +0100
TODO: update
commit 244477333afc8b95d2a5b2c05b7d8fe8b1be89c0
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Jan 15 12:40:38 2015 +0100
udev: merge evdev_id into input_id
There is no reason to keep both separated. We want to avoid API specific
tools and instead keep generic terms like 'input'.
commit 975a900782528b57deafadc10457c7ffab0b9791
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Jan 15 12:38:57 2015 +0100
udev: fix NULL-ptr deref
Make sure we properly validate the return value of
udev_device_get_sysattr_value(). It might be NULL for several reasons.
commit 5e2de0eb1dff7bb86b40c16a0a9c9c4de33e77d1
Author: Daniel Mack <daniel at zonque.org>
Date: Thu Jan 15 14:10:28 2015 +0100
bus-proxyd: move synthesize_name_acquired()
Move synthesize_name_acquired() to synthesize.c.
commit f3c4724635951c5b8a2b3f3c3f25798ce4d290cd
Author: Daniel Mack <daniel at zonque.org>
Date: Thu Jan 15 13:56:44 2015 +0100
bus-proxy: factor out code for driver handling and message synthesis
Move synthesize_*() into synthesize.c and bus_proxy_process_driver() into
driver.c for better code separation.
commit 835214146b60edfcec00075558ccc4238cc1ffe4
Author: Jonathan Boulle <jonathanboulle at gmail.com>
Date: Thu Jan 15 08:19:30 2015 +0100
nspawn: fix log typos
commit 011c703495fb564a49dea44b424445241cd58634
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date: Fri Jan 9 09:51:40 2015 +1000
hwdb: add MOUSE_WHEEL_CLICK_ANGLE as property
Most mice have a wheel click angle of 15 degrees, i.e. 24 clicks per full
wheel rotation. Some mice, like the Logitech M325 have a larger angle. To
allow userspace to make use of that knowledge, add a property to the hwdb.
This allows for better predictive scrolling. e.g. a mouse that has a smaller
click angle will scroll faster, with this value you can accommodate this
where needed. Likewise, using "half turn of the wheel" or "full turn of the
wheel" as a UI element becomes possible.
This addition is mainly driven by libinput 0.8, having the angle enables
libinput to provide an API that distinguishes between a physical distance
(like touchpad scrolling does) and discrete steps (wheel clicks).
Callers can choose what they prefer based on the device.
commit 6dcfca59fc564449e44543c5e9593eaeaf83356a
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 15 01:44:03 2015 +0100
update TODO
commit 5f129649b97bdff2bffefcd9c773157843ede6f6
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 15 01:40:02 2015 +0100
nspawn,machined: change default container image location from /var/lib/container to /var/lib/machines
Given that this is also the place to store raw disk images which are
very much bootable with qemu/kvm it sounds like a misnomer to call the
directory "container". Hence, let's change this sooner rather than
later, and use the generic name, in particular since we otherwise try to
use the generic "machine" preferably over the more specific "container"
or "vm".
commit aceac2f0b652dff701e5815c51c2e372e8fee84d
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 15 01:03:33 2015 +0100
import: rename "gpt" disk image type to "raw"
After all, nspawn can now dissect MBR partition levels, too, hence
".gpt" appears a misnomer. Moreover, the the .raw suffix for these files
is already pretty popular (the Fedora disk images use it for example),
hence sounds like an OK scheme to adopt.
commit d31f44e2818eb00213ca718e05b9bc624e7bfe3f
Author: Moez Bouhlel <bmoez.j at gmail.com>
Date: Wed Jan 14 14:33:32 2015 +0000
fix zsh completion typo
json-see => json-sse
commit 78a8e158da95aa144982f2c8aed354ef91c095b8
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Thu Jan 15 00:07:15 2015 +0100
test-path: do not skip tests if we are not root
We can properly run the tests without being root
commit 68e68ca8106e7cd874682ae425843b48579c6539
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Thu Jan 15 00:07:11 2015 +0100
test-exec: do not skip all the tests
Only 5 tests cannot be executed if we are not root, so just skip them
but not the whole set.
commit 5e4074aa3188ff439c0509908284469807d2749e
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 15 00:51:54 2015 +0100
spawn: downgrade loopback detach errors to debug
Sometimes udev or some other background daemon might keep the loopback
devices busy while we already want to detach them. Downgrade the warning
about it.
Given that we use autodetach downgrading these messages should be with
little risk.
commit ada4799ac5ad2e6c0fe11dc5c096faca8a85876b
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 15 00:47:10 2015 +0100
nspawn: add support for limited dissecting of MBR disk images with nspawn
With this change nspawn's -i switch now can now make sense of MBR disk
images too - however only if there's only a single, bootable partition
of type 0x83 on the image. For all other cases we cannot really make
sense from the partition table alone.
The big benefit of this change is that upstream Fedora Cloud Images can
now be booted unmodified with systemd-nspawn:
# wget http://download.fedoraproject.org/pub/fedora/linux/releases/21/Cloud/Images/x86_64/Fedora-Cloud-Base-20141203-21.x86_64.raw.xz
# unxz Fedora-Cloud-Base-20141203-21.x86_64.raw.xz
# systemd-nspawn -i Fedora-Cloud-Base-20141203-21.x86_64.raw -b
Next stop: teach the import logic to automatically download these
images, uncompress and verify them.
commit 733d15ac7a23c80f2e447f6c2fca0406bc9960db
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 14 23:29:01 2015 +0100
nspawn: pass the container's init PID out via sd_notify()
This is useful for nspawn managers that want to learn when nspawn is
finished with initialiuzation, as well what the PID of the init system
in the container is.
commit 435fdcef52087b99a2bef745eb07a1228ed6d993
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 14 23:18:24 2015 +0100
update TODO
commit 657bdca9e4c0f0163b8c1f139e3f6734d2e0d69a
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 14 23:17:07 2015 +0100
nspawn: fix an incorrect assert comparison
commit 2fbcde7402a26d365b6a8091b912154e6d187ee4
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 14 23:16:28 2015 +0100
loginctl: fix misuse compound literals
The lifetime of compound literals is bound to the local scope, we hence
cannot refernce them outside of it.
commit c7fbd99660363b74ccb3c75d280c158518bc78b3
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 14 23:16:11 2015 +0100
sd-bus: tell Coverity that it's OK not to care for return values in some cases
commit 30535c16924a3da7b47ea87190d929d617d95c5a
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 14 23:09:02 2015 +0100
nspawn: add file system locks for controlling access to container images
This adds three kinds of file system locks for container images:
a) a file system lock next to the actual image, in a .lck file in the
same directory the image is located. This lock has the benefit of
usually being located on the same NFS share as the image itself, and
thus allows locking container images across NFS shares.
b) a file system lock in /run, named after st_dev and st_ino of the
root of the image. This lock has the advantage that it is unique even
if the same image is bind mounted to two different places at the same
time, as the ino/dev stays constant for them.
c) a file system lock that is only taken when a new disk image is about
to be created, that ensures that checking whether the name is already
used across the search path, and actually placing the image is not
interrupted by other code taking the name.
a + b are read-write locks. When a container is booted in read-only mode
a read lock is taken, otherwise a write lock.
Lock b is always taken after a, to avoid ABBA problems.
Lock c is mostly relevant when renaming or cloning images.
commit 805e5dda0a01c99d231824e1a9c4a208418bf342
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 14 22:37:56 2015 +0100
sysv-generator: always use fstatat() if we can
commit b3fae863ef548add2d01c3956ce7720f4eeeca7e
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 14 22:31:03 2015 +0100
sysv-generator: fix memory leak on failure
This fixes a memory leak introduced by
1ed0c19f81fd13cdf283c6def0168ce122a853a9
commit bb4a228207815df88cdf68acd9e46ec19e0d3e30
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 14 22:30:43 2015 +0100
machinectl: fix minor memory leak
commit aa0fff7f9c9fce89210ec764dd892afbdc28c571
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 14 02:22:27 2015 +0100
pty: minor modernization
We initialize structs during declartion if possible
commit 01b725684f6ba54f0db815669e4e07eb0e02fedb
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 14 02:21:51 2015 +0100
machined: use the FS_IMMUTABLE_FL file flag, if available, to implement a "read-only" concept for raw disk images, too
commit 45030287af1e8e76b0feb1cfc3011a0ef2b37d0d
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 14 02:04:17 2015 +0100
util: the chattr flags field is actually unsigned, judging by kernel sources
Unlike some client code suggests...
commit 679bc6cb9016715339aac4ae6b2d5371c6262935
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 14 02:01:42 2015 +0100
ptyfw: add missing error check
commit 8937422f3b8c4a163ffa4df697ef2939161f4f53
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 14 02:01:11 2015 +0100
nspawn: remove the right propagation directory
commit 435fc3176520a58f1c20ccb983c9fb40b30a1471
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Sat Dec 13 04:22:28 2014 +0100
test: hashmap_put behaviour for equal keys
Check string ops hashmap_put() for keys with a different pointer but the same
value.
commit b50191c23f4cb6bac1180491b52e1df1e6c79a0f
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Jan 13 20:05:42 2015 -0500
man: remove "nofail" from systemd.swap(5)
As suggested by Marcos Felipe Rasia de Mello <marcosfrm at gmail.com>.
commit d538bfc71331d2e48363283decd77a61599021db
Author: Cristian Rodríguez <crrodriguez at opensuse.org>
Date: Sun Jan 11 14:50:15 2015 -0300
machinectl: use GNU basename, not the XPG version
commit f0c4b1c3fd827b429ba36aa45fd39e0a023cbf2c
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Jan 13 23:03:11 2015 +0100
refcnt: refcnt is unsigned, fix comparisons
This does not make a difference, but the code was confusing.
commit ab5e3a1bccaf79d65c93fc15ddeaa7595ffe0b86
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 13 20:59:07 2015 +0100
nspawn: --help typo fix
commit 02c74033ed65e7825d1b87ee051820c9fbfa0f50
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 13 20:07:54 2015 +0100
update TODO
commit 43c6d5abacaebf813845934ec8d5e5ee3c431854
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 13 20:50:46 2015 +0100
networkd: propagate IPFoward= per-interface setting also to /proc/sys/net/ipv4/ip_forward
We need to turn on /proc/sys/net/ipv4/ip_forward before the
per-interface forwarding setting is useful, hence let's propagate the
per-interface setting once to the system-wide setting.
Due to the unclear ownership rules of that flag, and the fact that
turning it on also has effects on other sysctl flags we try to minimize
changes to the flag, and only turn it on once. There's no logic to
turning it off again, but this should be fairly unproblematic as the
per-interface setting defaults to off anyway.
commit cd1ddd542136c49831fa34de49321153dcc291e2
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 13 20:16:39 2015 +0100
udev: make use of new one_zero() helper where appropriate
commit 769d324c99aab129148bd25f5f663ef441287d86
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 13 20:07:13 2015 +0100
networkd: make IP forwarding for IPv4 and IPv6 individually configurable
commit db9fd84944807ebea04363dada761613360fa6f9
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 13 20:03:44 2015 +0100
network: IPMasquerade= implies IPForward=, hence remove it
commit fd6d906cf46ecef45ebbb5a361e1dc436f031d7a
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 13 19:56:13 2015 +0100
networkd: rename misnamed boolean
commit cb9fc36a1211967e8c58b0502a26c42552ac8060
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 13 19:48:19 2015 +0100
networkd: introduce an AddressFamilyBoolean enum type
This introduces am AddressFamilyBoolean type that works more or less
like a booleaan, but can optionally turn on/off things for ipv4 and ipv6
independently. THis also ports the DHCP field over to it.
commit 66518acd40fbd99a87e553b2d0904c37c8929fb2
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 13 19:43:16 2015 +0100
journald: allow zero length datagrams again
This undoes a small part of 13790add4bf648fed816361794d8277a75253410
which was erroneously added, given that zero length datagrams are OK,
and hence zero length reads on a SOCK_DGRAM be no means mean EOF.
commit 0dfaa0060711a8332c8eb9f1e10f48fe182d3650
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 13 19:42:02 2015 +0100
nspawn: add "-n" shortcut for "--network-veth"
Now that networkd's IP masquerading support means that running
containers with "--network-veth" will provide network access out of the
box for the container, let's add a shortcut "-n" for it, to make it
easily accessible.
commit bd763d350c7e8bf8b934bd45bc34ac35cdba2a63
Author: Jan Engelhardt <jengelh at inai.de>
Date: Mon Jan 12 20:43:14 2015 +0100
doc: add cross-references between systemd.{link, netdev, network}
commit 2f6379a9ac333ead610bb58808b9b01abe05c1d9
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Jan 13 18:23:53 2015 +0100
doc: network - add comment about default prefix size
Should hopefully make it clear that this is not some magic value, just the default we picked.
Suggested by Jan Engelhardt.
commit 07bde8c0ff9b12e0236374b9f7490909ddf8d213
Author: Daniel Mack <daniel at zonque.org>
Date: Tue Jan 13 15:50:15 2015 +0100
fw-util: fix errno typo for !HAVE_LIBIPTC
commit ec767e6836a701c7bfe6640c103b8b66b2312efb
Author: Patrik Flykt <patrik.flykt at linux.intel.com>
Date: Tue Jan 13 14:27:48 2015 +0200
TODO: DHCPv6 Information Request has been implemented
commit c14db9b32ab90738973071d31f259d1a457d7b4a
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 13 13:54:19 2015 +0100
update TODO
commit b4d8ef7c994c54abb7f389c47f7f099ce7ff9293
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 13 13:53:32 2015 +0100
machined: refuse certain operation on non-container machines, since they cannot work elsewhere
commit 6da023a048c7456c2ca849d9437a88817a1189d6
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 13 13:52:49 2015 +0100
import: make sure we don't mangle file ownerships with the local passwd database when untarring
commit 6d0b55c272ea31d025e8b3c311cea8cda0bfefd7
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 13 13:51:51 2015 +0100
nspawn: add new option "--port=" for exposing container ports on the local host
This exposes an IP port on the container as local port using DNAT.
commit 5a8bcb674f71a20e95df55319b34c556638378ce
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 13 13:47:08 2015 +0100
networkd: add minimal IP forwarding and masquerading support to .network files
This adds two new settings to networkd's .network files:
IPForwarding=yes and IPMasquerade=yes. The former controls the
"forwarding" sysctl setting of the interface, thus controlling whether
IP forwarding shall be enabled on the specific interface. The latter
controls whether a firewall rule shall be installed that exposes traffic
coming from the interface as coming from the local host to all other
interfaces.
This also enables both options by default for container network
interfaces, thus making "systemd-nspawn --network-veth" have network
connectivity out of the box.
commit 76917807eb50ccde58901e8bec7ed3d408d1cc22
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 13 13:44:30 2015 +0100
shared: add minimal firewall manipulation helpers for establishing NAT rules, using libiptc
commit 6cb7fa17b3d89741a5fd3ac807775a3022c7d891
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Tue Jan 13 07:06:31 2015 +0100
core: Fix EACCES check for OOM adjustments
Commit 3bd5c3 added a check for EACCES, but missed the minus sign.
commit 038cf33420afa5f913fe5cbf3e7138574c33d97b
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jan 12 19:15:02 2015 -0500
Remove some fixed items from TODO
commit ee14023fd5720959d3ae22b23ed663efc42608fa
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Mon Jan 12 22:19:34 2015 +0100
zsh-completion: add missing completions for systemd-tmpfiles
commit a80cea68616df5991ed64ed93f956d4377974a21
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Mon Jan 12 22:09:29 2015 +0100
zsh-completion: add missing completions for systemd-run
commit 26bd71f06c842585b184c3c2f29376564102232d
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Mon Jan 12 21:43:45 2015 +0100
zsh-completion: add missing completions for systemd-analyze
commit c285cb5c559638689e3d9e9894a81574ed69d560
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Mon Jan 12 21:31:45 2015 +0100
zsh-completion: add missing -M completion for timedatectl
commit 720e0be0f00f4a7fee808d1cf60db43970900588
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Mon Jan 12 21:26:27 2015 +0100
zsh-completion: add missing completions for coredumpctl
commit 40d6f6a35e7c66ccb8ea060b4539aa2565b4ebf9
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Jan 12 18:25:11 2015 +0100
TODO: update
commit 9a4b012e43f23516373bf398dd9a458439d19939
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Jan 10 01:11:54 2015 +0100
udev: link_config - modernize a bit and fix leakes
Not all of the link_config struct was getting freed.
commit 9c39eb5c88dbca491e97a44acde43f88ef33a236
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Jan 10 00:33:46 2015 +0100
network-intenal: user _cleanup_ macro in parse_ifname
commit 76c37ab6d205c95e8f43ffbc19553b936330195a
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jan 12 12:14:59 2015 -0500
core/mount: remove "fail" again
deb6120920 'man: there's actually no "fail" fstab option, but only
"nofail" removed it from our documentation, which I missed.
fstab(5) only mentions "auto", "noauto", and "nofail". Stick to
those three.
commit a9c8343e83ec09f80a76930573b2592f97ae4283
Author: Daniel Mack <daniel at zonque.org>
Date: Mon Jan 12 18:15:18 2015 +0100
sd-bus: sync kdbus.h (API break)
Just a simple variable rename, and a dropped flag that sd-bus didn't make
use of.
commit 0c47569ac9eb365ebeb9342f47fb98d52bcc4704
Author: Daniel Mack <daniel at zonque.org>
Date: Mon Jan 12 13:46:39 2015 +0100
core/mount: use isempty() to check for empty strings
strempty() will return an empty string in case the input parameter is
a NULL pointer. The correct test to check for an empty string is
isempty(), so use that instead.
This fixes a regression from commit 17a1c59 ("core/mount: filter out
noauto,auto,nofail,fail options").
commit b9e616cc2256501f484f138999ec63a0094f5c4f
Author: Carlos Garnacho <carlosg at gnome.org>
Date: Sun Jan 11 20:47:19 2015 +0100
udev: Add builtin/rule to export evdev information as udev properties
This rule is only run on tablet/touchscreen devices, and extracts their size
in millimeters, as it can be found out through their struct input_absinfo.
The first usecase is exporting device size from tablets/touchscreens. This
may be useful to separate policy and application at the time of mapping
these devices to the available outputs in windowing environments that don't
offer that information as readily (eg. Wayland). This way the compositor can
stay deterministic, and the mix-and-match heuristics are performed outside.
Conceivably, size/resolution information can be changed through EVIOCSABS
anywhere else, but we're only interested in values prior to any calibration,
this rule is thus only run on "add", and no tracking of changes is performed.
This should only remain a problem if calibration were automatically applied
by an earlier udev rule (read: don't).
v2: Folded rationale into commit log, made a builtin, set properties
on device nodes themselves
v3: Use inline function instead of macro for mm. size calculation,
use DECIMAL_STR_MAX, other code style issues
v4: Made rule more selective
v5: Minor style issues, renamed to a more generic builtin, refined
rule further.
commit b3e486b8194f238fdb7cdf977cb6943305b34b9c
Author: Rafael Ferreira <rafael.f.f1 at gmail.com>
Date: Sun Jan 11 18:11:42 2015 -0500
catalog: add pt_BR translation
https://bugs.freedesktop.org/show_bug.cgi?id=88271
commit 5701fbbbcfb3492074e2ccaa4431ff8b904aad0b
Author: Rafael Ferreira <rafael.f.f1 at gmail.com>
Date: Sat Jan 10 13:33:13 2015 -0200
po: add Brazilian Portuguese translation
https://bugs.freedesktop.org/show_bug.cgi?id=88271
commit a75f4e2a02e287294b21ae9e5b1f28b2f8faea39
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Jan 11 23:40:46 2015 -0500
fstab-util: fix priority parsing and add test
commit 7f76961982e03d4d5f781e7e7113fc7eff970f82
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Jan 11 17:21:17 2015 -0500
shared/util: respect buffer boundary on incomplete escape sequences
cunescape_length_with_prefix() is called with the length as an
argument, so it cannot rely on the buffer being NUL terminated.
Move the length check before accessing the memory.
When an incomplete escape sequence was given at the end of the
buffer, c_l_w_p() would read past the end of the buffer. Fix this
and add a test.
commit e01ff428993f0c126f010b5625002e6a0a8aff4a
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Jan 11 16:57:02 2015 -0500
core/load-fragment: avoid allocating 0 bytes when given an invalid command
With a command line like "@/something" we would allocate an array with
0 elements. Avoid that, and add a test too.
commit 4d8629de8bd0f837f99981267d10e71d1f72e47d
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Jan 11 16:52:50 2015 -0500
test-unit-file: don't access out-of-bounds memory
Fixes an error introduced by me when the test was added.
commit 17a1c597c5f9be1c25431a764155cd50c0d074b7
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Jan 11 00:27:37 2015 -0500
core/mount: filter out noauto,auto,nofail,fail options
We passed the full option string from fstab to /bin/mount. It would in
turn pass the full option string to its helper, if it needed to invoke
one. Some helpers would ignore things like "nofail", but others would
be confused. We could try to get all helpers to ignore those
"meta-options", but it seems better to simply filter them out.
In our model, /bin/mount simply has no business in knowing whether the
mount was configured as fail or nofail, auto or noauto, in the
fstab. If systemd tells invokes a command to mount something, and it
fails, it should always return an error. It seems cleaner to filter
out the option, since then there's no doubt how the command should
behave.
https://bugzilla.redhat.com/show_bug.cgi?id=1177823
commit b9f111b93f9f442f00266f338b14f25ca8685352
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Jan 11 00:04:00 2015 -0500
Support negated fstab options
We would ignore options like "fail" and "auto", and for any option
which takes a value the first assignment would win. Repeated and
options equivalent to the default are rarely used, but they have been
documented forever, and people might use them. Especially on the
kernel command line it is easier to append a repeated or negated
option at the end.
commit a6dba97829e345772fae7c1d859e9fe0570ac42b
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Jan 10 23:06:52 2015 -0500
cryptsetup-generator: remove duplicated function
commit c5e04d51277994cca29234b33a6b8fc90a183cf3
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Jan 10 22:59:44 2015 -0500
fstab-util: detect out-of-range pri= assignments
We would silently ignore them. One would have to be crazy
to do assign an out of range value, but simply ignoring it
bothers me.
commit 266fd0eabca6b7f10b013c7e4b5c06adc43e1b73
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Jan 11 17:35:31 2015 -0500
.gitignore: add new tests and sort tests alphabetically
commit d15d0333be6a1ca7fdd99a1881d967b6be8f387a
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jan 9 16:58:29 2015 -0500
Add new function to filter fstab options
This fixes parsing of options in shared/generator.c. Existing code
had some issues:
- it would treate whitespace and semicolons as seperators. fstab(5)
is pretty clear that only commas matter. And the syntax does
not allow for spaces to be inserted in the field in fstab.
Whitespace might be escaped, but then it should not seperate
options. Treat whitespace and semicolons as any other character.
- it assumed that x-systemd.device-timeout would always be followed
by "=". But this is not guaranteed, hasmntopt will return this
option even if there's no value. Uninitialized memory could be read.
- some error paths would log, and inconsistently, some would just
return an error code.
Filtering is split out to a separate function and tests are added.
Similar code paths in other places are adjusted to use the new function.
commit 1e39ff926f815d241721ed9486945cf599ef8c2f
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jan 9 13:34:37 2015 -0500
network: apply static addresses in specified order
https://bugs.freedesktop.org/show_bug.cgi?id=83270
commit 502f1733e320b1339beafa949a41db3027c46ec6
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jan 9 13:34:01 2015 -0500
shared/list: add LIST_APPEND
commit 33e1e5a756300e29c74fdc59ea762f9394df8368
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jan 8 23:34:21 2015 -0500
path-lookup: allow /run to override /etc in generator search
Generators are different than unit files: they are never automatically
generated, so there's no point in allowing /etc to override /run. On
the other hand, overriding /etc might be useful in some cases.
commit 4f1a33dd0d62171bbeac74859642b8ff0ab547b8
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jan 8 23:29:33 2015 -0500
test-path-lookup: add simple test for path lookup functions
commit aac7766c107273abdc5d6f52f9a9f88d18cb14b3
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jan 8 21:21:12 2015 -0500
test-util: make sure that masking and overriding works
commit e801700e9acdde60078eb1d41b41b06369b83541
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jan 8 20:47:25 2015 -0500
Implement masking and overriding of generators
Sometimes it is necessary to stop a generator from running. Either
because of a bug, or for testing, or some other reason. The only way
to do that would be to rename or chmod the generator binary, which is
inconvenient and does not survive upgrades. Allow masking and
overriding generators similarly to units and other configuration
files.
For the systemd instance, masking would be more common, rather than
overriding generators. For the user instances, it may also be useful
for users to have generators in $XDG_CONFIG_HOME to augment or
override system-wide generators.
Directories are searched according to the usual scheme (/usr/lib,
/usr/local/lib, /run, /etc), and files with the same name in higher
priority directories override files with the same name in lower
priority directories. Empty files and links to /dev/null mask a given
name.
https://bugs.freedesktop.org/show_bug.cgi?id=87230
commit 4968105790c65af58d4ab42bffa2a4bedc0be8ee
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jan 8 17:30:07 2015 -0500
Simplify execute_directory()
Remove the optional sepearate opening of the directory,
it would be just too complicated with the change to
multiple directories.
Move the middle of execute_directory() to a seperate
function to make it easier to grok.
commit 87b934960ab514dec4b96ed4ef23c40bc61d3ceb
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Jan 11 17:23:24 2015 +0100
bus-proxy: implement 'at_console'
The 'at_console' policy-category allows to apply policy-items to clients
depending on whether they're run from within a valid user-session or not.
We use sd_uid_get_seats() to check whether a user has a valid seat (which
excludes remote-sessions like ssh).
commit b49c7806a395fd655edd19785f56874b28f5a24c
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Jan 11 15:27:18 2015 +0100
bus-proxy: print message direction in policy logs
Make sure to print "dbus-1 to kernel" or "kernel to dbus-1" in policy logs
to better diagnose the situation.
commit b5cfc2b953fca74bf4c42a4e9e38abe72cc26493
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Jan 11 15:14:14 2015 +0100
bus-proxy: fix receiver policy on dbus-1 to kdbus signals
If a dbus-1 client sends a broadcasted signal via the bus-proxy to kdbus,
the bus-proxy has no idea who the receiver is. Classic dbus-daemon has
bus-access and can perform policy checks for each receiver, but we cant.
Instead, we know the kernel will perform receiver policy checks for
broadcasts, so we can skip the policy check and just push it into the
kernel.
This fixes wpa_supplicant which has DENY rules on receive_type=signal for
non-root. As we never know the target, we always DENY all broadcasts from
wpa_supplicant.
Note that will still perform receiver-policy checks for signals that we
get from the kernel back to us. In those cases, we know the receiver
(which is us).
commit fa188b9b242326731554dbf80f8e118285cc7676
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Jan 11 14:54:33 2015 +0100
bus-proxy: fix swapped path/interface debug messages
The policy debug messages swapped "path=" and "interface=", fix this.
commit 0042d824e3616aaf2e3eec23d3b2e6aec7c0470c
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Jan 11 14:13:19 2015 +0100
bus-proxy: fix policy for expected/non-expected reply tags
dbus-1 distinguishes expected and non-expected replies. An expected reply
is a reply that is sent as answer to a previously forwarded method-call
before the timeout fires. Those replies are, by default, forwarded and
DENY policy tags are ignored on them (unless explicitly stated otherwise).
We don't track reply-windows in the bus-proxy as the kernel already does
this. Furthermore, the kernel prohibits any non-expected replies (which
breaks dbus-1, but it was an odd feature, anyway).
Therefore, skip policy checks on replies and always let the kernel deal
with it!
To be correct, we should still process DENY tags marked as
send_expected_reply=true (which is *NOT* the default!). However, so far we
don't parse those attributes, and no-one really uses it, so lets not
implement it for now. It's marked as TODO if anyone feels like fixing it.
commit 24b759c5d79c1a4993c05c1ef7f44f9ff6d7f463
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Jan 11 03:13:46 2015 +0100
log: fix log_full_errno() with custom facilities
Make sure to extract the log-priority when comparing against
max-log-level, otherwise, we will always drop those messages.
This fixes bus-proxyd to properly send warnings on policy blocks.
commit 1325ec4280dd3f00f4879c5feadd524f7ba52f7e
Author: Kay Sievers <kay at vrfy.org>
Date: Sun Jan 11 00:25:31 2015 +0100
build-sys: fix link-order and avoid "label" functions in libsystemd-shared
commit d031efb271130f07b468a5b59a02a9ec766c7f92
Author: Kay Sievers <kay at vrfy.org>
Date: Sat Jan 10 04:16:18 2015 +0100
kdbus.h: update
commit 1401ec2d34bcde406ced531a72dc46ebaf332594
Author: Kay Sievers <kay at vrfy.org>
Date: Fri Jan 9 21:23:48 2015 +0100
push xorg information to the systemd --user instance
commit fa607802f332e06f4044c3eb38dbea41076c803d
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 9 21:32:29 2015 +0100
update TODO
commit 906b76b27be410af25aa7f79b4cfdb35f7f32fc7
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 9 21:30:39 2015 +0100
loginctl: make session/user arguments optional for a number commands, and imply calling session/user instead
This turns "lock-session", "activate", "unlock-session",
"enable-linger", "disable-linger" into commands that take no argument,
optionally in which case the callers session/user is implied.
commit 997eadb5534cbd3d1de3d93f6489a3b4d03405e1
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 9 21:25:23 2015 +0100
sd-bus: even if we need a cookie when sending a message there's no need to needlessly send it if we don't actually need it
commit d714387ed7003ce011a3ed0f1a604a7984a8a68d
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 9 21:24:37 2015 +0100
bus-proxy: make sure we have creds when two legacy clients talk to each other
commit 4540817b0d16ccd22d81a4120d3bc67e360809bb
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 9 20:28:32 2015 +0100
hwdb: add Kay's Laser Mouse to the dpi database
commit 48aae6d6a051acd9c0630fab1e79b82c847e538b
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 9 19:30:01 2015 +0100
bus-proxy-test: show parsed system/session policy
commit 585b46db6baedf61aa94bf8fe9322a97bd06013d
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 9 19:28:18 2015 +0100
bus-proxy: eat up "*" matches, they are pointless
commit f5886c92ace2fdd5b9d389eaf3883ac3034050fa
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 9 19:25:23 2015 +0100
bus-proxy: dbus-daemon implies that connections from UIDs that are identical to the bus owner should be allowed
Hence, copy this behaviour for bus-proxy too.
commit a2be9e047e6e0b243fe946f972d5d4d04db140e5
Author: Kay Sievers <kay at vrfy.org>
Date: Fri Jan 9 18:46:08 2015 +0100
bus-proxyd: xml - consider empty tags as recv
commit fe21f16764147d51819a904d57ac36967f9913e3
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 9 18:34:46 2015 +0100
bus-proxy: make sure sure eavesdrop= XML attributes are properly handled
commit 8cb4ab0058e51f1fba93683d145ef95f97c2fa86
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 9 16:25:47 2015 +0100
logind: unify how we cast between uid_t and pointers for hashmap keys
commit 309a29dfd24f4175de334ca1593e3fe2436ab082
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 9 16:14:19 2015 +0100
logind: when a bus call is done on a session, user or seat, optionally determine them from the caller credentials
More specifically, if an operation is requested on a session with an
empty name, the caller's session is used. If an operation is requested
on a seat with an empty name, the seat of the caller's session is used.
Finally, if an operation on the user with UID -1 is requested, the user
of the client's session is used (and not the UID of the client!).
commit 3909ba34ec9b2c63d9938b6ba37af54a214fcff3
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 9 01:47:03 2015 +0100
man: document that 'loginctl activate' only takes a single argument
commit b298e98413a8bd112f0f7bd91a0dff3e7e931424
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 9 01:44:40 2015 +0100
logind: include "self" object links in dbus introspection
Makes "busctl introspect" a lot more fun.
commit 86e1f46f92ff4c447ea32a6892ea394c6e6ef541
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 9 01:43:53 2015 +0100
loginctl: make "loginctl session-status" without session ID show the caller's session status
Similar for user-status and seat-status.
commit ff0af2a1660bb122f29713c9b2aff8179f165bb7
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Jan 9 00:13:33 2015 +0100
core: modernize execution code a bit
Among other things, avoid log_struct() unless we really need it.
Also, use "r" as variable to store function errors in, instead of "err".
"r" is pretty much what we use everywhere else, hence using the same
here make sense.
FInally, in the child, when we want to log, make sure to open the
logging framework first, since it is explicitly closed in preparation
for the exec().
commit b914ea8d379b446c4c9fac4ba181771676ef38cd
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Jan 9 09:09:59 2015 -0500
journal: do not check for number of files
Now that we bump rlimit, we do not really know how many files
we can open. Remove the check.
https://bugzilla.redhat.com/show_bug.cgi?id=1179980
commit 86d81e502bf7f923e4bb9c30de85f04e3497c839
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Fri Jan 9 13:54:19 2015 +0100
systemctl: add missing output modes to help message
commit e4e5a85f34db9b18a5ae84a659fcdaf7e494dec1
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Fri Jan 9 13:53:23 2015 +0100
shell-completion: add missing output modes
https://bugs.freedesktop.org/show_bug.cgi?id=88216
commit 7ce9812173bd32dd46f2804b50815abf3fc18f11
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Jan 9 00:53:00 2015 +0100
bus: append bloom-filter to all signals
Make sure to append bloom-filters to all signal-messages, not only
broadcasts.
commit 5ebbc3f32fc2c5f04dcb2647f51674a0532f1d18
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date: Fri Jan 9 09:33:27 2015 +1000
hwdb: add missing line between the G400 entries
Error, DATA expected but got 'mouse:usb:v046dpc24c:name:Logitech G400s Optical
Gaming Mouse:' in '/etc/udev/hwdb.d/70-mouse.hwdb':
Error, MATCH expected but got ' MOUSE_DPI=400 at 1000 *800 at 1000 2000 at 1000
4000 at 1000' in '/etc/udev/hwdb.d/70-mouse.hwdb':
Introduced in 6366e349
commit 3bd5c32d939af0165a3aceff607101ba25efc2a0
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 8 23:21:01 2015 +0100
core: check both EPERM and EACCES for OOM adjustments
commit a47e6701bfc45519a4e038daa52e9236e932f59a
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 8 23:13:28 2015 +0100
update TODO
commit d5243d628624038567c576e9b69c1d775eb05a05
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 8 23:12:16 2015 +0100
core: make EPERM errors when applying OOM adjustment for forked processes non-fatal
This should be useful for user namespaces.
commit f7621db0e38c3e96d48766ae648f1b7a0949ea13
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 8 23:11:35 2015 +0100
loginctl: port to generic verbs.h API
commit a03fe1a5d56be86fcc383090e191224590a1ab5d
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 8 19:16:44 2015 +0100
man: remove references to systemadm from systemctl man page
The tool is badly maintained and we shouldn't refence such old cruft.
commit f2068bcce01db31cdc9422f44185f3b49c04d2ce
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 8 19:15:49 2015 +0100
machined: when cloning a raw disk image, also set the NOCOW flag
commit e45fc5e738b0b7700e8b4f3c4b25c58a49b44b27
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 8 19:14:08 2015 +0100
man: bring machinectl man page up-to-date
commit b619ec8f83ee3f524dae1f4692b26731bbe68616
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 8 18:08:40 2015 +0100
man: bring systemctl man page and --help text into the same order
commit 17cd091332040b9a3658db9374440fce7805ca54
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 8 18:07:25 2015 +0100
man: add the same command sections to the man page as the --help text shows
commit 079dac08c6a2725ce6e5ed2afa3f03d057c999c6
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 8 15:33:46 2015 +0100
systemctl,loginctl: start polkit agent for all polkit enabled operations
commit acf97e213e69a97e63ab8f7fad7ecd53608c757a
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 8 15:23:54 2015 +0100
machinectl: given that machinectl invokes a number of polkit enabled methods, start the polkit agent on terminals
commit 8b0cc9a36c8f92f010f2e8465942d2cd7c580d78
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 8 15:09:12 2015 +0100
machinectl: show most recent log output in "machinectl status", too
commit 3c7560019e623e6e0d03a860b4f19a3a8715feca
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 8 14:38:52 2015 +0100
loginctl: show the 10 most recent log user/session log lines in "loginctl user-status" and "loginctl session-status"
commit 3a8d368a6184ca8b7422330b53513983088671f2
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date: Fri Jan 9 07:53:55 2015 +1000
hwdb: note that we care about the maximum frequency in MOUSE_DPI
Devices with dynamic frequency scaling adjust the frequency as needed. For
those we only care about the maximum frequency, not the various in betweens.
https://bugs.freedesktop.org/show_bug.cgi?id=87435#c8
commit dba7635999c99c92220dc2a6b4d6363b3cd686a1
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jan 8 16:45:34 2015 -0500
hwdb: adjust max frequency of Logitech RX 250
https://bugs.freedesktop.org/show_bug.cgi?id=87435
commit 8c5463585df633ca302824559888b62de5b4ba20
Author: Carlos Morata Castillo <cmc809 at inlumine.ual.es>
Date: Thu Jan 8 21:51:49 2015 +0100
bash-completion: systemd-nspawn update
*Autocompletion for dirs, doesn't leave until you press space.
*Added tmpfs, volatile and network-macvlan options.
I tried with the SELinux options with seinfo(setools-console), but too
messy to get it right. Even Daniel Walsh haven't done it yet. :)
commit 7376e835289a3f97174a641a1ca4b7dbda997030
Author: Andrey Chaser <chaser.andrey at gmail.com>
Date: Thu Jan 8 16:21:06 2015 -0500
cryptsetup: support header= option
https://bugs.freedesktop.org/show_bug.cgi?id=66396
commit d2f0e78f2b72620ecf088ea756f9958e947f1182
Author: Dave Reisner <dreisner at archlinux.org>
Date: Fri Dec 19 22:59:51 2014 -0500
test-verbs: add unit tests for verbs minilib
commit ee9c4ff4c89584ecf4e64f330fba627df099f4ad
Author: Dave Reisner <dreisner at archlinux.org>
Date: Wed Jan 7 21:54:45 2015 -0500
doc: fix stale references to systemd-verify
This was subsumed into systemd-analyze back in 142c4ecaa98.
commit de59d29e8abc32ff8e5de6a36ddf9d04d63ccb47
Author: Peter Mattern <matternp at arcor.de>
Date: Sat Dec 20 15:09:19 2014 +0100
man: add hostnamed chassis type "embedded" to machine-info(5)
man machine-info lacks hostnamed chassis type "embedded" as introduced in 218. The following lines should fix this.
commit d9215d05f7206d04b4af2da3d4bdcaceeacd436a
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jan 8 14:45:57 2015 -0500
man: mention where timesyncd keeps the timestamp
commit b864535791844ce4f9437cebefaf3c37b3741b4a
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Jan 8 21:06:14 2015 +0100
bus-proxyd: fix EPERM on replies
Imagine a kdbus peer sending a method-call without EXPECT_REPLY set
through the proxy to a dbus1 peer. The proxy turns the missing
EXPECT_REPLY flag into a dbus1 NO_REPLY_EXPECTED flag. However, if the
receipient ignores that flag (valid dbus1 behavior) and sends a reply, the
proxy will try to forward it to the original peer. This will fail with
EPERM as the kernel didn't track the reply.
We have two options now: Either we ignore EPERM for reply messages, or we
track reply-windows in the proxy so we can properly ignore replies if
EXPECT_REPLY wasn't set.
This commit chose the first option: ignore EPERM for replies. The only
down-side is that replies without matching method call will no longer be
forwarded by the proxy. This works on dbus1, though.
Nobody sane does this, so lets ignore it.
commit 426bb5ddb8ff122d3e08b0480466718b68485e70
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Jan 8 20:58:59 2015 +0100
bus-proxyd: optimize replies if they're not requested
If a caller does not request a reply, dont send it. This skips message
creation and speeds up NO_REPLY_EXPECTED cases. Note that sd-bus still
handles this case internally, but if we handle it in bus-proxyd, we can
skip the whole message creation step.
commit 9dc41cc5974a4af291de0c67b53050cceee5f6a4
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Jan 8 17:43:48 2015 +0100
bus-proxy: augment credentials from /proc for cmdline update
dbus1 does not provide cmdline, so we have to augment our credentials from
/proc to beautify the bus-proxyd cmdline. We dont use this for anything
but beautification, so there shouldn't be any problems due to /proc
pid-recycling races.
This fixes bus-proxyd to no longer display 'xxxxxxxxxxxxxxxxxxxxxxxxxxx'
in its cmdline.
commit 080e78329a742dd95bdee321fee81c305e073491
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Jan 6 19:50:25 2015 +0100
nspawn: fix error message when mknod fails
commit a0539d7753d6a3ede87bf5e57d7c40d5bc1dc230
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Jan 6 19:12:38 2015 +0100
path-util: plug leak
commit 34a317e1ccb0053d49383eb5e2f73dec97affc4c
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Jan 8 16:13:39 2015 +0100
dbus1-generator: fix array sentinal
Add a {} sentinal entry so the config-iterator can properly iterate all
array elements. Fixes a segfault in the dbus1-generator.
commit 3383f7e956fc7889e1ba3ff2998edd6a47357896
Author: Umut Tezduyar Lindskog <umut.tezduyar at axis.com>
Date: Tue Dec 16 08:45:28 2014 +0100
build: print conditions of ldconfig, hibernate configs
commit 23539f67792d88c675b56cace0c22e022563493d
Author: Lukasz Skalski <l.skalski at samsung.com>
Date: Thu Jan 8 11:10:21 2015 +0100
sd-bus: fix copy-paste error
commit 92ff080be100aff15f292e2631921131c610afe7
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 8 03:20:10 2015 +0100
update TODO
commit de45d726034f33afdb0a185e62fc61bf10a0acd2
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 8 03:17:50 2015 +0100
journal: bump RLIMIT_NOFILE when journal files to 16K (if possible)
When there are a lot of split out journal files, we might run out of fds
quicker then we want. Hence: bump RLIMIT_NOFILE to 16K if possible.
Do these even for journalctl. On Fedora the soft RLIMIT_NOFILE is at 1K,
the hard at 4K by default for normal user processes, this code hence
bumps this up for users to 4K.
https://bugzilla.redhat.com/show_bug.cgi?id=1179980
commit 2ac23519d04835e8d8dfbce3d08d9ff76db58a68
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 8 01:59:58 2015 +0100
udevadm: don't hit an assert when obsolete parameters are passed
https://bugzilla.redhat.com/show_bug.cgi?id=1178051
commit 07289967bc8fc32fc2cc65e8946da70e2853d290
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 8 01:28:15 2015 +0100
update TODO
commit d61b600dde1f267a408440011aa980e0ed44bea6
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 8 01:27:13 2015 +0100
util: make it easy to initialize the crtime from the current time in fd_setcrtime()
commit dfd1520d3ab98cfa376f2d84ed1e7887d013720d
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 8 01:25:40 2015 +0100
import: also set NOCOW for gpt disk images
Given the write patterns on disk images, we better should turn COW off
for them. In particular as the file systems used inside the disk images
should do their own data integrity checks anyway and we don't need
multiple layers of it.
commit 11689d2a021d95a8447d938180e0962cd9439763
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Jan 8 01:22:29 2015 +0100
journald: turn off COW for journal files on btrfs
btrfs' COW logic results in heavily fragment journal files, which is
detrimental for perfomance. Hence, turn off COW for journal files as we
create them.
Turning off COW comes at the cost of data integrity guarantees, but this
should be acceptable, given that we do our own checksumming, and
generally have a pretty conservative write pattern.
Also see discussion on linux-btrfs:
http://www.spinics.net/lists/linux-btrfs/msg41001.html
commit 3c4230a5afb27faec2176d4642c0e2e145971b5c
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 23:02:08 2015 +0100
util: upgrade default $TERM from vt102 to vt220 if we have no idea about the connected terminal
So far, if we had no knowledge about the correct $TERM we defaulted to
v102, as a safe, conservative choice. However, the terminfo data for
vt102 is not aware of pageup/pagedown, which makes "less" much harder
work with than necessary. Setting vt220 allows them to work correctly.
"vt220" should be a sufficiently safe choice too, given that xterm,
gnome-terminal and the linux console all strive to implement vt220 as
baseline, already to pass pageup/pagedown correctly to apps.
Effectively, with this change "journalctl -e" run inside a
"systemd-nspawn" terminal will now run a pager where pageup/pagedown
works, which is quite an improvement of usability for containers.
commit 2efe2438fd65ddda79551f97bf85160e520d52d8
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 22:51:48 2015 +0100
bus-util: fix error number output when waiting for job
commit 1a4873c499aa01478ee2e3b9c0bc967a961d7645
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 22:19:59 2015 +0100
update TODO
commit 78ad7cf1b9d0379f1ccc516f2555cb1476ca60bd
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 22:19:02 2015 +0100
units: make resolved pull in its own .busname unit, but only on kdbus systems
The daemon requires the busname unit to operate, since it contains the
policy that allows it to acquire its service name.
commit 8545f7ceaa57734236e54614897d40b673a16795
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 22:08:25 2015 +0100
service: automatically create After= dependency from services to their .busname units, if BusName= is set
commit b02cb41c78c61c27bf1432e19f241a3c3d47a419
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 22:07:09 2015 +0100
conf-parse: don't accept invalid bus names as BusName= arguments in service units
commit 978553ce5e85a57a203be8256e59f304c8c46f3d
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 22:05:20 2015 +0100
conf-parse: make syntax logging functions behave more like other log functons
In particular, don't patch the error number to EINVAL if 0, and don't
negate it.
(Also, add do {} while (false) around multi-line macro)
commit 1535ef321f9f62c0825e811ebd25c09b88aab852
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 21:54:31 2015 +0100
units: improve Description= for systemd's own busname unit
commit 6366e34991cd560be5260c9bfaf496bf396bf184
Author: Jonas Ådahl <jadahl at gmail.com>
Date: Wed Jan 7 16:23:37 2015 +0800
hwdb: mouse DPI data, Logitech Gaming Mouse G400
commit 92d66625794057081046f051f7564e0789de0ace
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 20:42:14 2015 +0100
busctl: exit cleanly when the bus connection is severed
commit 52cd587789b9452e6e7d5f2f9b2ea652f9ad036e
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 20:36:23 2015 +0100
sd-bus: when we synthesize messages, initialize timestamps ourselves
commit d29ae2914e1146f45ff4104faafef5331837bed7
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 20:25:30 2015 +0100
sd-bus: unify how we set the sender of synthetic messages
commit 76877fb9ccb7f9f921ea921cf692f4d2774d590c
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 19:53:39 2015 +0100
sd-bus: make use of the newly added timestamps on kdbus kernel messages
commit 210a68826fac0f6525719cc6044c7858c655986a
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 19:29:14 2015 +0100
sd-bus: always catch name requests for the special names "org.freedesktop.DBus" and "org.freedesktop.DBus.Local" and refuse them
commit b80c66ba9836456de5260e4a1b696ba25561f613
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 19:18:04 2015 +0100
update TODO
commit 0b63e2789f984e84f40bf6e49f5da15c87298ced
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 19:13:48 2015 +0100
machinectl: prettify "machinectl list" output
commit 1ed0c19f81fd13cdf283c6def0168ce122a853a9
Author: Michael Biebl <biebl at debian.org>
Date: Fri Nov 28 06:04:48 2014 +0100
sysv-generator: initialize units before use to ensure correct ordering
The original loop called fix_order() on each service immediately after
loading it, but fix_order() would reference other units which were not
loaded yet.
This resulted in bogus and unnecessary orderings based on the static
start priorities.
Therefore call load_sysv() for every init script when traversing them in
enumerate_sysv(). This ensures that all units are loaded when
fix_order() is called.
Bug-Debian: https://bugs.debian.org/771118
commit 6ce02c2a3a2aa888c3e074ae235d94808a165f9a
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 18:00:38 2015 +0100
update TODO
commit dbda6dce3d250cee3a9d2bd1591ec1746a43585f
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 17:40:10 2015 +0100
man: document nss-mymachines
commit 49aa61a550b3baadb1fb50e586d8fbe8b642025f
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 17:19:46 2015 +0100
man: add an alias to libnss_myhostname.so2 for nss-myhostname
The module appears under the name "libnss_myhostname.so.2" in the file
system, hence let's link it up under that name.
commit b311d32ff4fac5335aa8eea479bda49131ecae75
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 17:14:04 2015 +0100
man: rework nss-myhostname man page
Remove a number of incorrect links, and explain that "localhost" and
"gateway" are now resolved by it, too.
commit 5b728e6ba17c39e0787ad81b96a5582f4390f091
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 14:49:27 2015 +0100
Update TODO
commit da054c3782f25b3b18243f6c76dcfcf90ba70274
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 14:46:45 2015 +0100
ptyfwd: simplify how we handle vhangups a bit
commit 5743a5852d2ab6ad7f589c255afcfdf523d60ba8
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 14:43:10 2015 +0100
btrfs-util: rework how we iterate through the results of the TREE_SEARCH results
Let's introduce some syntactic sugar with iteration macros, and add
correct key increment calls.
commit b7e7184634d573fb73143210962acce205f37f61
Author: Michael Biebl <biebl at debian.org>
Date: Mon Jan 5 09:49:44 2015 +0100
sysv-generator: handle Provides: for non-virtual facility names
The list of provided facility names as specified via Provides: in the
LSB header was originally implemented by adding those facilities to the
Names= property via unit_add_name().
In commit 95ed3294c632f5606327149f10cef1eb34422862 the internal SysV
support was replaced by a generator and support for parsing the Names=
option had been removed from the unit file parsing in v186.
As a result, Provides: for non-virtual facility was dropped when
introducing the sysv-generator.
Since quite a few SysV init scripts still use that functionality (at
least in distros like Debian which have a large body of SysV init
scripts), add back support by making those facility names available via
symlinks to the unit filename to ensure correct orderings between
SysV init scripts which use those facility names.
Bug-Debian: https://bugs.debian.org/774335
commit c006826886d2796b10ecc09f88d460ca642d3c63
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 03:08:29 2015 +0100
update TODO
commit 0ec5543c4c0318552a4dcdd83210793347b93081
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 03:08:00 2015 +0100
machinectl: make sure that "machinectl login" exits immediately when the machine it is connected to dies
commit f7ad54a301e4ae8dceab54d3ab3934e56c1134ea
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 02:14:14 2015 +0100
util: make use of kcmp() to compare fds, if it is available
commit a7e07206021c6484a8d33c6ee156ecfb5b90534c
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 01:32:13 2015 +0100
util: don't fail recursive bind mounting if we cannot read the mount flags from an obstructed mounted
commit 2339fc936a1f0b1c60cc8a3446a1dbf994c6aaf3
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Jan 7 01:18:13 2015 +0100
core: implement serialization/deserialization of fd store elements
commit 1e95893a89b87e4ed656910e30c430e583bc8133
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 6 20:33:46 2015 +0100
tmpfiles: make gcc shut up
commit b9a1617d75c16a48cccf4ff135013dca9af94e7d
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 6 20:27:29 2015 +0100
journal: consider file deletion errors a reason for rotation
commit f27a386430cc7a27ebd06899d93310fb3bd4cee7
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 6 19:51:03 2015 +0100
journald: whenever we rotate a file, btrfs defrag it
Our write pattern is quite awful for CoW file systems (btrfs...), as we
keep updating file parts in the beginning of the file. This results in
fragmented journal files. Hence: when rotating files, defragment them,
since at that point we know that no further write accesses will be made.
commit 7c75c5ca68970d2d47f211f068883e9b8c3ff5e7
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 6 19:50:52 2015 +0100
Update TODO
commit 1db50423ba427565f92c05f3aaeab351860e30bc
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Jan 6 09:53:12 2015 -0500
tmpfiles: finish with EXIT_FAILURE if anything failed
Return value is successful only if everything succeeded.
commit 553d2243e2a42783b8bb94addfb752b802c23311
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Jan 6 00:29:40 2015 -0500
tree-wide: remove unnecessary LOG_PRI
LOG_DEBUG is already a log level, there is no need to use LOG_PRI which
is for filtering out the facility.
commit 5dabb1e04e4521abf040e77a8322b70e7acdc7b0
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Jan 6 00:26:26 2015 -0500
journal-upload: enable curl debug output conditionally
https://bugs.freedesktop.org/show_bug.cgi?id=86464
commit 358e019c6e5e18c272ceecd2cdb6838af7389ffb
Author: Gabor Kelemen <kelemeng at gnome.hu>
Date: Fri Jan 2 23:02:16 2015 +0100
po: Initial Hungarian translation
https://bugs.freedesktop.org/show_bug.cgi?id=87982
commit 995084c7b4683190404ec90f8924b3433b5a1a18
Author: Chris Atkinson <cwa at pipeline.com>
Date: Thu Jan 1 16:35:34 2015 -0500
man: clarify path escaping and reference systemd-escape
This patch adds more detail to the description of how path escaping
operates and provides a pointer to the systemd-escape program. Either
would serve to answer the question raised in the bug report, so
hopefully this will allow it to be closed.
https://bugs.freedesktop.org/show_bug.cgi?id=87688
commit 15f7a395c8f0b493c5ab8f57e6af7db7ad14688a
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 6 03:16:07 2015 +0100
build-sys: add two more missing makefile links
commit 17a20d64912e95ea90380381f85e9ef7fd56ff67
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 6 00:31:38 2015 +0100
machined: simplification
commit 13790add4bf648fed816361794d8277a75253410
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 6 00:30:25 2015 +0100
journald: allow restarting journald without losing stream connections
Making use of the fd storage capability of the previous commit, allow
restarting journald by serilizing stream state to /run, and pushing open
fds to PID 1.
commit a354329f724d6ce913d2ccffb2be8f3327a67faa
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Jan 6 00:26:25 2015 +0100
core: add new logic for services to store file descriptors in PID 1
With this change it is possible to send file descriptors to PID 1, via
sd_pid_notify_with_fds() which PID 1 will store individually for each
service, and pass via the usual fd passing logic on next invocation.
This is useful for enable daemon reload schemes where daemons serialize
their state to /run, push their fds into PID 1 and terminate, restoring
their state on next start from the data in /run and passed in from PID
1.
The fds are kept by PID 1 as long as no POLLHUP or POLLERR is seen on
them, and the service they belong to are either not dead or failed, or
have a job queued.
commit 75399049653f2d5e22032da70cf96f20d7b4d9a6
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jan 5 19:03:08 2015 -0500
cgroup: memory limits on / are not supported
commit 6da139137eb4b0ee68ca4aa4ddfdab02e8a5cf98
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Jan 5 19:03:23 2015 -0500
cgroup: fix error message
systemd[1]: Failed to set memory.limit_in_bytes on : Invalid argument
commit 524daa8c3e2bd63ad9dbc24711cdcfb45a65b2db
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jan 1 04:40:41 2015 +0100
journal: call connect() with dropped privileges
When systemd starts a service, it first opened /run/systemd/journal/stdout
socket, and only later switched to the right user.group (if they are
specified). Later on, journald looked at the credentials, and saw
root.root, because credentials are stored at the time the socket is
opened. As a result, all messages passed over _TRANSPORT=stdout were
logged with _UID=0, _GID=0.
Drop real uid and gid temporarily to fix the issue.
commit 9c3349e23b14db27e7ba45f82cf647899c563ea9
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 5 17:22:10 2015 +0100
core: rework counting of running jobs
Let's unify the code that counts the running jobs a bit, in order to
make sure we are less likely to miss one.
This is related to this bug:
https://bugs.freedesktop.org/show_bug.cgi?id=87349
However, it probably won't fix it fully, and I cannot reproduce the issue.
The change also adds an explicit assert change when the counter is off.
commit bbe05969ec5b8b89a20f052f63ebb3790c0c5574
Author: Josef Andersson <josef.andersson at fripost.org>
Date: Mon Jan 5 11:38:54 2015 -0500
po: add Swedish translation
https://bugs.freedesktop.org/show_bug.cgi?id=88052
commit 60d27f1916c90871c063819a6e7d586c7a663789
Author: Ivan Shapovalov <intelfx100 at gmail.com>
Date: Fri Dec 19 17:08:07 2014 +0300
path-lookup, systemctl: export lookup_paths_init_from_scope() from shared/install.c and use it
commit 69c4e2771ec58d111191afe397a402e488e223ba
Author: Filipe Brandenburger <filbranden at google.com>
Date: Mon Dec 29 15:22:33 2014 -0800
machine: add reference to machine-dbus.h to Makefile.am
Commit 003dffde2c1b93 ("machined: Move image discovery logic into src/shared,
so that we can make use of it from nspawn") moved some definitions from
machine.h to a new machine-dbus.h, but did not include it in Makefile.am
Tested that `make distcheck` works after this fix.
commit 65d6d8e32bf06635fd7f0fc0ea2a8d5ee9da3fe5
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 5 16:32:59 2015 +0100
tmpfiles: fix 'D' lines
https://bugs.freedesktop.org/show_bug.cgi?id=87953
commit 3fdcecc87eb381ef300719e419d5863dd8a64a97
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 5 16:23:21 2015 +0100
nss-myhostname: always will in canonical hostname field when resolving addresses to hostnames
https://bugs.freedesktop.org/show_bug.cgi?id=87634
commit 30897dd72b2fb6062d4857abc6b9295b17fda0a4
Author: Lukasz Skalski <l.skalski at samsung.com>
Date: Mon Jan 5 14:45:55 2015 +0100
bus-proxyd: don't allow to acquire org.freedesktop.DBus name
commit 8b173b5e8ccbf946ee88af456792d8e720292d9b
Author: Michael Biebl <biebl at debian.org>
Date: Mon Jan 5 14:12:47 2015 +0100
core: fix typo in log message
commit 8246dff1f81e40b469e40581597b89d19b4682bd
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 5 13:46:36 2015 +0100
machinectl: remove spurious newline
commit 08060f8c88fdc68f1f9d3b4831c50d31454a0ed1
Author: Daniele Medri <dmedri at gmail.com>
Date: Mon Jan 5 13:46:18 2015 +0100
po: update Italian translation
commit d7d052b23fe1180946b592884d7ea99fd723af4d
Author: Daniel Mack <daniel at zonque.org>
Date: Mon Jan 5 13:41:30 2015 +0100
sd-bus: sync kdbus.h
Catch up with latest changes in kdbus.ko:
* Signals can be sent as unicast now, hence they need to be marked as
such with the KDBUS_MSG_SIGNAL in the message flags.
* Follow ioctl number change for KDBUS_CMD_FREE
commit abe4aa144beb3a68e9f2c98a4563e0a99f28c7a1
Author: Topi Miettinen <toiwoton at gmail.com>
Date: Sun Jan 4 20:51:17 2015 +0200
util: Do not clear parent mount flags when setting up namespaces
When setting up a namespace, mount flags like noexec, nosuid and
nodev are cleared, so the mounts always have exec, suid and dev
flags enabled.
Copy source directory mount flags to target mount when remounting
the bind mounts.
commit 5ac0162c3af95efa08a07b84ff62ad32842922c7
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 5 13:19:55 2015 +0100
udevadm,..: make --help output of udev tools more like the output of the various other tools
commit 00b4ffdecbb39d849af65c0ab741be482325a4a9
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 5 12:35:08 2015 +0100
fstab-generator: use more appropriate checks for swap and device availability
We always should use the same checks when deciding whether swap support
and mounting of devices is supported. Hence, let's make
fstab-generator's logic more similar to the usual logic we follow:
a) Look for /proc/swaps and no container support before activating
swaps.
b) Look for /sys being writable befire supporting device mounts.
commit 6b3fd9a14d378a35d95ec4be65065708d092bee2
Author: Torstein Husebø <torstein at huseboe.net>
Date: Mon Jan 5 09:55:11 2015 +0100
libsystemd-network: fix typo in lldp
commit 9bc5cd6d74d6efc7769d6a25b21e451dae39fe76
Author: Colin Walters <walters at verbum.org>
Date: Thu Jan 1 14:57:08 2015 -0500
util: Fix signedness error in lines(), match implementations
Regression introduced by ed757c0cb03eef50e8d9aeb4682401c3e9486f0b
Mirror the implementation of columns(), since the fd_columns()
functions returns a negative integer for errors.
Also fix columns() to return the unsigned variable instead of the
signed intermediary (they're the same, but better to be explicit).
commit 6fc25464bf64b5df2f0efda70bc5c497914108c8
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 5 02:58:04 2015 +0100
update TODO
commit 8266e1c04db8cabe3c68510a0c1f07c09ecdb2e8
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 5 02:48:50 2015 +0100
journald: reuse IOVEC_TOTAL_SIZE() macros where possible
commit 2678031a179a9b91fc799f8ef951a548c66c4b49
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 5 02:09:01 2015 +0100
journald: when we detect the journal file we are about to write to has been deleted, rotate
https://bugzilla.redhat.com/show_bug.cgi?id=1171719
commit aba843317d8acc4634417becebaedcfe5805d49d
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 5 01:56:47 2015 +0100
systemctl: properly iterate through service array when dispatching to sysv
https://bugzilla.redhat.com/show_bug.cgi?id=1175734
commit 805d14864f8d6936202b85730a7d8a77317d1202
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 5 01:20:44 2015 +0100
journald: add some additional checks before we divide by values read from journal file headers
Since the file headers might be replaced by zeroed pages now due to
sigbus we should make sure we don't end up dividing by zero because we
don't check values read from journal file headers for changes.
commit 3774cf57081b595003e9236602d049b1011b6e97
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 5 01:08:51 2015 +0100
journalctl: static variables immediately configured via command line arguments should be prefixed with "arg_"
commit 2cf4172a71860c6e44edd27a3b68047ae062d7fc
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 5 00:52:47 2015 +0100
journal: install sigbus handler for journal tools too
This makes them robust regarding truncation. Ideally, we'd export this
as an API, but given how messy SIGBUS handling is, and the uncertain
ownership logic of signal handlers we should not do this (unless libc
one day invents a scheme how to sanely install SIGBUS handlers for
specific memory areas only). However, for now we can still make all our
own tools robust.
Note that external tools will only have read-access to the journal
anyway, where SIGBUS is much more unlikely, given that only writes are
subject to disk full problems.
commit b798e7baa5dc3ca6199bbff69f71a08d94299fdd
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 5 00:38:31 2015 +0100
systemctl: fix waiting for jobs when using direct connections to PID 1 for dbus
commit ea69bd41c5923f4f278a09bb7d8cb1abcfa122e1
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Jan 5 00:13:26 2015 +0100
journald: constify all things
commit 146d47736780e06f618379a6c9f46edcf46803a7
Author: Lennart Poettering <lennart at poettering.net>
Date: Sun Jan 4 22:20:22 2015 +0100
machined,bus-proxy: fix connecting to containers
commit 8531ae707d4d0203e83304d4af948b8169a5fce1
Author: Lennart Poettering <lennart at poettering.net>
Date: Sun Jan 4 22:09:07 2015 +0100
journald: prefix exported calls with "server_", unexport unnecessary calls
commit fa6ac76083b8ffc1309876459f54f9f0e2843731
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 30 20:57:53 2014 +0100
journald: process SIGBUS for the memory maps we set up
Even though we use fallocate() it appears that file systems like btrfs
will trigger SIGBUS on certain low-disk-space situation. We should
handle that, hence catch the signal, add it to a list of invalidated
pages, and replace the page with an empty memory area. After each write
check if SIGBUS was triggered, and consider the write invalid if it was.
This should make journald a lot more robust with file systems where
fallocate() is not reliable, for example all CoW file systems
(btrfs...), where changing written data can fail with disk full errors.
https://bugzilla.redhat.com/show_bug.cgi?id=1045810
commit f93bf4363395018ef48d744c4624158623afd693
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 30 02:19:04 2014 +0100
update TODO
commit b12afc8c5c5c3ee5720780df9a602288bbcc24ea
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 30 01:57:23 2014 +0100
nspawn: mount most of the cgroup tree read-only in nspawn containers except for the container's own subtree in the name=systemd hierarchy
More specifically mount all other hierarchies in their entirety and the
name=systemd above the container's subtree read-only.
commit 714e2e1d56b97dcf2ebae2d0447b48f21e38a600
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 30 01:56:42 2014 +0100
cgroup: downgrade log messages when we cannot write to cgroup trees that are mounted read-only
commit abd440cd24281fab7a7ccc470f31acc49f151b5b
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date: Mon Jan 5 07:41:03 2015 +1000
hwdb: fix a typo
commit 618021e099516ddd3b6a6c175e3c7291a0d2b4f2
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date: Mon Jan 5 07:26:18 2015 +1000
hwdb: revert Logitech Optical USB Mouse
Reporter says he incorrectly measured the data but the device is not available
anymore to correct it. We'll have to wait for someone else to submit the data.
https://bugs.freedesktop.org/show_bug.cgi?id=87343
commit 9a14fb6285bdb089d4fc195410de3362cb4f586f
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Fri Jan 2 20:29:04 2015 +0100
machinectl: Check type instead of path before printing the type
Looks like a typo when introduced in fefdc04b38725457a91651218feb7000f6ccc1f4
commit a29fca906c32f709c7c560d5f17654e6e2c318e1
Author: Sergey Ptashnick <0comffdiz at inbox.ru>
Date: Thu Jan 1 21:42:47 2015 +0300
po: update Russian translation
By analogy with commit 4038d7502f.
commit 51ed3324dffc393672c39eaffc445e3fc913550c
Author: Sylvain Plantefève <sylvain.plantefeve at gmail.com>
Date: Thu Jan 1 18:02:54 2015 +0100
po: update French translation
commit e86b3761c42babc190a1e1b6d4288dfa7a4208b8
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jan 1 14:25:18 2015 -0500
mount: do not use -n when running in --user mode
-n is only allowed for root. /etc/mtab is nowadays almost always a link to /proc/,
so in practice this does not really matter too much, but should allow .mount units
to work in --user mode.
https://bugs.freedesktop.org/show_bug.cgi?id=87602
commit e65476622db43f7b9c413009072fc9603b8d6ba4
Author: Topi Miettinen <toiwoton at gmail.com>
Date: Thu Jan 1 19:40:07 2015 +0200
Type of mount(2) flags is unsigned long
commit 257e968d8c726e1a7be7b455d0e6ad29b5d0756c
Author: Robert Milasan <rmilasan at suse.com>
Date: Thu Jan 1 18:11:22 2015 +0100
udev: improve help/usage for some more programs
commit ba52f15a5827b7ae8c55c53cdcc5bb9a6abbf0db
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jan 1 12:00:59 2015 -0500
networkctl: avoid potential use of unitialized variables
Those values are based on a file we read from disk, so we should
verify everything we receive, and make sure everything we print
is sensible.
Also, print fractional seconds for TTL.
commit 1bf7dd6e7d36e997c7283045c2760d14e02904fd
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jan 1 11:53:25 2015 -0500
networkctl: remove unused variable
commit ef7532531942d59f81bfbd8a8f923f17e4827952
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jan 1 11:15:50 2015 -0500
network: fix scanf/printf format
usec_t is defined as 64 bit wide, but long is 32 bit on many archs.
commit e65ef51dee7a7d3565f471b67f29a257c6128fb3
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jan 1 10:55:19 2015 -0500
missing: add __NR_renameat2
commit aec432c6134146e138124c4130be2ee89dca07fa
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Sun Dec 28 12:14:25 2014 +0100
build-sys: Fix install location of systemd.pc
systemd.pc contains "libdir" which can be architecture specific. Thus it needs
to be installed into libdir/pkgconfig/ instead of datadir/pkgconfig.
As nothing else is using pkgconfigdata any more, remove it entirely.
Note that udev.pc does not contain architecture specific values and thus can be
kept in /usr/share/pkgconfig/.
commit 2e219e5672689dad60e110f0b3366765506c4c58
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jan 1 09:44:43 2015 -0500
Remove "to allow" from policy messages
It carries no additional information and forces a passive sentence
structure which is longer and harder to parse.
commit 4038d7502fd1259ec5df3a5089f4cc0b91a090de
Author: Piotr Drąg <piotrdrag at gmail.com>
Date: Fri Dec 26 01:05:29 2014 +0100
po: update Polish translation
https://bugs.freedesktop.org/show_bug.cgi?id=87724
commit a4a57bb6ce442a0c8317459b30bdc89dad207a5b
Author: Piotr Drąg <piotrdrag at gmail.com>
Date: Fri Dec 26 00:55:26 2014 +0100
machined: fix grammar in org.freedesktop.machine1.policy.in
[zj: change "in into" to "into".]
https://bugs.freedesktop.org/show_bug.cgi?id=87722
commit 699b7227a2faeb9818e90e90837794aef18f9bef
Author: Philippe De Swert <philippedeswert at gmail.com>
Date: Wed Dec 31 18:02:12 2014 +0200
build-sys: fix build issue with machines.target
When doing "make clean" the unit/machines.target file gets deleted.
This causes a build error later on when trying to rebuild systemd.
V2: The file probably belongs to dist_systemunit_DATA
commit a780d4cb1cc1443904271ae35bd4291639c7eb87
Author: Chris Atkinson <cwa at pipeline.com>
Date: Wed Dec 31 21:59:16 2014 -0500
man: Clarify effect when both calendar day and date are listed in timer
See bug 87859 (https://bugs.freedesktop.org/show_bug.cgi?id=87859). Bug
reporter found the language describing the effect of specifying both a
day and date unclear; hopefully the attached patch will clarify and
allow the bug to be closed.
commit ee14ebf211df1322c3d8b550b931bbfa6cb3b033
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Dec 31 16:28:48 2014 +0100
lldp: fix sd_lldp_save()
Fix a bunch of needless memzero() calls, a bunch of use-after-free
regarding _cleanup_free_ and drop unused variables.
Hint: Do NOT use _cleanup_free_ for temporary strappend() helpers that are
freed multiple times. All you safe is the last free() call, which is
really not worth the trouble resetting it to NULL all the time.
commit 7d4866548d028489d84c39af1bb9206842a77b2b
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Dec 31 16:07:17 2014 +0100
lldp: fix uninitialized cleanup var #2
Another uninitialized variable marked as _cleanup_. Set it to NULL to
avoid accessing uninitialized memory.
commit e7a2419a2ae2a8f56a3e2840f8d623d2a449277a
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Dec 31 16:04:55 2014 +0100
lldp: fix uninitialized cleanup var
Make sure to set _cleanup_ variables to NULL. Otherwise, we free
uninitialized objects.
commit c5285fbfcede2e0f54d2b5f14193041067cd2af6
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Dec 31 16:01:37 2014 +0100
import: fix mem-leak in CurlGlue
Make sure to actually free the underlying object in CurlGlue unref.
commit 580e55da1118870b6099d1a863d9806a31f2b1b4
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Dec 31 15:58:27 2014 +0100
lldp: fix double free
'k' is marked as _cleanup_free_ so reset it to NULL if we free it
explicitly.
commit fbee1d8587458922dec3fd8a9e0f663313697029
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Dec 31 15:56:11 2014 +0100
networkctl: fix strappend() error checking
Make sure to test the right variable for NULL.
commit 889cec8d58a00c8362ab0c6493bad39e9c6849bc
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Dec 31 15:54:20 2014 +0100
network: add malloc-assertion in test
Make sure malloc() really returns non-NULL in lldp test.
commit 06a079055a68dd73150ed002fad7059ad3b41235
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Dec 31 15:52:23 2014 +0100
machinectl: remove dead code
'r' is not touched after the previous error-checking 100 lines above. Drop
that code.
commit bf66fe2682784a0fd9a93deb8f0f4fbd3797b0cb
Author: Christoph Brill <egore at gmx.de>
Date: Wed Dec 31 08:28:52 2014 -0500
hwdb: mouse DPI data, Logitech USB Laser Mouse M-U0011-O
https://bugs.freedesktop.org/show_bug.cgi?id=87880
commit a38f05b7f79c3f2eb87df1759e0bdee16a95d0d1
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Dec 31 13:34:21 2014 +0100
Revert commit f131770b "tree-wide: spelling fixes"
This partially reverts:
commit f131770b1465fbf423881f16ba85523a05f846fe
Author: Veres Lajos <vlajos at gmail.com>
Date: Mon Dec 29 09:45:58 2014 +0000
tree-wide: spelling fixes
The commit in question changed a binary file. I didn't look at the diff in
particular, so I have no idea what exactly was changed. However, the file
is generated and it looked highly suspiciuous. Therefore, I reverted that
part.
Note that this is generated by "make update-unifont" so really no reason
to touch at all.
commit f131770b1465fbf423881f16ba85523a05f846fe
Author: Veres Lajos <vlajos at gmail.com>
Date: Mon Dec 29 09:45:58 2014 +0000
tree-wide: spelling fixes
https://github.com/vlajos/misspell_fixer
https://github.com/torstehu/systemd/commit/b6fdeb618cf2f3ce1645b3315f15f482710c7ffa
Thanks to Torstein Husebo <torstein at huseboe.net>.
commit fd51179d5c6c693a0841db5af0404a45fd9e9845
Author: Robert Milasan <rmilasan at suse.com>
Date: Tue Dec 30 18:58:29 2014 +0100
accelerometer: display short options too
commit bdd31644fe84530399edcc77973bb52094ede472
Author: Christoph Brill <egore at gmx.de>
Date: Tue Dec 30 19:07:28 2014 -0500
hwdb: mouse DPI data, Logitech M-UAS144
https://bugs.freedesktop.org/show_bug.cgi?id=87881
commit eaa5a98f107e43a294f43fcf0228c277fea9ef14
Author: Christoph Brill <egore at gmx.de>
Date: Tue Dec 30 19:03:39 2014 -0500
hwdb: mouse DPI data, Fujitsu Siemens OEM
https://bugs.freedesktop.org/show_bug.cgi?id=87879
commit 149ff903ae372a302d0ff2b1710296fd86d99eea
Author: Christoph Brill <egore at gmx.de>
Date: Tue Dec 30 18:56:16 2014 -0500
hwdb: mouse DPI data, Logitech MK260 aka M-R0011
https://bugs.freedesktop.org/show_bug.cgi?id=87882
commit af157cf80b6916259ebebff0e4b71d5d33ef9cd9
Author: Christoph Brill <egore at gmx.de>
Date: Tue Dec 30 18:54:24 2014 -0500
hwdb: mouse DPI data, Chicony 2.4G Multimedia Wireless Kit
https://bugs.freedesktop.org/show_bug.cgi?id=87883
commit a39b4bdd10fc15654db37459fe8235a3de1ad817
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Dec 30 18:38:21 2014 -0500
systemctl: do not repeat hibernate/sleep attempts
If some sleep operation was not possible (e.g. because swap is missing),
we would try twice: once through logind, which would result in a clean error:
Failed to execute operation: Sleep verb not supported
and then second time by starting the appropriate unit directly, which is
more messy. If logind tells us that something is not possible (or already
in progress), report that to the user and quit. If logind is present and working
we should not try to work around it.
Loosely based on https://bugs.freedesktop.org/show_bug.cgi?id=87832.
commit caffa4ef700fdd0eadd6c0b2ef9925611672a1bc
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Dec 30 18:22:53 2014 -0500
bus: replace ENOSYS return codes with EBADR/ENOTSUP
ENOSYS is used to signify compiled-out functionality. Using it for
different kinds of error is misleading.
For BUS_ERROR_SLEEP_VERB_NOT_SUPPORTED, logind-action.c uses ENOTSUP
already, so changing it to ENOTSUP makes the dbus and action paths
behave the same.
commit b52a4a3b05a2a0d69868d57fd54f6e4b8fa0e7ca
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Dec 30 09:57:01 2014 -0500
README: CONFIG_DEVPTS_MULTIPLE_INSTANCES is necessary
https://bugs.debian.org/773932
commit 7fcf5779b4e5bcfab246a6d5d9c75d6775c20873
Author: Robert Milasan <rmilasan at suse.com>
Date: Tue Dec 30 18:58:05 2014 +0100
accelerometer: drop unused -x option
commit 922d948b9f9dc4b90ac70d729d87fe505a58481f
Author: Susant Sahani <susant at redhat.com>
Date: Tue Dec 30 22:11:38 2014 +0530
man: Fix spelling
commit d95eb43e90f19ff0c9aaff1c5fb1a7ed9fbd89a5
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Tue Dec 30 11:37:35 2014 +0100
bus: add sd_bus_emit_object_{added/removed}()
This implements two new helpers, discussed on systemd-devel about 1 year
ago:
sd_bus_emit_object_added()
sd_bus_emit_object_removed()
Both calls are equivalent to their respective counterpart
sd_bus_emit_interfaces_{added/removed}(), but can figure out the list of
interfaces themselves, instead of requiring the caller to provide them.
Furthermore, both calls properly deal with builtin interfaces provided via
org.freedesktop.DBus.* and alike.
Both calls simply traverse a node and all its parent nodes to figure out a
list of all interfaces registered as vtable or fallback. It then appends
each of them, similar to the interfaces_{added/removed}() helpers.
Note that interfaces_{added/removed}() runs a parent traversal for *each*
passed interface. Therefore, it can simply bail out, once it found a
parent node that implements a given interface.
With object_{added/removed}() we cannot know the registered interfaces in
advance, thus, we cannot run one traversal per node. Instead, we run a
single traversal and remember all interfaces that we added. Therefore, a
child-interface overrides all conflicting parent-interfaces. We keep a
"Set *s" context to track those while climbing up the tree.
commit 7d9fcc2bf6869993e5f38d5eb183fb59e8a52816
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Tue Dec 30 09:09:41 2014 +0100
bus: fix capabilities on big-endian
The kernel provides capabilities as a u32 array, sd-bus uses an u8 array.
This works fine on little-endian as both are encoded the same way.
However, this fails on big-endian if we do not perform sufficient
byte-swapping on each u32 entry.
This patch makes sd-bus use u32, too. We avoid changing any kernel
provided data so we can keep pointing into kdbus pool buffers which
contain u32 arrays.
commit 34a5d5e52661212c7a145cbab45e70a6df7ba284
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Tue Dec 30 08:42:53 2014 +0100
bus: drop creds->capability_size
The number of available caps can be read from
/proc/sys/kernel/cap_last_cap during runtime. Our helper cap_last_cap()
does that, so there's no reason to remember the size of any capability
cache. We can just pre-allocate arrays with a suitable size for all
available caps and reject any higher caps.
The kernel capability API uses u32 as base so make sure we do the same.
Note that this is specified by POSIX, so it's unlikely to change.
commit 180a60bc879ab0554297bc08a7a0b9274b119b55
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Dec 29 17:51:36 2014 +0100
macro: add DIV_ROUND_UP()
This macro calculates A / B but rounds up instead of down. We explicitly
do *NOT* use:
(A + B - 1) / A
as it suffers from an integer overflow, even though the passed values are
properly tested against overflow. Our test-cases show this behavior.
Instead, we use:
A / B + !!(A % B)
Note that on "Real CPUs" this does *NOT* result in two divisions. Instead,
instructions like idivl at x86 provide both, the quotient and the remainder.
Therefore, both algorithms should perform equally well (I didn't verify
this, though).
commit 5ef378c1c5ba1a29a461e77685765da81163c853
Author: Marcel Holtmann <marcel at holtmann.org>
Date: Mon Dec 29 20:47:04 2014 +0100
hwdb: Update database of Bluetooth company identifiers
commit e624676ddef0a7d6996c5acdb7d84155b23001a7
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Dec 29 20:18:04 2014 +0100
update TODO
commit c00a4c8f55e51be98274e86beba14117e25dab9c
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Dec 29 20:00:01 2014 +0100
Revert "machined: don't force terminate registered machines"
This reverts commit 206e7a5f7b55ac61188efd895e65ab26e478cbb2.
We actually want to allow shutting down containers that use
RegisterMachine() rather than CreateMachine() to register their own
unit. It should be safe to do so, since the primary usecase for
RegisterMachine() are container managers that run only a single
container within their own unit, such as systemd-nspawn.
commit e5f5b5b9c92d59ef3cb5169982cb6f436c9206fa
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Dec 29 19:08:50 2014 +0100
machined: ignore spurious error
commit 814a3fdfdc8cd94797eff5f3e1d9a3cc032d880a
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Dec 29 17:54:04 2014 +0100
nspawn: report back to systemd only very late whether we are OK
That way, systemd can actually figure out if everything is OK with
nspawn.
commit f252d3fb2b5e51b047619e819e05ec61924d3a8c
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Dec 29 17:36:57 2014 +0100
preset: enable machines.target by default
commit 8ede9794fdc8e659a6adc1dad4e68e03a36efe13
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Dec 29 14:06:25 2014 +0100
Update TODO
commit d8f52ed25a9edce75fda5251c977b7898e33887e
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Dec 29 14:05:17 2014 +0100
machinectl: add "enable" and "disable" verbs for enabling/disabling systemd-nspawn for containers
This is basically just a shortcut for "systemctl enable
systemd-nspawn@<foobar>.service", but does escaping.
commit ebd011d95b61a86258dece9864f65b7c4af721c0
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Dec 29 12:41:26 2014 +0100
machinectl: add new "start" verb to start a container as a service in nspawn
commit 6a140df0048c99e62339d97effbe16a1bba42d45
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Dec 29 12:38:26 2014 +0100
units: rework systemd-nspawn at .service unit
- Unescape instance name so that we can take almost anything as instance
name.
- Introduce "machines.target" which consists of all enabled nspawns and
can be used to start/stop them altogether
- Look for container directory using -M instead of harcoding the path in
/var/lib/container
commit 8fa844dccff70824ff063bfe5f409c47f5699d73
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Dec 29 12:34:50 2014 +0100
units: make graphical.target dependencies more complete and similar to those of multi-user.target
commit 679bda6a739fbd0b5c9eca04f20fdd48bf8c006d
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Dec 29 15:43:57 2014 +0100
bus-proxy: fix sd_bus_reply_*() usage
We *must* not use sd_bus_reply_*() as it does not set the sender field
correctly. Use the synthetic_reply_*() helpers instead!
commit 80b4378314cf62148fd053e97018cc5c78dd6af6
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Dec 29 13:24:35 2014 +0100
capability: use /proc/sys/kernel/cap_last_cap
This file was introduced with linux-3.2, use it instead of probing for it
via prctl(PR_CAPBSET_READ).
For now, keep the old code for backwards compat. We can drop it once 3.2
is our lowest requirement.
The test-cap-list code is extended to verify cap_last_cap() is the same as
we'd get via prctl probing and /proc.
commit 2f0af4e120385e6078c96189f4a4d0cce0e12a3a
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Dec 29 13:05:45 2014 +0100
core: loopback - correctly fail the loopback_check if somehow the rtnl calls fail
commit 315a73d97f277bfbb32170d0a5e2d259198a6838
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Tue Dec 23 17:10:54 2014 +0100
bus: fix typo
Drop spurious 'we'.
commit 09773ef4462657bffadc568d08c962041fea9944
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Dec 29 02:18:21 2014 +0100
rtnl: recv_message - don't enforce sender uid
All we care about is that the kernel (pid==0) sent the message. Verifying the sender uid
seems to break when using userns.
Reported by Stéphane Graber.
commit 2da780b9763424d3133881ed9f51545cc8b9b575
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Dec 29 01:58:25 2014 +0100
test: loopback - parse logging env var
commit b551ddd380c3b8ddacf86efe815654f7eb6b4952
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Dec 29 01:54:04 2014 +0100
sd-rtnl: rtnl_call - don't dispatch wqueue after timeout has passed
Only a minor change as the timeout would be hit soon thereafetr at the next loop.
commit f55dc7c96ef6a8db32451a0d5f708090591a9141
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Dec 29 01:50:07 2014 +0100
sd-rtnl: rtnl_poll - fix typo
This caused rtnl_poll to always return true immediately in sd_rtnl_call().
commit c7460cce79fd358f2745bd390bd2e7ded450ee62
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Dec 29 00:24:00 2014 +0100
sd-rtnl: recv_message - drop message when peeking fails
Read the message form the socket or we will loop trying to read the
same message repeatedly.
commit 0b2bbbdf2f77d685a12862b96e764ac5f1ef8046
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Dec 29 01:49:06 2014 +0100
sd-rtnl: recv_message - don't fail on interrupt
We should just try again instead.
commit 2263bb9a92f25571f837700cfee4fb79721baf46
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Dec 29 00:19:36 2014 +0100
sd-rtnl: recv_message - log when dropping message
We drop messages received from the wrong uid/pid, log this at debug level.
commit e95e909d820429ba34fa6f6f1b0109ac22743b47
Author: Tom Gundersen <teg at jklm.no>
Date: Sun Dec 28 13:38:23 2014 +0100
core: loopback - simplify check_loopback()
We no longer configure the addresses on the loopback interface, but simply bring it up
and let the kernel do the rest. Also change the check to only check if the interface
is up, rather than checking for the IPv4 loopback address.
commit 94b5088c8d961078d73a2f8659c0ea21f9ebc500
Author: Sylvain Plantefève <melkor73 at gmail.com>
Date: Sun Dec 28 12:52:15 2014 +0100
machined: Fix MarkReadOnly method's name on bus
commit 1517ab5d18f2f057c3f0d8c9b8444595eac71df5
Author: Sylvain Plantefève <melkor73 at gmail.com>
Date: Sun Dec 28 12:52:14 2014 +0100
libsystemd: Fix minor typo in comment
commit 1ddb263d21099ae42195c2bc382bdf72a7f24f82
Author: Lennart Poettering <lennart at poettering.net>
Date: Sun Dec 28 02:44:37 2014 +0100
machined: don't look for images on each property get, but cache the image object inbetween
commit 3b9c7d955da357a45c0bcd03397160153539bc57
Author: Lennart Poettering <lennart at poettering.net>
Date: Sat Dec 27 17:45:30 2014 +0100
update TODO
commit f02ca52281315cb6067a3798450bc814837c85ef
Author: Lennart Poettering <lennart at poettering.net>
Date: Sun Dec 28 02:07:32 2014 +0100
util: treat -1 as special size in format_bytes()
commit b6b1849830f5e4a6065c3b0c993668e500c954d3
Author: Lennart Poettering <lennart at poettering.net>
Date: Sun Dec 28 02:05:28 2014 +0100
machined: add support for reporting image size via btrfs quota
commit 814f000872fc2d254250831607bdca9b27e5705e
Author: Lennart Poettering <lennart at poettering.net>
Date: Sat Dec 27 18:47:17 2014 +0100
tmpfiles.d: upgrade a couple of directories we create at boot to subvolumes
In particular we upgrade /var/lib/container, /var/tmp and /tmp to
subvolumes.
commit d7b8eec7dc7fe307d3a08b32cf1a9ad4276ce6d5
Author: Lennart Poettering <lennart at poettering.net>
Date: Sat Dec 27 18:46:36 2014 +0100
tmpfiles: add new line type 'v' for creating btrfs subvolumes
commit ebd93cb684806ac0f352139e69ac8f53eb49f5e4
Author: Lennart Poettering <lennart at poettering.net>
Date: Sat Dec 27 17:44:04 2014 +0100
machinectl/machined: implement "rename", "clone", "read-only" verbs for machine images
commit 086821244b5113f00a0ef993b78dc56aae2a8f6c
Author: Lennart Poettering <lennart at poettering.net>
Date: Sat Dec 27 02:35:47 2014 +0100
machined: add "machinectl remove" for removing images
commit 1b9cebf6385b5ea0e5ea099da163687013ac7790
Author: Lennart Poettering <lennart at poettering.net>
Date: Sat Dec 27 02:07:29 2014 +0100
nspawn: use the same image discovery logic in nspawn as in machined
commit 003dffde2c1b93afbc9aff24b277276f65424406
Author: Lennart Poettering <lennart at poettering.net>
Date: Sat Dec 27 01:57:03 2014 +0100
machined: Move image discovery logic into src/shared, so that we can make use of it from nspawn
commit 58a489c2b3628f3003d3901537bec8b5e6c1b7bd
Author: Stéphane Graber <stgraber at ubuntu.com>
Date: Sat Dec 27 19:17:39 2014 +0100
Fix check_loopback()
Add missing htonl() so that check_loopback() actually tests for 127.0.0.1
instead of 1.0.0.127 on little-endian machines.
commit 01c51934cbca705d854c3986870ca424df0cae46
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 26 20:10:01 2014 +0100
loginctl: reindent --help text
commit 2520f939bae6c26425d6737fd2e285c28b9f49c8
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 26 20:09:21 2014 +0100
loginctl: add more --help sections
commit fefdc04b38725457a91651218feb7000f6ccc1f4
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 26 20:09:04 2014 +0100
machinectl: add status commands
commit 27c88c4e23f1f062ae69d54485033f88a7d7fbb3
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 26 20:05:11 2014 +0100
machined: fix search patch magic for '.host' image
commit 08ff5529dfd4fd2588d6fc9e194cc732795a85e6
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 26 19:36:25 2014 +0100
machined: make image read-only check indepenednt on own privs
commit 8937e7b68940d0fa0d0aab90eb7425fa7dccebc9
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 26 19:32:55 2014 +0100
machinectl: mark read-only images when listing in red
commit 679829e4aa1461a2db7537aae4c68c6780362c06
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 26 17:11:03 2014 +0100
update TODO
commit 087682d103e08670963686d9b1bc1d35c412a63f
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 26 19:21:09 2014 +0100
import: make image root directory configurable, instead of hardcoding /var/lib/container
commit 5fc7f358420883c73dd662769b1670c0694111a0
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 26 18:59:26 2014 +0100
machined: when discovering images, implicitly add ".host" as pseudo image referring to the host's own directory tree
commit a67a4c8cb728db1d803ebd43dcc39c7de50f2725
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 26 18:19:47 2014 +0100
machined: fix image search path iteration
commit 42c6f2c9b2e5c2f013ce0af20bb11f63e9ec13c9
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 26 18:19:22 2014 +0100
machined: let's also check machine directories in /usr and /usr/local
commit f0be89eee9bf887bac87b59702bf688f691c2340
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 26 18:18:47 2014 +0100
import: properly remove pre-existing images if --force is used
commit 8620a9a32391fd74d70ddc07c9b79729ad4ec067
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 26 17:10:31 2014 +0100
import: beef up gpt importer to optionally make writable copy of read-only vendor image
commit e9d7333468ff02fd45a8aeb957e758f641026278
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 26 17:10:05 2014 +0100
import: minor improvements to dkr importer
commit 2c39ea529b35383022946a07eeecd6711bcd2684
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 26 17:03:01 2014 +0100
util: always override crtime xattr
commit 6389e747d5b09b18e00d85b9b13c1be2ff884015
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 26 17:01:00 2014 +0100
machinectl: left-align times
commit e6bd041c973c1f4074c3268b23c380ede0d64f19
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 26 17:00:39 2014 +0100
copy: try top copy atime/time/xattrs when copying files
commit c75f27ea2b483f91d437ebaf8494457dc76f3fd6
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 26 16:59:53 2014 +0100
test: improve btrfs test case
commit 86e339c8846cdf614a41653384c0b4e84b233696
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 26 16:44:15 2014 +0100
machined: be more thorough when checking whether an image is writable or not
commit 92ee6447b1deef7c79962a8121fdf8e58acb3a83
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Dec 26 09:02:01 2014 -0500
journald: always allocate space for object fields
If OBJECT_PID= came as the last field, we would not reallocate the iovec to bigger size,
and fail the assertion later on in dispatch_message_real().
commit 12a717f8347f3daf0ae46a2b71c7d011d9c12fea
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Dec 26 08:34:18 2014 -0500
journald: fix off by one in native transport
https://bugzilla.redhat.com/show_bug.cgi?id=1177184
commit 0068de375cdd55b2311ec83f113e81b7015c3214
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Dec 26 00:20:48 2014 +0100
hwdb: mouse - add Razer Abyssus
commit 3715a071803b99b4ed4045df8f35e7f7a5fa5a85
Author: Michael Biebl <biebl at debian.org>
Date: Fri Dec 26 00:04:19 2014 +0100
man: mark hwdb related man pages as conditional
Follow-up fix for commit fe659612e40e6a0cf91a73b10aa45eea958b747e.
commit 7275929790d32784895993429f3607562cc1284e
Author: Manuel Mendez <mmendez534 at gmail.com>
Date: Thu Dec 25 11:59:08 2014 -0500
man: typo in sd_watchdog_enabled notes
https://bugs.freedesktop.org/show_bug.cgi?id=87642
commit 0289a5bcb5eec84783f771e634ccafe5a2e4936c
Author: Filipe Brandenburger <filbranden at google.com>
Date: Thu Dec 25 11:40:46 2014 -0500
test: wait for cloned thread to exit
In test_raw_clone, make sure the cloned thread calls _exit() and in the parent
thread call waitpid(..., __WCLONE) to wait for the child thread to terminate,
otherwise there is a race condition where the child thread will log to the
console after the test process has already exited and the assertion from the
child thread might not be enforced.
The absence of this patch might also create problems for other tests that would
be added after this one, since potentially both parent and child would run
those tests as the child would continue running.
Tested by confirming that the logs from the child are printed before the test
terminates and that a false assertion in the child aborts the test with a core
dump.
[zj: also add check for the return value.]
commit e50221bf1ae8bc8e14f242efa4c9d26b7a47639b
Author: Filipe Brandenburger <filbranden at google.com>
Date: Tue Dec 23 10:14:46 2014 -0800
test: only use assert_se in test_raw_clone
The asserts used in the tests should never be allowed to be optimized away.
commit 0a7f0fcc79772d257e0c42358ad472a37a8ab151
Author: Dave Reisner <dreisner at archlinux.org>
Date: Thu Dec 25 11:41:06 2014 -0500
configure.ac: keep posix compat for string tests
'==' and '=' are equivalent in /bin/bash, but POSIX compliant shells do
not understand '==.'
commit b7a4d8de9273fab20e1e32e4846b6a866884e07a
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Dec 25 11:12:54 2014 -0500
man: add a note why %U,%h,%s are mostly useless
The reasons were already given in the description of %U, but the
are easy to overlook, and it's better to be explicit to avoid
confusion.
commit aa1aad74e6b14730542c26a7c17c5d06c62b6089
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Dec 25 10:52:38 2014 -0500
run: uninitialized variable
commit 3dd0bbeb153040ca59899f770e5b0714947ea3cb
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Dec 25 10:44:34 2014 -0500
ata_id: remove temp variable to kill warning
src/udev/ata_id/ata_id.c:503:24: warning: assignment from incompatible pointer type
identify_words = &identify.wyde;
^
commit 11c6f693e94e9013c8df91210b8b0e2e343de809
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Dec 25 10:42:23 2014 -0500
ata_id: modernize
commit f2c0b4f1b1340426d2cc42948964af55be35feb3
Author: Filipe Brandenburger <filbranden at google.com>
Date: Tue Dec 23 10:38:48 2014 -0800
pam_systemd: remove spurious include of <sys/capability.h>
It does not use any functions or constants from libcap directly.
Tested that "pam_systemd.la" builds cleanly and works after this change.
commit 88c49117685837fd1b9a43e4578238a825c8bcab
Author: Filipe Brandenburger <filbranden at google.com>
Date: Tue Dec 23 10:38:47 2014 -0800
timedated: remove spurious include of <sys/capability.h>
It does not use any functions from libcap directly. The CAP_SYS_TIME constant
in use by this file comes from <linux/capability.h> imported through "missing.h".
Tested that "systemd-timedated" builds cleanly and works after this change.
commit 8ea763865ffe1e5462d9921c01f4b135e1008d59
Author: Filipe Brandenburger <filbranden at google.com>
Date: Tue Dec 23 10:38:46 2014 -0800
localed: remove spurious include of <sys/capability.h>
It does not use any functions from libcap directly. The CAP_SYS_ADMIN constant
in use by this file comes from <linux/capability.h> imported through "missing.h".
Tested that "systemd-localed" builds cleanly and works after this change.
commit 946be29c98e1797f2e0912c5f2da31ee3816ee58
Author: Filipe Brandenburger <filbranden at google.com>
Date: Tue Dec 23 10:38:50 2014 -0800
bus: remove spurious include of <sys/capability.h>
They do not use any functions from libcap directly. The CAP_SYS_ADMIN constant
in use by bus-objects.c comes from <linux/capability.h> imported through
"missing.h". The "missing.h" header is imported through "util.h" which gets
imported in "bus-util.h".
Tested that everything builds cleanly after this change.
commit 9bb0c7cfbb253c5b983efaed51a65bcbf422d8d7
Author: Filipe Brandenburger <filbranden at google.com>
Date: Tue Dec 23 10:38:49 2014 -0800
machined: remove spurious include of <sys/capability.h>
They do not use any functions from libcap directly. The CAP_KILL constant in
use by these files comes from <linux/capability.h> imported through
"missing.h".
Tested that "systemd-machined" builds cleanly and works after this change.
commit ffbc903f030d9acd2c40e4defd8e549b046ec520
Author: Filipe Brandenburger <filbranden at google.com>
Date: Tue Dec 23 10:38:45 2014 -0800
hostnamed: remove spurious include of <sys/capability.h>
It does not use any functions from libcap directly. The CAP_SYS_ADMIN constant
in use by this file comes from <linux/capability.h> imported through "missing.h".
Tested that "systemd-hostnamed" builds cleanly and works after this change.
commit 2395eb17ebd1033e53989e4a9b8745f921a7d965
Author: Filipe Brandenburger <filbranden at google.com>
Date: Tue Dec 23 10:38:44 2014 -0800
tmpfiles: remove spurious include of <sys/capability.h>
It does not use any functions from libcap directly. The CAP_MKNOD constant in
use by this file comes from <linux/capability.h> imported through "missing.h".
Tested that "systemd-tmpfiles" builds cleanly and works after this change.
commit d920e59c7df63300e5b5191d2a4be7b3baac6ea8
Author: Filipe Brandenburger <filbranden at google.com>
Date: Tue Dec 23 10:38:43 2014 -0800
logind: remove spurious include of <sys/capability.h>
They do not use any functions from libcap directly. The CAP_* constants in use
through these files come from "missing.h" which will import <linux/capability.h>
and complement it with CAP_* constants not defined by the current kernel
headers. The "missing.h" header is imported through "util.h" which gets
imported in "logind.h".
Tested that "systemd-logind" builds cleanly and works after this change.
commit f01ae8260d90ccff2f299242cd370ab58ea723f0
Author: Filipe Brandenburger <filbranden at google.com>
Date: Tue Dec 23 10:38:42 2014 -0800
nspawn: remove spurious include of <sys/capability.h>
It does not use any functions from libcap directly. The CAP_* constants in use
through this file come from "missing.h" which will import <linux/capability.h>
and complement it with CAP_* constants not defined by the current kernel
headers.
Add an explicit import of our "capability.h" since it does use the function
capability_bounding_set_drop from that header file. Previously, that header was
implicitly imported through through "cap-list.h".
Tested that "systemd-nspawn" builds cleanly and works after this change.
commit 321a3f5133a415ad9c95e15e95e46556c08973aa
Author: Mantas Mikulėnas <grawity at gmail.com>
Date: Wed Dec 24 14:46:20 2014 +0200
doc: os-release: mention all shell characters that must be escaped
Since the manpage already talks about shell-compatibility, it should be
more accurate about what needs to be escaped and how.
commit 7115e487cd1881ae4934317ac5f91ee11d5e1a75
Author: Filipe Brandenburger <filbranden at google.com>
Date: Tue Dec 23 10:59:15 2014 -0800
build-sys: remove references to dbusinterfacedir
This directory is not used by systemd.
Tested by running a full build, running `make install` and comparing the file
list in the target trees and making sure that `make distcheck` still works.
commit 977db91c29083478c6fb7c7bf033e14c567df5d5
Author: Filipe Brandenburger <filbranden at google.com>
Date: Tue Dec 23 10:59:14 2014 -0800
build-sys: do not use pkgconfig dbus-1.pc to find dbus directories
Do not use the dbus-1.pc pkgconfig settings to determine dbus directories. Use
directories relative to ${sysconfdir} and ${datadir} instead.
This approach was suggested by Simon McVittie in:
http://lists.freedesktop.org/archives/systemd-devel/2014-October/024388.html
Tested by building and installing systemd without the dbus-devel installed.
Without this patch, the dbus files and directories end up in the root of the
filesystem. With this patch, they end up in the same locations as previously
(assuming default ${sysconfdir} and ${datadir}) whether dbus-devel is present
or not. Also made sure that `make check` works without dbus-devel installed.
commit fa66b606b1a79530bc0d7f70ff30955232e40694
Author: Cristian Rodríguez <crrodriguez at opensuse.org>
Date: Tue Dec 23 17:52:51 2014 -0300
timesync: remove square(), use pow instead
In any case, the compiler generates the same code inline and never
actually calls the library function.
commit 097df453dab149f6b45f1b30510363acd8f11593
Author: Filipe Brandenburger <filbranden at google.com>
Date: Tue Dec 23 13:51:40 2014 -0800
test: do not use last cap from kernel in test-cap-list
The new test-cap-list introduced in commit 2822da4fb7f891 uses the included
table of capabilities. However, it uses cap_last_cap() which probes the kernel
for the last available capability. On an older kernel (e.g. 3.10 from RHEL 7)
that causes the test to fail with the following message:
Assertion '!capability_to_name(cap_last_cap()+1)' failed at src/test/test-cap-list.c:30, function main(). Aborting.
Fix it by exporting the size of the static table and using it in the test
instead of the dynamic one from the current kernel.
Tested by successfully running ./test-cap-list and the whole `make check` test
suite with this patch on a RHEL 7 host.
commit 6024a6e302bad6bcf073fa84a41a6123305dc845
Author: Shawn Paul Landden <shawn at churchofgit.com>
Date: Tue Dec 23 15:04:37 2014 -0800
udev: fix another strict aliasing issue
commit bf3dd6b1a73a22d86688ec1ceecea12cb4151fe8
Author: Shawn Paul Landden <shawn at churchofgit.com>
Date: Tue Dec 23 15:04:36 2014 -0800
libudev: fix strict aliasing violation
commit e7aa89f9096de9e0173260267ed3f1914f860ebc
Author: Filipe Brandenburger <filbranden at google.com>
Date: Tue Dec 23 15:03:21 2014 -0800
build-sys: update path in reference to sd-lldp.h
The file was moved from src/libsystemd-network to src/systemd in commit
7a6f1457462840 ("sd-lldp: minor header cleanup").
This fixes "make distcheck".
commit 3fd1957f0d76a840b531aac2da56c55020271aae
Author: Filipe Brandenburger <filbranden at google.com>
Date: Tue Dec 23 15:02:14 2014 -0800
machined: add org.freedesktop.machine1.policy.in to POTFILES.in
The new polkit file was introduced in commit d04c1fb8e21560 ("machined:
introduce polkit for OpenLogin() call").
commit 35c594e044bea03baf5b9b6c429b9ac9bb5aa0b5
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Dec 25 03:20:20 2014 +0100
update TODO
commit 10f9c75519671e7c7ab8993b54fe22da7c2d0c38
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Dec 25 03:19:19 2014 +0100
machined: beef up machined image listing with creation/modification times of subvolumes
We make use of the btrfs subvol crtime for this, and for gpt images of a
manually managed xattr, if we can.
commit 5fa89b2cb366d533e56a9b7a9ce548480776f973
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Dec 25 03:14:09 2014 +0100
import: prefer usec_t over time_t
commit bd69054b0987b40a0df87d40772893f6f8a078da
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 24 16:55:03 2014 +0100
update TODO
commit de146bb2aac13361ade3050d37696499ac4ca9ae
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 24 16:52:20 2014 +0100
update TODO
commit 901992209e3c87a4cf06b530d7b26ae2d35680ef
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 24 16:44:56 2014 +0100
import: add a new "pull-gpt" verb for downloading GPT disk images from the internet
commit 0c7bf33a989a58922b3eb9aaa96abd773c8754c4
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 24 16:43:46 2014 +0100
import: three minor fixes
commit a36544cd45d607ee7f075157f55e7f646df1d34f
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 24 16:43:20 2014 +0100
import: print friendly error messages on errors
commit 14ed8b9273690b82fed2d437f58e9e01487e9f69
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 24 16:42:41 2014 +0100
import: remember when we were finished importing
commit ea1ae8c38e669351b909cf8cc0c1e6fd140c1b58
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 24 16:41:51 2014 +0100
import: make the dkr import URL a part of the import object, not the import name object
commit 51929718dd2dc056f841a97e79efb48a8d8fd64b
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 24 16:40:30 2014 +0100
machined: fix writability check for GPT images
commit 4a4d89b682d2a8d32e899c4b47950f64df74fb7c
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 24 16:39:55 2014 +0100
util: make creation time xattr logic more generic
commit de33fc625725d199629ed074d6278504deb23deb
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 23 23:38:13 2014 +0100
sd-bus: rename sd_bus_open_system_container() to sd_bus_open_system_machine()
Pretty much everywhere else we use the generic term "machine" when
referring to containers in API, so let's do though in sd-bus too. In
particular, since the concept of a "container" exists in sd-bus too, but
as part of the marshalling system.
commit 0254e9448f3c645758ed63618a3bbb13c242f5e7
Author: Shawn Paul Landden <shawn at churchofgit.com>
Date: Tue Dec 23 13:47:16 2014 -0800
util: fix strict aliasing violations in use of struct inotify_event v5
There is alot of cleanup that will have to happen to turn on
-fstrict-aliasing, but I think our code should be "correct" to the rule.
commit 60329a9d9fc58b1a4c8a6244592f731839c2e8d7
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date: Tue Dec 23 10:14:19 2014 +1000
hwdb: add rule and first entry for PS/2 mice
https://bugs.freedesktop.org/show_bug.cgi?id=87037
commit 2c561af2955ae86353f5e811771029198cc41e7a
Author: Frank Theile <frank.theile at web.de>
Date: Wed Dec 24 07:53:40 2014 +1000
hwdb: Microsoft Wireless Laser Mouse 8000 DPI data
https://bugs.freedesktop.org/show_bug.cgi?id=87587
commit 243399a68074d7718e4f3c59af913abbf37c718c
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 23 21:36:14 2014 +0100
update TODO
commit e275f5e20457550e8fbed32e4bd5a033b248d69c
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 23 22:43:16 2014 +0100
shell-completion: add full support for completing busctl command lines, with services, objects, interfaces, members, and signatures
commit 4f44c03eaa7bc05240ef619d07766f61eda3d5b7
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 23 22:42:55 2014 +0100
busctl: when introspecting objects, optionally limit output by interface name
commit 56a32c94ca0c76a2bd0de8dd644863d341b9f504
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 23 21:34:55 2014 +0100
gitignore: hide test-lldp files
commit d04c1fb8e215600b4950c6778c6c16ddafc14024
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 23 21:28:22 2014 +0100
machined: introduce polkit for OpenLogin() call
This way "machinectl login" can be opened up to run without privileges.
commit 18d703816300790b041c4fd6991e3561aa2704cb
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 23 21:06:01 2014 +0100
bus: add missing bus-policy.[ch]
Accidentally forgot to commit this. Sorry!
commit 8b169c0fc24cd63ab24a5389a93bf2151b0c28eb
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 23 19:19:11 2014 +0100
build-sys: move core/build.h → shared/build.h
After all, pretty much all our tools include it, and it should hence be
shared.
Also move sysfs-show.h from core/ to login/, since it has no point to
exist in core.
commit f6b6892c49f961cffa2e3075f7884b4a77c443e5
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 23 19:14:26 2014 +0100
update TODO
commit bf441e3d9371a7e5aa1def66cfc40f0118884644
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 23 19:14:04 2014 +0100
machinectl: rework 'machinectl login' to use OpenMachineLogin()
commit 5f8cc96a0301c1177b11dd2e89370ef0b2ef577b
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 23 19:12:49 2014 +0100
machined: add new call OpenMachineLogin() that starts a getty in a container on a pty and returns the pty master fd to the client
This is a one-stop solution for "machinectl login", and should simplify
getting logins in containers.
commit ee502e0c28a611470a4e10b0c90bade6ff7fa389
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 23 19:11:48 2014 +0100
sd-bus: teach x-container-unix: bus protoocol to connect to the namespace of a PID instead of a container name
commit 080bfdbb8e9f3d23594b101d7f50e7e2f9e4699b
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 23 19:07:01 2014 +0100
condition: don't include files from src/core
commit 6eeeb84c96d3f42c0e7726f8f45c06a0a886b4e4
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 23 19:05:23 2014 +0100
import: fix compiler warning
commit 039f0e70a0fcd71dcf7cc2f3ba2cea2e3b186a60
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 23 19:04:56 2014 +0100
env-util: don't include files from src/core/
commit 3c70e3bb022f0de3317f3600c9366a2f4597339e
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 23 18:36:04 2014 +0100
core: rearrange code so that libsystemd/sd-bus/ does not include header files from core
Stuff in src/shared or src/libsystemd should *never* include code from
src/core or any of the tools, so don't do that here either. It's not OK!
commit 3e0a2048978fcc7aff00797bdb876b2592c2fbc7
Author: Daniel Mack <daniel at zonque.org>
Date: Tue Dec 23 18:36:29 2014 +0100
bus-proxyd: ignore errors from sd_bus_creds_get_well_known_names()
sd_bus_creds_get_well_known_names() fails with -ENODATA in case the
message has no names attached, which is intended behavior if the
remote connection didn't own any names at the time of sending.
The function already deals with 'sender_names' being an empty strv,
so we can just continue in such cases.
commit 259ac5cd7e37c4b9bd908460fe4de030aa252025
Author: Daniel Mack <daniel at zonque.org>
Date: Tue Dec 23 13:37:52 2014 +0100
bus-proxyd: handle -ESRCH and -ENXIO gracefully
Messages to destinations that are not currently owned by any bus connection
will cause kdbus related function to return with either -ENXIO or -ESRCH.
Such conditions should not make the proxyd terminate but send a sane
SD_BUS_ERROR_NAME_HAS_NO_OWNER error reply to the proxied connection.
commit 1d050f9f73b9b5d833687df163ad5a1692cf281c
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 23 02:11:48 2014 +0100
update TODO
commit 9d8c4979c0c9b09bd3d0d57ee585f6792c6add26
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 23 02:10:08 2014 +0100
util: add allocation loop to gettyname_malloc()
commit 611b312b7d0799281347374dc303c73a066cedf8
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 23 02:02:08 2014 +0100
nspawn,pty: port over to new ptsname_malloc() helper
commit ee451d766a64117a41ec36dd71e61683c9d9b83c
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 23 01:58:49 2014 +0100
systemd-run: support -t mode when combined with -M
For that, ask machined for a container PTY and use that.
commit 40205d706e1210763ff4c98a317556375bd04bcd
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Dec 22 21:17:29 2014 +0100
machined: add OpenMachinePTY() bus call for allocating a PTY device within a container
Then, port "machinectl" over to make use of it.
commit 095dc59660c3dde782f32fe5a52b577f7700578b
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Dec 22 20:39:10 2014 +0100
systemd-run: add --quiet mode to suppress informational message on TTY usage
commit c7b7d4493aa03e9ef5fb1e670b8969a48aa494dd
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Dec 22 20:33:45 2014 +0100
machinectl,nspawn: don't print extra final newline if pty terminal output was newline-terinated anyway
commit 9b15b7846d4de01bb5d9700a24077787e984e8ab
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Dec 22 19:45:32 2014 +0100
run: add a new "-t" mode for invoking a binary on an allocated TTY
commit 91f4347ef7bde17418b365ed3a97a752fe65bd50
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Dec 22 19:42:27 2014 +0100
import: rename 'poll-dck' to 'pull-dkr'
I figure "pull-dck" is not a good name, given that one could certainly
read the verb in a way that might be funny for 16year-olds. ;-)
Also, don't hardcode the index URL to use, make it runtime and configure
time configurable instead.
commit 9bae67d49b861b1f142f1a1e27753fe08e63ade7
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Dec 22 14:53:40 2014 +0100
shared: json - support escaping utf16 surrogate pairs
We originally only supported escaping ucs2 encoded characters (as \uxxxx). This
only covers the BMP. Support escaping also utf16 surrogate pairs (on the form
\uxxxx\uyyyy) to cover all of unicode.
commit 04166cb7dd90918385835f246c43d8ec22af0d68
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Dec 22 12:57:05 2014 +0100
shared: utf8 - support decoding the full utf16
We originally only supported the BMP (i.e., we treated UTF-16 as UCS-2).
commit 2bb4c7e384c31de4727f1330da3f4de2f0bb7784
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Dec 22 00:58:26 2014 +0100
shared: utf8 - support ucs4 -> utf8
Originally we only supported ucs2, so move the ucs4 version from libsystemd-terminal to shared
and use that everywhere.
commit 856d6e09887730f115e43faf9577b479f2beb3c4
Author: Daniel Mack <daniel at zonque.org>
Date: Mon Dec 22 19:59:53 2014 +0100
sd-bus: ignore KDBUS_ITEM_TIMESTAMP in kernel messages
Kernel notifications carry a timestamp now, so make sure
bus_kernel_translate_message() doesn't complain when it stumbles across
them.
commit e24e415e5f3af2fe86d2be9a1f1a2e8d5f8c96bf
Author: Daniel Mack <daniel at zonque.org>
Date: Mon Dec 22 16:51:15 2014 +0100
busname: fix CMD_FREE ioctl
The KDBUS_CMD_FREE ioctl struct has a size field now, which needs to be set.
commit 540d8581834442ca1c8f79fa35e4b91c0ab51567
Author: Dave Reisner <dreisner at archlinux.org>
Date: Sun Dec 21 21:28:49 2014 -0500
verbs: fix typo in error message
commit c470b44ff0188d4648f7103f6d68fb37f05f9319
Author: Frank Theile <frank.theile at web.de>
Date: Mon Dec 22 08:18:55 2014 +1000
hwdb: Lenovo USB mouse MO28UOL DPI data
https://bugs.freedesktop.org/show_bug.cgi?id=87504
commit 6ad9bb71c226d062d109668af4b100519eca5cb4
Author: Daniel Mack <daniel at zonque.org>
Date: Sat Dec 20 19:23:49 2014 +0100
sd-bus: sync kdbus.h (ABI break)
Sync kdbus.h with upstream changes:
* Two optional cancellation points where added for synchronously
blocking KDBUS_CMD_SEND commands: A sigmask to change the mask
of accepted signals before the task is put to sleep, and a
generic file descriptor that can be written to, in order to cancel
the command. Both methods are currently unused.
* The KDBUS_CMD_CANCEL ioctl was removed. sd-bus was never using
that command, so there's no change needed.
* Some kerneldoc fixes
commit fe659612e40e6a0cf91a73b10aa45eea958b747e
Author: Umut Tezduyar Lindskog <umut.tezduyar at axis.com>
Date: Fri Dec 19 11:47:30 2014 +0100
build: add option to disable hwdb
[tomegun: fix Makefile-man.am, based on fix from Michael Biebl]
commit 7a6f1457462840ed52f2a332e2bd56ca210cff2d
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Dec 19 22:42:03 2014 +0100
sd-lldp: minor header cleanup
* (potentially) public headers must reside in src/systemd/ (not in
src/libsystemd*)
* some private (not prefixed with sd_) functions moved from sd-lldp.h to
lldp-internal.h
* introduce lldp-util.h for the cleanup macro, as these should not be public
* rename the cleanup macro, we always name them _cleanup_foo_, never
_cleanup_sd_foo_
* mark some function arguments as 'const'
commit 2cd3aa24820e5d82375c8cc3e4446d884ee4fee0
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 19 20:44:49 2014 +0100
update TODO
commit ebeccf9eecf5939a2ef772c3160e89efcad96194
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 19 20:43:18 2014 +0100
machined: add a full bus object for images
commit c2ce6a3d82b717c4c1e6245ad8c6ce1173f502d0
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 19 20:07:23 2014 +0100
machined: add new GetImage() bus call for retrieving the bus path for an image
commit 821d4b6e068b2afaad94d43db22171c34a30400e
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 19 20:04:55 2014 +0100
sysv-generator: properly add Makefile symlink
commit a34bf9db5da0fdd6bdb14459e203dbe41ee99614
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 19 20:03:36 2014 +0100
util: rename ignore_file() to hidden_file()
hidden_file() is a bit more precise, since dot files usually shouldn't
be ignored, but certainly be considered hidden.
commit 358ba19e5e18304258f053e30e6120a3b6adf322
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 19 19:19:20 2014 +0100
update TODO
commit 56159e0d918e9a9be07988133bb2847779325de0
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 19 19:19:05 2014 +0100
machinectl: port machinectl to new verbs logic
commit 7eeeb28e45ae4d436bdccad1d519cfcb81c0762d
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 19 19:18:48 2014 +0100
import: Verb[] array can be static, too
commit 43343ee7c298dad8db0698b4c181a42ecb7bb216
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 19 19:17:52 2014 +0100
verbs: when invoking the default verb, pass a faked argv array, with just the verb in it
That way the dispatcher calls know how they got called.
commit cd61c3bfd718fb398cc53ced906266a9297782c9
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 19 18:42:50 2014 +0100
machined/machinectl: add logic to show list of available images
This adds a new bus call to machined that enumerates /var/lib/container
and returns all trees stored in it, distuingishing three types:
- GPT disk images, which are files suffixed with ".gpt"
- directory trees
- btrfs subvolumes
commit 8eebf6ad553adb22d7ea5d291de0b0da38606f4d
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 19 18:40:23 2014 +0100
util: when creating temporary filename for atomic creation of files, add an extra "#" to the name
That way, we have a simple, somewhat reliable way to detect such
temporary files, by simply checking if they start with ".#".
commit 668c965af4e803f460925dc616f328ed274d1f3a
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Dec 19 17:11:22 2014 +0100
journal: skipping of exhausted journal files is bad if direction changed
EOF is meaningless if the direction of iteration changes.
Move the EOF optimization under the direction check.
This fixes test-journal-interleaving for me.
Thanks to Filipe Brandenburger for telling me about the failure.
commit b29ddfcb389127cf00ab41447a721e479fe15713
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Dec 19 14:42:55 2014 +0100
journal: make next_with_matches() always use f->current_offset
next_with_matches() is odd in that its "unit64_t *offset" parameter is
both input and output. In other it's purely for output.
The function is called from two places in next_beyond_location(). In
both of them "&cp" is used as the argument and in both cases cp is
guaranteed to equal f->current_offset.
Let's just have next_with_matches() ignore "*offset" on input and
operate with f->current_offset.
I did not investigate why it is, but it makes my usual benchmark run
reproducibly faster:
$ time ./journalctl --since=2014-06-01 --until=2014-07-01 > /dev/null
real 0m4.032s
user 0m3.896s
sys 0m0.135s
(Compare to preceding commit, where real was 4.4s.)
commit 487d37209b30a536636c95479cfeba931fea25c5
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Dec 19 15:05:30 2014 +0100
journal: fix skipping of duplicate entries in iteration
I accidentally broke the detection of duplicate entries in 7943f42275
"journal: optimize iteration by returning previously found candidate
entry".
When we have a known location of a candidate entry, we must not return
from next_beyond_location() immediately. We must go through the
duplicates detection to make sure the candidate differs from the
already iterated entry.
This fix slows down iteration a bit, but it's still faster than it
was before the rework.
$ time ./journalctl --since=2014-06-01 --until=2014-07-01 > /dev/null
real 0m4.448s
user 0m4.298s
sys 0m0.149s
(Compare with results from commit 7943f42275, where real was 5.3s before
the rework.)
commit bfcdba8d565041275319e5b1605c543d243ad7c4
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Dec 19 08:34:04 2014 +0100
networkd: link - plug leak
commit 19727828d22057e9eb9160cae879ed5ced708517
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Dec 19 08:33:46 2014 +0100
networkctl: lldp - respect arg_legend
commit 49699bac94d24b444274f91f85c82e6fad04d029
Author: Susant Sahani <susant at redhat.com>
Date: Thu Dec 11 09:59:55 2014 +0530
LLDP: Add support for networkctl
commit ce43e484465050c619ea9a1991d49b3d6215028b
Author: Susant Sahani <susant at redhat.com>
Date: Sun Nov 23 09:56:14 2014 +0530
networkd: integrate LLDP
This patch integrates LLDP with networkd.
Example conf:
file : lldp.network
[Match]
Name=em1
[Network]
LLDP=yes
commit ad1ad5c8e36ea795034fcdac660b15d7c141d55b
Author: Susant Sahani <susant at redhat.com>
Date: Sun Nov 23 09:46:36 2014 +0530
networkd: Introduce Link Layer Discovery Protocol (LLDP)
This patch introduces LLDP support to networkd. it implements the
receiver side of the protocol.
The Link Layer Discovery Protocol (LLDP) is an industry-standard,
vendor-neutral method to allow networked devices to advertise
capabilities, identity, and other information onto a LAN. The Layer 2
protocol, detailed in IEEE 802.1AB-2005.LLDP allows network devices
that operate at the lower layers of a protocol stack (such as
Layer 2 bridges and switches) to learn some of the capabilities
and characteristics of LAN devices available to higher
layer protocols.
commit 266b538958932e6fc27dfce4917336e70e17e29e
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Dec 19 03:16:45 2014 +0100
networkctl: port to verbs helper
commit caa8dab28f65a28bf410f6abdb8a9a14ee2a7a70
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Dec 19 03:01:27 2014 +0100
systemd-hwdb: port to new verbs helper
commit eac8e8c6de6347999f6b2115f9c38df31f8d35b1
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Dec 19 03:00:56 2014 +0100
import: dck - fix curl error handling
commit c3a0d00d6dd6f5997d673e133ef6f9f856550b0a
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 19 02:07:35 2014 +0100
update TODO
commit 72648326ea6d3e68cdb0b5890df737047d031a41
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 19 01:59:52 2014 +0100
import: add new minimal tool "systemd-import" for pulling down foreign containers and install them locally
This adds a simply but powerful tool for downloading container images
from the most popular container solution used today. Use it like
this:
# systemd-import pull-dck mattdm/fedora
# systemd-nspawn -M fedora
This will donwload the layers for "mattdm/fedora", and make them
available locally as /var/lib/container/fedora.
The tool is pretty complete, as long as it's only about pulling down
images, or updating them. Pushing or searching is not supported yet.
commit dca59f62666c2d37d1a68ed332ba7985c1141f82
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 19 01:48:05 2014 +0100
util: add generalization of verb parsing for command line tools
We should move loginctl, timedatectl, machinectl over to use this new
API instead of a manual one.
commit e02d225b1eaead537243293a9c02f6baa8aaf55d
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 19 01:47:19 2014 +0100
util: make sure rm_rf() can be called on symlinks (with the effect of deleting it)
commit e1dd6790e4f58506e637bf9541f63504acc2972f
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 19 01:31:59 2014 +0100
strv: ass new strv_is_uniq() and strv_reverse() calls
commit 24167f3db842238e4e9115db36eff947be46da5f
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 19 01:31:27 2014 +0100
execute: the runtime directory can only be on tmpfs, hence don't use rm_rf_dangerous() needlessly
commit b7d131939347fee0f1af7a288052a3dffb5a6763
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Dec 18 01:44:34 2014 +0100
nss-myhostname: introduce is_gateway() similar to the existing is_hostname()
commit c853953658865ec3b3487e3f1eb2cc0516320bf3
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Dec 18 18:08:13 2014 -0500
load-fragment: allow quoting in command name and document allowed escapes
The handling of the command name and other arguments is unified. This
simplifies things and should make them more predictable for users.
Incidentally, this makes ExecStart handling match the .desktop file
specification, apart for the requirment for an absolute path.
https://bugs.freedesktop.org/show_bug.cgi?id=86171
commit ba774317ac7d3e67fdb9ed81663264d38859df59
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Dec 18 17:51:38 2014 -0500
Treat a trailing backslash as an error
Commit a2a5291b3f5 changed the parser to reject unfinished quoted
strings. Unfortunately it introduced an error where a trailing
backslash would case an infinite loop. Of course this must fixed, but
the question is what to to instead. Allowing trailing backslashes and
treating them as normal characters would be one option, but this seems
suboptimal. First, there would be inconsistency between handling of
quoting and of backslashes. Second, a trailing backslash is most
likely an error, at it seems better to point it out to the user than
to try to continue.
Updated rules:
ExecStart=/bin/echo \\ → OK, prints a backslash
ExecStart=/bin/echo \ → error
ExecStart=/bin/echo "x → error
ExecStart=/bin/echo "x"y → error
commit 30bcc05295944cfc2f3ed9159592130c003e19f5
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Dec 18 17:01:42 2014 -0500
test-strv: use STRV_MAKE
commit 447021aafdf4bd0c0f70a3078d35a8f00ada4504
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Dec 18 12:33:05 2014 -0500
tree-wide: make condition_free_list return NULL
commit f1acf85a36f4c32d69511fe1bfa12f66e28fa80d
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Dec 18 12:29:24 2014 -0500
core: make exec_command_free_list return NULL
commit f08fa3be8d0b90ff0e778c7f2457711e9800ae95
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Dec 18 18:42:04 2014 -0500
hwdb: move Logitech mouse to the right spot
commit 90d37f7e8f9e9ab91b5d78bedfbca54b92143745
Author: Erik Auerswald <auerswal at unix-ag.uni-kl.de>
Date: Thu Dec 18 18:46:29 2014 -0500
hwdb: Logitech, Inc. RX 250 Optical Mouse DPI data
https://bugs.freedesktop.org/show_bug.cgi?id=87435
commit 171347760e6864d3c92bcd220013a62049fd4636
Author: Tim JP <t.jp at gmx.de>
Date: Thu Dec 18 18:40:44 2014 -0500
hwdb: Logitech, Inc. RX 300 Optical Mouse DPI data
https://bugs.freedesktop.org/show_bug.cgi?id=87456
commit dbf1f77bf727f7566f25553232b33843ecc172f0
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Dec 18 17:40:32 2014 -0500
test-cap-list: allow mismatch in case
commit e40872fc538f3216fd4d00aa969785b999a357bf
Author: Dave Reisner <dreisner at archlinux.org>
Date: Thu Dec 18 18:10:46 2014 -0500
path-util: fix breakage in path_is_mount_point
This fixes 2 problems introduced by 6feeeab0bc:
1) If name_to_handle_at returns ENOSYS for the child, we'll wrongly
return -ENOSYS when it returns the same for the parent. Immediately
jump to the fallback logic when we get ENOSYS.
2) If name_to_handle_at returns EOPNOTSUPP for the child but suceeds
for the parent, we'll be comparing an uninitialized value (mount_id) to
an initialized value (mount_id_parent). Initialize the mount_id
variables to invalid mount_ids to avoid this.
commit 65eb4378c3e1de25383d8cd606909e64c71edc80
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Dec 16 00:48:24 2014 +0100
systemd-hwdb: introduce new tool
This pulls out the hwdb managment from udevadm into an independent tool.
The old code is left in place for backwards compatibility, and easy of
testing, but all documentation is dropped to encourage use of the new
tool instead.
commit b98b483bac585af754e8a22ea890db8486905d8a
Author: Alin Rauta <alin.rauta at intel.com>
Date: Wed Dec 17 07:35:36 2014 -0800
networkd: add FDB support
commit c2551e7105051f40b2bf77a5c1ecb2e720d78d77
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Dec 17 15:46:30 2014 +0100
journal: next_with_matches() now does not need a mapped object as input
Now that journal_file_next_entry() does not need a pointer to the
current object, next_with_matches() does not need it either.
commit f534928ad7aaeec0bec2d653b4a50e79b0fc8418
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Dec 17 15:45:10 2014 +0100
journal: journal_file_next_entry() does not need pointer to current Object
The current offset is sufficient information.
commit 7943f42275025e1b6642b580b19b24dfab8dee61
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Dec 17 15:07:25 2014 +0100
journal: optimize iteration by returning previously found candidate entry
In next_beyond_location() when the JournalFile's location type is
LOCATION_SEEK, it means there's nothing to do, because we already have
the location of the candidate entry. Do an early return. Note that now
next_beyond_location() does not anymore guarantee on return that the
entry is mapped, but previous patches made sure the caller does not
care.
This optimization is at least as good as "journal: optimize iteration:
skip files that cannot improve current candidate entry" was.
Timing results on my workstation, using:
$ time ./journalctl -q --since=2014-06-01 --until=2014-07-01 > /dev/null
Before "Revert "journal: optimize iteration: skip files that cannot
improve current candidate entry":
real 0m5.349s
user 0m5.166s
sys 0m0.181s
Now:
real 0m3.901s
user 0m3.724s
sys 0m0.176s
commit 6e693b42dcb0b332364b0414107826826925c49f
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Thu Dec 18 14:21:55 2014 +0100
journal: optimize iteration by skipping exhausted files
If from a previous iteration we know we are at the end of a journal
file, don't bother looking into the file again. This is complicated by
the fact that the EOF does not have to be permanent (think of
"journalctl -f"). So we also check if the number of entries in the
journal file changed.
This optimization has a similar effect as "journal: optimize iteration:
skip whole files behind current location" had.
commit 58439db4cc45a6f84a74ad73f873bd3c113eebf6
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Dec 17 15:37:52 2014 +0100
journal: drop unnecessary parameters of next_beyond_location()
offset is redundant, because the caller can rely on f->current_offset.
The object pointer the function saves in *ret is thrown away by the caller.
commit e499c9998bb42b792afb1acd3532fe975280c0fd
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Thu Dec 18 09:56:04 2014 +0100
journal: remove redundant variable new_offset
The file's current_offset is already updated at this point, so let's use
it.
commit d8ae66d7faee23a74a69119270bf622100705f72
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Dec 17 14:06:28 2014 +0100
journal: compare candidate entries using JournalFiles' locations
When comparing the locations of candidate entries, we can rely on the
location information stored in struct JournalFile.
commit 1eb6332d557e6e510a9ce723296cb3b658d7e9a4
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Tue Dec 16 22:38:09 2014 +0100
journal: simplify set_location()
set_location() is called from real_journal_next() when a winning entry
has been picked from among the candidates in journal files.
The location type is always set to LOCATION_DISCRETE. No need to pass
it as a parameter.
The per-JournalFile location information is already updated at this
point. No need for having the direction and offset here.
commit 6573ef05a3cbe15949acfbbf1ad03726068907bd
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Tue Dec 16 21:03:36 2014 +0100
journal: keep per-JournalFile location info during iteration
In next_beyond_location() when we find a candidate entry in a journal
file, save its location information in struct JournalFile.
The purpose of remembering the locations of candidate entries is to be
able to save work in the next iteration. This patch does only the
remembering part.
LOCATION_SEEK means the location identifies a candidate entry.
When a winner is picked from among candidates, it becomes
LOCATION_DISCRETE.
LOCATION_TAIL here signifies we've iterated the file to the end (or the
beginning in the case of reversed direction).
commit 1fc605b0e130149a44abfa38c33f4535cfe548ea
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Tue Dec 16 20:54:56 2014 +0100
journal: abstract the resetting of JournalFile's location
commit 99cc7653a83af6647f28ac0cbedf6f6062e92b72
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Tue Dec 16 20:51:58 2014 +0100
journal: move definition of LocationType to journal-file.h
In preparation for individual JournalFiles maintaining a location
of their own.
commit 8a2bd0a365b203a3c42de75d5c907a5c540fbb13
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Tue Dec 16 20:32:41 2014 +0100
Revert "journal: optimize iteration: skip whole files behind current location"
This reverts commit b7c88ab8cc7d55a43450bf3dea750f95f2e910d6.
This optimization will be made redundant by the following patches.
commit 0633cb5206924bb6fe183804eda2b696ae352cca
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Tue Dec 16 20:32:34 2014 +0100
Revert "journal: optimize iteration: skip files that cannot improve current candidate entry"
This reverts commit f8b5a3b75fb55f0acb85c21424b3893c822742e9.
This optimization will be made redundant by the following patches.
commit 14499361a537f769fadfb2e9323c8a65d31e6862
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Tue Dec 16 15:47:01 2014 +0100
journal: delete unused function journal_file_skip_entry()
Its only caller is a test.
commit ae2adbcd09bd383b5a18728dfd32cf604c2c910e
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Tue Dec 16 19:06:30 2014 +0100
journal: delete unused function journal_file_move_to_entry_by_offset()
commit ee05e7795bb9ad7d1212dd49ad362f3e9603c4fd
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Dec 16 23:53:23 2014 -0500
core: use raw_clone instead of fork in signal handler
fork() is not async-signal-safe and calling it from the signal handler
could result in a deadlock when at_fork() handlers are called. Using
the raw clone() syscall sidesteps that problem.
The tricky part is that raise() does not work, since getpid() does not
work. Add raw_getpid() to get the real pid, and use kill() instead of
raise().
https://bugs.freedesktop.org/show_bug.cgi?id=86604
commit 503dbda6d94c16161762b7b489677a377f235590
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Dec 18 00:52:28 2014 -0500
test-unit-file: add test for semicolon escaping
https://bugs.freedesktop.org/show_bug.cgi?id=87393
commit 3851c51ad1dae6a1266896e7e364e424dc82467a
Author: tomsod-m ya ru <tomsod-m at ya.ru>
Date: Wed Dec 17 23:01:06 2014 -0500
load-fragment: properly unescape \;
https://bugs.freedesktop.org/show_bug.cgi?id=87393
commit 6feeeab0bc40b5a7f208adf79909fb85e2208e8e
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Dec 17 21:05:58 2014 -0500
path: make the check for unsupported name_to_handle_at symmetric
If child supports, but the parent does not, or when the child does
not support, but the parent does, assume the child is a mount point.
Only if neither supports use the fallback.
commit b890bf6a81acfc989743ef7a66ba5710aec66411
Author: Umut Tezduyar Lindskog <umut.tezduyar at axis.com>
Date: Wed Dec 17 19:43:58 2014 -0500
path: follow symbolic link for parent path (2)
c0e57ba9e22ee937722958d8b912ade2a37f206d fixed the fallback path.
We should do the same for name_to_handle_at().
commit f2cbe59e113f08549949a76ac5b9b3972df4cc30
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Dec 18 01:35:58 2014 +0100
machinectl: add new commands for copying files from/to containers
commit 20b63d12b533daf2e9b2936ffb03074861e1673e
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 17 21:54:00 2014 +0100
util: in make_stdio() use dup2() rather than dup3()
dup3() allows setting O_CLOEXEC which we are not interested in. However,
it also fails if called with the same fd as input and output, which is
something we don't want. Hence use dup2().
Also, we need to explicitly turn off O_CLOEXEC for the fds, in case the
input fd was O_CLOEXEC and < 3.
commit 82e6c50c473f4be8df77c7a510577f1975eedddb
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 17 21:53:54 2014 +0100
update TODO
commit 785890acf6d629ff881a1f065f431df1b7fc8c7a
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 17 21:51:45 2014 +0100
machinectl: implement "bind" command to create additional bind mounts from host to container during runtime
commit 60e1651a31c9c0ed1caef1a63f5e3a87156b0b1e
Author: Ken Werner <ken at linux.vnet.ibm.com>
Date: Tue Dec 16 18:06:41 2014 +0100
nspawn: fix invocation of the raw clone() system call on s390 and cris
Since the order of the first and second arguments of the raw clone() system
call is reversed on s390 and cris it needs to be invoked differently.
commit ef686ae230c55124e3efdc7d756fb1931e10aef4
Author: Marc Schmitzer <marc at marc-schmitzer.de>
Date: Tue Dec 16 22:14:40 2014 -0500
hwdb: add Lenovo 3000 N200 special key
https://bugs.freedesktop.org/show_bug.cgi?id=87377
commit c0e57ba9e22ee937722958d8b912ade2a37f206d
Author: Umut Tezduyar Lindskog <umut.tezduyar at axis.com>
Date: Tue Dec 16 21:58:39 2014 +0100
path: follow symbolic link for parent path
[zj: When we lstat the target path, symlinks above the last component
will be followed by both stat and lstat. So when we look at the
parent, we should follow symlinks.]
commit dd9c7723fafc8b326188efa86efe00bcbe5abcfd
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Dec 17 01:08:56 2014 +0100
shared: strv - add strv_clear()
This frees the elements of the strv without freeing the strv itself.
commit 3542eac7f98e74ca106ac6df81b3b3cb158b35be
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Dec 16 22:24:54 2014 +0100
shared: path-util - memory leak
commit c487c9cec012282273e16f3110734309934a1281
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Dec 16 21:49:06 2014 +0100
udev: net_setup - fix warning
commit 30c873fbfb9bb291330d50aae8fb67d774a0e4f8
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Tue Dec 16 20:36:40 2014 +0100
test-json: use fabs
commit b0ceb53a7ddb94269f70b2769bbc72870e574111
Author: Susant Sahani <susant at redhat.com>
Date: Tue Dec 16 08:48:34 2014 +0530
fix compiler warning
src/shared/utf8.c:268:13: warning: unused variable 'd'
[-Wunused-variable]
int d;
commit 75836b9d2071aab978ee78d7d797126a18a32052
Author: Jan Synacek <jsynacek at redhat.com>
Date: Mon Dec 15 10:39:00 2014 +0100
systemctl: fix argument handling when invoked as "shutdown"
commit df17ddee0853482bfaefc36b9bd3424a64621915
Author: Harald Hoyer <harald at redhat.com>
Date: Mon Dec 15 11:34:24 2014 +0100
nss-myhostname: also recognize "gateway."
"gateway." skips adding the domain search path and saves some queries to
the nameserver.
commit b42de08aa4c97636e42c28c7bce08f0d7c2a719a
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Dec 16 00:22:58 2014 -0500
Update TODO
commit bc854dc7cd051e1e5a6ebcca8084b07168051c6c
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Dec 15 23:01:05 2014 -0500
systemctl: refuse to edit runtime dropins when they already exist in /etc
The check for existing unit files and dropins is unified.
path_join() is updated to not insert duplicate separators.
commit ad2a035820e0fca29e49816f735bec1fcdabf82a
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Dec 13 16:38:35 2014 -0500
systemctl: share path lookup between 'cat' and 'edit'
'systemctl cat' now works for templates too.
'systemctl edit' does not refuse to edit units that have changed on
disk. That restriction didn't seem useful, actually editing units that
have changed on disk before they are started is very reasonable.
'edit' with instances and templates works again:
Now:
$ build/systemctl edit getty@
Failed to copy /etc/systemd/system/getty at .service.d/override.conf to /etc/systemd/system/getty at .service.d/.override.confdff6290408c86369: Permission denied
$ build/systemctl edit getty at tty3
Failed to create directories for /etc/systemd/system/getty at tty3.service.d/override.conf: Permission denied
$ build/systemctl edit --full getty at tty3
Failed to copy /usr/lib/systemd/system/getty at .service to /etc/systemd/system/.getty at tty3.serviced3d175087e7e439b: Permission denied
Failed to create temporary file for /etc/systemd/system/getty at tty3.service: Permission denied
$ build/systemctl edit --full getty@
Failed to copy /usr/lib/systemd/system/getty at .service to /etc/systemd/system/.getty at .servicea3caad491c0f2f3d: Permission denied
Failed to create temporary file for /etc/systemd/system/getty at .service: Permission denied
commit 8df1850740f2b78407b856e32ba649a7037227d4
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Dec 16 00:28:43 2014 -0500
systemctl: split out LookupPaths initialization
commit 33f6c497f3f2da15b94da9140f77aefac92e2866
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Dec 16 00:28:41 2014 -0500
systemctl: move two functions up
No functional change.
commit 3f36991e00634026db3c603a10dfcb3af2c5b7b2
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Dec 15 23:28:38 2014 -0500
systemctl: unify warning about unit files changed on disk
commit 5b013a2f67a5914d6e86e3914f40cf44a03da091
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Dec 13 12:43:07 2014 -0500
systemctl: do not use -1 for return code
Also make the error messages more specific to give a hint to the user
how to solve the problem.
commit 1a7f1b385cd9de8a0da934fadc379860f914ef33
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Dec 14 23:12:40 2014 -0500
Move dropin listing to shared
No functional change. This is in preparation for using this in
systemctl in the future.
commit 6a057a99854268afe19738022205416bd5a0f4b5
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date: Tue Dec 16 15:08:07 2014 +1000
hwdb: Logitech MX1000, another Lenovo USB mouse
Provided by Benjamin Bellec
https://bugs.freedesktop.org/show_bug.cgi?id=87343
commit b631b4812a48f3e7f629833534a5ff6b8177ee56
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date: Thu Dec 11 17:33:14 2014 +1000
hwdb: more an entry for the MS Sculpt Ergonomic
Note that the MS receivers likely work like the Logitech ones, i.e. all
devices connected show up with the same vid/pid/name. Full evidence remains to
be gathered.
commit e7eebcfc42f00aa481ef31abc8e7e243c16f5b2c
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Dec 15 22:26:56 2014 +0100
shared: add minimal JSON tokenizer
commit c532d8a00cacacc6775effb7aadca680b1d39ccd
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Dec 15 19:58:25 2014 +0100
udev: builtin-hwdb - port to sd-hwdb
commit d640c07d97eb19003226257b703eaa6cf1cbb4cf
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Dec 15 19:48:21 2014 +0100
udevadm: port to sd-hwdb
commit 81fd1dd3a2cf4cc90a6898d562c9bb0fb238cbd7
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Dec 15 20:07:34 2014 +0100
networkctl: port from libudev to sd-hwdb
commit d2f81fb00cc3c49e21b31000ba7d37b81a260257
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Dec 15 18:48:20 2014 +0100
update TODO
commit 0faacd470dfbd24f4c6504da6f04213aa05f9d19
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 21:05:32 2014 +0100
unit: handle nicely of certain unit types are not supported on specific systems
Containers do not really support .device, .automount or .swap units;
Systems compiled without support for swap do not support .swap units;
Systems without kdbus do not support .busname units.
With this change attempts to start a unsupported unit types will result
in an immediate "unsupported" job result, which is a lot more
descriptive then before. Also, attempts to start device units in
containers will now immediately fail instead of causing jobs to be
enqueued that never go away.
commit 17d1f37d0dbd2d78b8866e1350c83a9755105144
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Dec 15 17:57:51 2014 +0100
networkd: failing to track links is a serious problem so log at warning level rather than debug
commit f9e35b2e0d510986d30808824345cddd794b9fd6
Author: Daniel Mack <daniel at zonque.org>
Date: Mon Dec 15 17:15:16 2014 +0100
hwdb: fix ordering
We sort by default DPI, not the first one in the list.
commit f8a9b6ae359bb14d905332530ba816da66fdbdf3
Author: Daniel Mack <daniel at zonque.org>
Date: Mon Dec 15 17:11:31 2014 +0100
hwdb: Logitech G400s
Provided by Peter Hutterer:
https://bugs.freedesktop.org/show_bug.cgi?id=87332
commit de72f11bd1d98956baaae2192094b4f59ed2d307
Author: Harald Hoyer <harald at redhat.com>
Date: Mon Dec 15 11:26:38 2014 +0100
hwdb: Logitech MX 518
commit e17fb3c1dd21929119968325c46ab98630446032
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Mon Dec 15 13:06:48 2014 +0100
shared: time-dst: Avoid buffer overflow
Commit 681f9718 introduced an additional null terminator for the zone names.
Increase the allocation of "transitions" to actually make room for this.
commit d47f6ca5f9b7a0b400d8bdb050151a0284fb4bdb
Author: Gabriel de Perthuis <g2p.code at gmail.com>
Date: Sat Dec 13 01:56:56 2014 +0100
blkid: Warn when rejecting a superblock with a bad csum
Bump libblkid requirement from 2.20 to 2.24.
util-linux 2.25 is actually required since fdbbad981cc5da8bb4ed7e9b6646e7a114745ec5
commit 9b6e0ce5acff34a87314f3eb9f72532486840edf
Author: Ivan Shapovalov <intelfx100 at gmail.com>
Date: Sun Dec 14 16:04:01 2014 +0300
delta: fix output alignment of [REDIRECTED] entries
commit cf5a8997515dc5fc96f34385ad153e4b213b4705
Author: Mantas Mikulėnas <grawity at gmail.com>
Date: Sun Dec 14 19:12:34 2014 +0200
build-sys: remove commented-out m4 from user at .service
Otherwise this actually remains in the generated unit in /usr/lib.
If you want to keep it commented out, a m4-compatible way would be:
m4_ifdef(`HAVE_SMACK',
dnl Capabilities=cap_mac_admin=i
dnl SecureBits=keep-caps
)
commit 0f5a314b2ec348c241e4a484ee505bbd2eddb19e
Author: Dave Reisner <dreisner at archlinux.org>
Date: Sun Dec 14 10:55:16 2014 -0500
build-sys: fix distcheck
- fix misspelling in filename (intenal -> internal)
- remove deleted hwdb-related file (nuked with sd-hwdb refactor)
commit 7cd3aba6bdd26583f62b318f18def8939de3274f
Author: Dave Reisner <dreisner at archlinux.org>
Date: Sun Dec 14 10:40:25 2014 -0500
build-sys: always distribute systemd-consoled.service.in
Similar to how we handle other facilities that can be flagged out at
configure time, we should always distribute this input file.
http://lists.freedesktop.org/archives/systemd-devel/2014-December/026272.html
commit e9e310f8e99c63c764f71ed0c224ccd3cceb90c7
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sat Dec 13 15:14:48 2014 +0100
systemctl: handle correctly template units for edit verb
Previously, if we provided getty at .service to systemctl edit it would
have failed when using the bus because it is an invalid unit name.
But it would have succeeded when searching in the filesystem.
Now, we check if we have a template, if we do we search in the
filesystem, if we don't have a templae and we can use the bus, we do.
Furthermore, if we provided getty at tty1.service it would not have worked
when searching the filesystem, but it would have worked with the bus.
So now, when using the filesystem we use the template name and not the
unit name, and the same when logging errors.
(Also did a refactoring to avoid a long function)
commit fee0a921830166abffe5a806a512da6ceb2fe2eb
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sat Dec 13 15:12:38 2014 +0100
test-unit-name: add more tests
Add more test cases for:
- unit_name_is_instance
- unit_name_to_instance
Add tests for:
- unit_name_template
- unit_name_is_template
commit 69adae5168da231c6cf319f708860954701b25ed
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Dec 3 18:25:44 2014 +0100
journal: replace contexts hashmap with a plain array
try_context() is such a hot path that the hashmap lookup is expensive.
The number of contexts is small - it is the number of object types.
Using a hashmap is overkill. A plain array will do.
Before:
$ time ./journalctl --since=2014-06-01 --until=2014-07-01 > /dev/null
real 0m9.445s
user 0m9.228s
sys 0m0.213s
After:
$ time ./journalctl --since=2014-06-01 --until=2014-07-01 > /dev/null
real 0m5.438s
user 0m5.266s
sys 0m0.170s
commit 634ed0ee3466e5e5f78d3acbe9782650ff456288
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Dec 3 18:23:23 2014 +0100
journal: delete unused function mmap_cache_close_context
This never had any callers. Contexts are freed when the MMapCache is
freed.
commit 7a9dabea7eabd4dd87f8774234265590d34761da
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Dec 12 23:20:05 2014 +0100
journal: push type_to_context conversion down to journal_file_move_to()
commit 7851983162ef851d5b9ce12bd88de86fc402f88a
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Dec 10 15:18:49 2014 +0100
journal: have a named enum ObjectType
commit d05089d86ef032b245c7f928e623b88c82998ab0
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Dec 12 22:51:24 2014 +0100
journal: consistently use OBJECT_<type> names instead of numbers
Note that numbers 0 and -1 are both replaced with OBJECT_UNUSED,
because they are treated the same everywhere (e.g. type_to_context()
translates them both to 0).
commit 2df65e7d964295f2763fae3b8bc3ade5d4e0fbe3
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Dec 10 16:37:29 2014 +0100
journal: consistently allow type==0 to mean "any type"
If type==0 and a non-NULL object were given as arguments to
journal_file_hmac_put_object(), its object type check would fail and it
would return -EBADMSG.
All existing callers use either a positive type or -1. Still, for
behavior consistency with journal_file_move_to_object() let's allow
type 0 to pass.
commit d3d3208f607693b8fde5226efa0cc15ec17670a0
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Dec 12 18:06:22 2014 +0100
journal: move type_to_context() to journal-file.c
It has no other callers. It does not need to be in the header file.
commit 1b8951e5bd9b2bf1722098a861055cae0bb52088
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Dec 12 21:52:18 2014 +0100
journal: remove journal_file_object_keep/release functions
The only user is sd_journal_enumerate_unique() and, as explained in
the previous commit (fed67c38e3 "journal: map objects to context set by
caller, not by actual object type"), the use of them there is now
superfluous. Let's remove them.
This reverts major parts of commits:
ae97089d49 journal: fix access to munmapped memory in
sd_journal_enumerate_unique
06cc69d44c sd-journal: fix sd_journal_enumerate_unique skipping values
Tested with an "--enable-debug" build and "journalctl --list-boots".
It gives the expected number of results. Additionally, if I then revert
the previous commit ("journal: map objects to context set by caller, not
to actual object type"), it crashes with SIGSEGV, as expected.
commit fed67c38e3f1cecf4c0571f5603d47b35bff6576
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Dec 12 18:21:55 2014 +0100
journal: map objects to context set by caller, not by actual object type
When the caller of journal_file_move_to_object() specifies type==0,
the object header is at first mapped in context 0. Then after the header
is checked, the whole object is mapped in a context determined by
the actual object type (which is not even range-checked using
type_to_context()). This looks wrong. It should map in the
caller-specified context.
An old comment in sd_journal_enumerate_unique() supports this view:
/* We do not use the type context here, but 0 instead,
* so that we can look at this data object at the same
* time as one on another file */
Clearly the expectation was that the data object will remain mapped
in context 0 without being pushed away by mapping other objects in
context OBJECT_DATA.
I suspect that this was the real bug that got fixed by ae97089d49
"journal: fix access to munmapped memory in sd_journal_enumerate_unique".
In other words, journal_file_object_keep/release are superfluous after
applying this patch.
commit fad5a6c66e73d3df20846906121d52159e1f6bf4
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Dec 12 17:57:22 2014 +0100
journal: add debug mode for mmap-cache (--enable-debug=mmap-cache)
This is useful for exposing unsafe access to mmapped objects after
the context that they were mapped in was already moved.
For example:
journal_file_move_to_object(f1, OBJECT_DATA, p1, &o1);
journal_file_move_to_object(f2, OBJECT_DATA, p2, &o2);
t = o1->object.type; /* this usually works, but is unsafe */
commit fc86aa0ed204922dcafa85353cb10e1aa7d91a76
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Dec 12 17:48:13 2014 +0100
configure.ac: add a generic --enable-debug, replace --enable-hashmap-debug
There will be more debugging options later.
--enable-debug will enable them all.
--enable-debug=hashmap will enable only hashmap debugging.
Also rename the C #define to ENABLE_DEBUG_* pattern.
commit 90df619ef505145a62b25bbe8d95ae595a6a9511
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Dec 12 17:42:28 2014 +0100
shared/hashmap.h: fix comment
An early version used underscore prefixes for internal functions, but
the current version uses the prefix "internal_".
commit e31fc1417a32f7f4efec1eb58a1511075a60e428
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Dec 12 18:20:51 2014 -0500
hwdb: add more mice
https://bugs.freedesktop.org/show_bug.cgi?id=87271
commit 7731320a14caaf8410c45867746abf38c62252aa
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Dec 12 18:16:45 2014 -0500
hwdb: sort mice by brand,type,dpi,frequency
This way entries from the same brand with the same dpi and frequency
can be coalesced. It is also visually easier to find the right DPI
than order hexadecimal identifiers.
commit b7378b89d233ee0b5e27618b5bd15010faa12de5
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Fri Dec 12 21:53:28 2014 +0100
networkctl: remove unused variable
commit abc08d4d08006fa19dec645859f81af9f227339e
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Fri Dec 12 19:51:41 2014 +0100
wrap a few *_FOREACH macros in curly braces
cppcheck would give up with "syntax error" without them. This led
to reports of syntax errors in unrelated locations and potentially
hid other errors
commit 308b57107606818431d3bff83e346eeab2f21e6a
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 20:24:35 2014 +0100
update TODO
commit 7d54a03a877e9c3f3f3087401ac4ccc1e12c78ea
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 20:12:35 2014 +0100
core: retry unmounting until we are done, in case of stacked mounts
commit b1acce80cd60fe95f16df2f1ad23ff2ad82d08e5
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 19:11:35 2014 +0100
networkctl: also draw a nice unicode cirlce when "networkctl status" is run without parameters
commit 1693a943ca581aca2beebb4c812ec6c9f17b8164
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 19:07:26 2014 +0100
networkctl: show interface names next to IP addresses if we dump adresses from all interfaces
commit 69fb1176c403e437c4fba763ba242b540c73898f
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 18:57:15 2014 +0100
networkctl: also show gateway address when "networkctl status" without further arguments is passed
commit 888943fc6246b2917168fff59380b58b678ba157
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 18:50:06 2014 +0100
networkctl: show MAC address OUI vendor next to MAC addresses
commit 4b7c1d5d6a006088910bac42ab3b777be9cf3cc1
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 18:42:19 2014 +0100
test-cap-list: always check libcap comes to the same names as we do, for the names it knows
commit 34a3e4ecad5fd2042eb83ffcbf30379a536cc3ee
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 18:37:25 2014 +0100
cap-list: return lower-case capability names, similar to libcap's cap_to_name(), for compat reasons
commit 98cd2651988619bf606f0b27825440c4638a7e0b
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 17:30:02 2014 +0100
update TODO
commit 667993e88eb7519c6674fe9a9e985619817465e0
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 17:29:12 2014 +0100
man: fedora 21 has been release, suggest 21 as fedora version in example yum command line
commit b9ba4dabbab8a58a044ec42655e11e65bd3ecc47
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 17:26:31 2014 +0100
nspawn: when booting in ephemeral mode, append random token to machine name
Also, when booting up an ephemeral container of / use the system
hostname as default machine name.
This way specifiyng -M is unnecessary when booting up an ephemeral
container, while allowing any number of ephemeral containers to run from
the same tree.
commit c4e34a612c81266773cf8358cb38a43d2e43474e
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 16:59:15 2014 +0100
nspawn: allow spawning ephemeral nspawn containers based on the root file system of the OS
This works now:
# systemd-nspawn -xb -D / -M foobar
Which boots up an ephemeral container, based on the host's root file
system. Or in other words: you can now run the very same host OS you
booted your system with also in a container, on top of it, without
having it interfere. Great for testing whether the init system you are
hacking on still boots without reboot the system!
commit df9a75e480ecbfe230589a7c1e8e0bb790ee0595
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 16:58:57 2014 +0100
nspawn: don't link journals in ephemeral mode
commit 53e438e3016e6b8304834d784fd0bbfeeb17cb77
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 16:58:30 2014 +0100
nspawn: properly unset arg_link_journal_try, when --link-journal= is specified
commit 7430ec6ac08f2c0416d9f806964c46b30f3862b2
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 16:24:33 2014 +0100
copy: use btrfs reflinking only whe we know we copy full files
commit 19ee32dc4d337a033c95c7d3302666f2ea4340bd
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Dec 12 14:02:57 2014 +0100
bus: send attach flags on BUS_MAKE
Make sure to set send-attach-flags on BUS_MAKE. These control which
information is revealed about the bus-owner.
commit 18ee085c155dcd5f196f2ef9b712698dfd377f82
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Dec 12 14:02:05 2014 +0100
bus: fix assert() on HELLO error-path
Make sure we don't call into any bus_kernel_*() functions before
b->is_kernel is set to true. Hard-code the CMD_FREE just like the other
helpers do.
commit ec16945ebfe64d5cd5403ae1a1b16bc05a779a16
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 03:50:59 2014 +0100
nspawn: beef up nspawn with some btrfs magic
This adds --template= to duplicate an OS tree as btrfs snpashot and run
it
This also adds --ephemeral or -x to create a snapshot of an OS tree and
boot that, removing it after exit.
commit 0254b455e9730691e9f90d53afe860a0f3229f6d
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 03:20:53 2014 +0100
copy: teach copy_bytes() btrfs reflink magic
commit f9ac15442e4132f00eca5495d53c17062aae13e0
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 03:20:34 2014 +0100
gpt-auto-generator: make use of new btrfs-util.h APIs
commit d7c7c334f56edab8cfc102b657366277a65738cf
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 03:15:58 2014 +0100
shared: add new btrfs-util.[ch] helpers for doing common btrfs operation
commit 700c6087eb58de7af510f747414ea97b07e08b2b
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 03:13:48 2014 +0100
shared: missing.h should include btrfs.h, before redefining some of its definitions
commit 6ce830fa612ca3f3159253c4c37aa9c81e7178ea
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 03:12:58 2014 +0100
util: minor simplification for loop_write() and loop_read()
commit 0c3c42847da2f614f1a3f93c7cc96cd241e17e3a
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 02:49:40 2014 +0100
nspawn: properly validate machine names
commit a60e9f7fc81558345c59bf203ace357223f208ef
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 02:35:39 2014 +0100
seccomp-util.h: make sure seccomp-util.h can be included alone
commit db594aef549b1376ea80030bd0966ed872eac01e
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 02:35:14 2014 +0100
path-util: no need to check whether p is absolute twice
commit a2e22d07c65aa7c1174a381589ad76841a04d100
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 02:34:12 2014 +0100
udev-builtin-btrfs: properly initialize ioctl struct to zeroes
commit 257224b0cdbb5ae1ac463a6a6645e033882b967e
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 02:33:48 2014 +0100
util: document why we have alloca_align()
commit ae6c3cc009a21df4b51851fb8fe3fde0b7d6d8f0
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 12 02:32:33 2014 +0100
util: when using basename() for creating temporary files, verify the resulting name is actually valid
Also, rename filename_is_safe() to filename_is_valid(), since it
actually does a full validation for what the kernel will accept as file
name, it's not just a heuristic.
commit 8d1c8bd746a6a14dec7470f93f843bcb0699f4b8
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Dec 12 09:52:06 2014 +0100
journal: fix dangling 'else' ambiguity
Rework the sd-journal iterators to avoid dangling 'else' ambiguity. For a
detailed explanation, see:
commit bff686e2a981ccd0888cdf1981977d24320f1770
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Dec 12 09:43:54 2014 +0100
hwdb: fix dangling 'else' ambuguity
commit bff686e2a981ccd0888cdf1981977d24320f1770
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Dec 12 09:43:54 2014 +0100
hwdb: fix dangling 'else' ambuguity
Imagine the following use of hwdb:
if (condition_A)
SD_HWDB_FOREACH_PROPERTY(hwdb, modalias, key, value)
operation_A(key, value);
else
log_error("...");
This should work just fine, but but definitely does not what you would
expect. Due to how SD_HWDB_FOREACH_PROPERTY is defined, the dangling
'else' is linked to the hidden 'if' statement in the macro instead of the
outer 'if (condition_A)'. This is unexpected and really annoying to debug.
Fix this by never leaving un-finished if-statements in
SD_HWDB_FOREACH_PROPERTY(). We simply inverse the if() statement and
explicitly add an 'else'-branch. This way, the statement is closed and all
ambuguities are resolved.
commit 0b9315719154fa7ea1a075e1b3785713f5acc3a1
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Dec 12 09:30:50 2014 +0100
hwdb: FOREACH_HWDB_PROPERTY -> SD_HWDB_FOREACH_PROPERTY
Lets not pollute the global namespace. Prefix all our exported names and
macros with SD_HWDB_*.
commit 3853d4cf8957e58bf8a7faa6262b7b1ab58565b5
Author: Marcel Holtmann <marcel at holtmann.org>
Date: Thu Dec 11 22:50:50 2014 +0100
hwdb: Update database of Bluetooth company identifiers
commit c4ef05484df942b6cc2037d33dd56cd209d1db9b
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Wed Dec 10 20:24:18 2014 +0100
use correct format types
commit 015df1f78f443f91b354e0c4b4cb76de86c838eb
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Thu Dec 11 18:30:37 2014 +0100
test-condition: add more test cases
commit e74aa253e977ffd768a6d3af3535ea5b31e350a7
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Thu Dec 11 18:30:16 2014 +0100
test-strv: add test for strv_equal
commit 27c5347c8c38bafedb1b48a5d8587d13eadcb90b
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Thu Dec 11 17:59:10 2014 +0100
test-execute: add tests for UMask directive
commit 14b0295f916a7ce5262b0b5b8a3418ce474b9c69
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Thu Dec 11 17:58:40 2014 +0100
test-unit-name: add tests for %f
commit d31f486b83484801b6a300a555a9b986a7a84e7b
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Dec 11 17:25:09 2014 +0100
bus: sync with kdbus.git
Changes:
* bloom parameters are returned in an offset via HELLO
* FREE now takes items just like any other ioctl
commit eccaf899331ecbe3807739b6356ebba3d71480c7
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Dec 11 16:58:45 2014 +0100
tree-wide: use our memset() macros instead of memset() itself
commit f7340ab269828d917cd1281e33e6dd4fdfee67b3
Author: Torstein Husebø <torstein at huseboe.net>
Date: Wed Dec 10 20:00:09 2014 +0100
treewide: correct spacing near eol in code comments
commit ee33e53a70c0d3f9d8aeafe4b8fd84a0d5e1d8d9
Author: Torstein Husebø <torstein at huseboe.net>
Date: Wed Dec 10 20:00:08 2014 +0100
core: correct spacing near eol in code comments
commit cc13b327297bb616f8adca10c7503581c8bc5b93
Author: Torstein Husebø <torstein at huseboe.net>
Date: Wed Dec 10 20:00:07 2014 +0100
shared: correct spacing near eol in code comments
commit 7517e17443225fafea86b21e42a36af69feb1dbc
Author: Torstein Husebø <torstein at huseboe.net>
Date: Wed Dec 10 20:00:06 2014 +0100
journald: correct spacing near eol code comments
commit ad67ef274e43ee841fb9d60e3cd2370e57418371
Author: Torstein Husebø <torstein at huseboe.net>
Date: Wed Dec 10 20:00:05 2014 +0100
sd-bus: correct spacing near eol in code comments
commit d076c6f9e486587d634d59082d2a13b9cbb4aef3
Author: Torstein Husebø <torstein at huseboe.net>
Date: Wed Dec 10 20:00:04 2014 +0100
networkd/resolved: correct spacing near eol in code comments
commit 1ed09c449185941fe145b66a0ea7be7df6a07058
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Dec 11 14:56:33 2014 +0100
build-sys: fix user unit m4 logic
commit 494bf20a2f1f1911db0e478a97e15d2d270e8d24
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Dec 11 01:53:43 2014 +0100
update TODO
commit 0411760af1ecd0bf4af07bb5775d32deda633600
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Dec 11 14:43:09 2014 +0100
sd-dhcp-client: log if we fail to set up lease timers
commit 02cd084db7b50a45a76bcdfe03668061bf7c79d6
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Dec 11 14:17:35 2014 +0100
tests: udev - assume /etc/machine-id rather than /etc/hosts
On todays machines /etc/hosts is not mandatory. /etc/machine-id is though, so let's rely on that instead.
This makes the udev tests pass again for me.
commit 8b516fdea74127327b0945bb50690bd70c6b6692
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Dec 3 17:32:40 2014 +0100
libudev: make libudev-hwdb a wrapper around sd-hwdb
commit 23fbe14f503c1e98292efc4ba1238adb7dc38d80
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Dec 3 17:02:34 2014 +0100
libsystemd: add sd-hwdb library
This is libudev-hwdb, but decoupled from libudev and in the libsystemd style.
The core code is unchanged, apart from the following minor changes:
- hwdb.bin located in /**/systemd/hwdb/ take preference over the ones located
in /**/udev/
- properties are stored internally in an OrderedHashmap, rather than a
linked list.
- a new API call allows individual properties to be queried directly, rather
than iterating over them all
- the iteration over properties have been moved inside the library, rather than
exposing a list directly
- the unused 'flags' parameter was dropped
commit 94e15fdc4d9d96fa6607bfb4eaaea164a3aec417
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Dec 11 13:19:41 2014 +0100
bus: sync with kdbus.git
Sync up with recent kdbus changed:
* several ioctls gained .size and .items members (but still unused)
* CMD_SEND gained its own ioctl structure
* several members of kdbus_msg were dropped as they were only used during
SEND, not during RECV etc.
* CMD_RECV and CMD_SEND now share a kdbus_reply member which contains the
offset and size of the returned message.
commit 055b27f29484b625e03706319c918e3a644e00b9
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Dec 11 10:45:58 2014 +0100
bus: zero cmd_free before passing to ioctl
Make sure the whole cmd_free object is zeroed before passing it into the
kernel. This makes valgrind happy and makes us future proof.
commit becb1a6e9deabad529c8bc1c90eb7d947505695b
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Dec 11 10:44:41 2014 +0100
bus: fix memfd-cache regarding memfd offsets
We must restore part->mmap_begin when poping memfds from the memfd-cache.
We rely on the memfds to be unsealed, so we can be sure that we own the
whole FD. Therefore, simply set part->mmap_begin to the same as
part->data.
This fixes test-bus-kernel-benchmark.
commit 1f140dd8b048c5f5599a886b8c4d20f3f1065774
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Dec 11 09:01:34 2014 +0100
TODO: update
Drop resolved kdbus issues.
commit 2ebcf936702e8e511098711b4add885372360018
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Dec 11 00:02:54 2014 -0500
localectl,man: make it obvious that set-*-keymaps sets both keymaps
https://bugs.freedesktop.org/show_bug.cgi?id=85411
commit 820aced6f6067a6b7c57b7d36e44f64378870cbf
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Dec 10 17:34:41 2014 -0500
zsh-completion: remove duplicate function
https://bugs.archlinux.org/task/43069
commit de24871ebf92422892a6eaed9f28b2a3a5f64572
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 23:19:55 2014 +0100
build-sys: update Lennart's private target
commit 122676c9d9737f8591429fd5ffc9b454a994741d
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 23:17:54 2014 +0100
NEWS: minor wording improvement
commit a9a3da50fb2a5d1247f63979df53511128250f3f
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 23:01:13 2014 +0100
build-sys: add missing file to CLEANFILES
commit 7da81d33c147f4d6397efa1fdd08ba0a40c9c457
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 22:33:21 2014 +0100
NEWS: update contributors list
commit 98077125580d5600842a6d13d0597e50dfb9572a
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 22:31:27 2014 +0100
build-sys: bump package and library versions in preparation for 218 release
commit 1f3ba2bb4f65b56ee77b098d8ab34766db55cf0a
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 22:10:46 2014 +0100
build-sys: turn off SMACK capabilities stuff for now, since it is incompatible with nspawn
commit fbcedaaea4705a0548d50d9702ece04f73847344
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 22:08:49 2014 +0100
update TODO
commit 7b3fd6313c4b07b6f822a9f979d0c22350a401d9
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 22:06:44 2014 +0100
scope: make attachment of initial PIDs a bit more robust
commit 0cd385d31814c8c1bc0c81d11ef321036b8b0921
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 20:38:24 2014 +0100
core: don't migrate PIDs for units that may contain subcgroups, do this only for leaf units
Otherwise a slice or delegation unit might move PIDs around ignoring the
fact that it is attached to a subcgroup.
commit d0928791499734e202460d5c027b5d3e0d28e7ab
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 19:57:52 2014 +0100
update TODO
commit 764458325ef3586229137694538bcf5e8bde8c48
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 19:57:45 2014 +0100
core: properly pass unit file state to clients via the bus
commit b9f08b1ff40197fe9b2fa892c5b7e7650c22d0ac
Author: Kay Sievers <kay at vrfy.org>
Date: Wed Dec 10 19:46:00 2014 +0100
build-sys: fix link-order
commit fe666c198ea11b47c6fc9fa677e91915636518fe
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 19:07:32 2014 +0100
update TODO
commit 1776fff91735a3be5ad2b0a9dee727d614668fb7
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 19:06:43 2014 +0100
sd-bus: make BUS_ERROR_MAP_ELF_USE() use a const variable
commit 7303ec8f3009d6630a994644ad9e539813badc52
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 19:03:08 2014 +0100
networkd: rename section [BridgePort] → [Bridge]
Let's stick to generic sections that describe the general technology,
instead of specific per-object sections, unless we really have a reason
to do that otherwise.
commit 96aad8d15a324d0e956a4e5653a11a67b209b41a
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 19:00:46 2014 +0100
sd-bus: move common errors src/shared/bus-errors.h → src/libsystemd/sd-bus/bus-common-errors.h
Stuff in src/shared/ should not use stuff from src/libsystemd/ really.
commit 85bd849f09aceb7f972a0697494ea22b2247a5d7
Author: Patrik Flykt <patrik.flykt at linux.intel.com>
Date: Wed Dec 10 16:17:35 2014 +0200
networkd-dhcp6: Support ICMPv6 Other information
When ICMPv6 Other information is received, enable Information request
in DHCPv6. If the DHCPv6 client already exists, only update the client
if there is a transition from Other to Managed state.
commit 5c79bd79839f1e50bd3c34a0670037f7965ca5a4
Author: Patrik Flykt <patrik.flykt at linux.intel.com>
Date: Wed Dec 10 16:17:34 2014 +0200
networkd-dhcp6: Move ICMPv6 and DHCPv6 configuration to new file
Handle all aspects of ICMPv6 and DHCPv6 in a file of its own as is done
with DHCPv4 and IPv4LL.
commit c4e8ceddccfbb14e475e74eb5c57ba32c3c6cf86
Author: Patrik Flykt <patrik.flykt at linux.intel.com>
Date: Wed Dec 10 16:17:33 2014 +0200
test-dhcp6-client: Add a simple Information Request test case
Start the DHCPv6 test case by sending an Information Request, verifying
the reply and continuing at once with the normal address acquisition
procedure. Reuse the DHCPv6 Solicit Reply so that the client code is
verified to ignore any erroneously added IPv6 address information.
commit bbfa43ca37df0718287c25a8e39ee7477ebf33f6
Author: Patrik Flykt <patrik.flykt at linux.intel.com>
Date: Wed Dec 10 16:17:32 2014 +0200
sd-dhcp6-client: Implement Information Request message
Implement Information Request message according to RFC 3315, section
18.1.5. with the excepion that the first message is not delayed by a
random amount. Instead systemd-networkd is supposed to take care of
desynchronizing between other clients.
Initialize the DHCPv6 client structure in sd_dhcp6_client_start()
as this allows toggling between information request and normal
DHCPv6 address aquisition modes.
commit fab15fec2413bbc15dc7c24724ec82e371c966ba
Author: Patrik Flykt <patrik.flykt at linux.intel.com>
Date: Wed Dec 10 16:17:31 2014 +0200
sd-dhcp6-lease: Return only -EINVAL when a NULL lease is supplied
Suppyling a NULL lease is not a condition that needs to be asserted,
returning -EINVAL is informative enough to the caller. This simplifies
calling code and doesn't falsely indicate that something erroneous was
attempted.
commit c47e8936a43ce546e8a74fa569e9fbfae6c64be7
Author: Patrik Flykt <patrik.flykt at linux.intel.com>
Date: Wed Dec 10 16:17:30 2014 +0200
sd-dhcp6-client: Make end of successfull option parsing explicit
When all DHCPv6 options have been parsed, dhcp6_option_parse() returns
-ENOMSG. Explicitely set the return value to indicate success so that
later code does not need to take this special value into account.
commit 8c67d0a74bc466f0a21d96625ce6b4e24b2a5f1f
Author: Torstein Husebø <torstein at huseboe.net>
Date: Wed Dec 10 17:41:54 2014 +0100
hwdb: fix typo
commit 40dba7022a2affe42a774a73828475a488cca751
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 17:38:47 2014 +0100
hwdb: add two more mice to the DPI database
commit 43db910dac906605e1fbebfae1d7098edea43ea4
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 15:59:38 2014 +0100
hwdb: add another Logitech mouse (M-BZ96C)
commit d6d8f25599c39849d8c0f667f0d5a14a9adf2f48
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 15:46:28 2014 +0100
TODO
commit 547b25d285fa95cfe96a4afe91864807625603c1
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 15:46:22 2014 +0100
man: improve docs for systemd-modules-load.service
commit 85c24db1f7aca581df5c4e375a564d40dc3149c8
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 15:46:08 2014 +0100
hwdb: add DPI data for M325 mouse
commit 0eb3cc88504b5d8f740764047ac5162b67992386
Author: Jan Synacek <jsynacek at redhat.com>
Date: Wed Dec 10 10:20:11 2014 +0100
test: fix some tests when running inside a container
commit 536bfdab4cca38916ec8b112a6f80b0c068cc806
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 13:23:49 2014 +0100
virt: when detecting containers and /run/systemd/container cannot be read, check /proc/1/environ
This way, we should be in a slightly better situation if a container is
booted up with only a shell as PID 1. In that case
/run/systemd/container will not be populated, and a check for it hence
be ineffective.
Checking /proc/1/environ doesn't fully fix the problem though, as the
file is only accessible with privileges. This means if PID 1 is not
systemd, and if privileges have been dropped the container detection
will continue to fail.
commit a644abed54bd4a42ebe2c99af5cc621ffbaf6c55
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Dec 9 14:41:24 2014 -0500
systemctl: fix invalid free when enabling sysv services fails
The error was introduced in v215-343-g60731f32f1 'systemctl: do not
bother to mutate state on error', by causing strv_free to attempt to
free a static string. Simplify the whole thing by always keeping the
array in valid state.
commit 4dfb18922d5d1efb13ee459cbf23832277f85ed7
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Dec 1 20:47:37 2014 -0500
ima-setup: simplify
commit 553acb7b6b8d4f16a4747b1f978e8b7888fbfb2c
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Dec 1 20:43:19 2014 -0500
treewide: sanitize loop_write
loop_write() didn't follow the usual systemd rules and returned status
partially in errno and required extensive checks from callers. Some of
the callers dealt with this properly, but many did not, treating
partial writes as successful. Simplify things by conforming to usual rules.
commit cb01aedc3b4ba70859267159fe716253e3551ec6
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 03:25:48 2014 +0100
kdbus: downgrade warning if we cannot patch kdbus attach mask to DEBUG if kdbus is not available
commit 2822da4fb7f891e5320f02f1d00f64b72221ced4
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 03:16:14 2014 +0100
util: introduce our own gperf based capability list
This way, we can ensure we have a more complete, up-to-date list of
capabilities around, always.
commit 45823da23ccfea5159fafa844ede0a873a460df8
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 02:36:42 2014 +0100
update TODO
commit b7c0182b2ccb8f9f180f777e60903a9efed4ab85
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 02:36:35 2014 +0100
build-sys: fix CLEANFILES= for dns_type list
commit b7307642391c8ebb9724c99e6b33239e2c0ff944
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 01:47:59 2014 +0100
mount: clarify that we really need to replace the utab inotify code with the native API for this in libmount, as soon as that's stable
commit f7c1ad4fd4190bee32db0aa26c8e9fe7e19d8816
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 01:45:43 2014 +0100
core: unify how we iterate over inotify events
Let's add some syntactic sugar for iterating through inotify events, and
use it everywhere.
commit df63dda6d4b4fc90f895cfd40d54e15928671624
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 00:52:56 2014 +0100
mount: use bools where appropriate
commit f4e5c25cd7f8ef8aef07f2915ba3f7462e0cab06
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Wed Dec 10 01:33:08 2014 +0100
catalog: fix typos in the French translation
commit 409886c424cfaeeb5cf8928905560e5cac2d492d
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Wed Dec 10 01:10:01 2014 +0100
shell-completion: systemctl edit
commit 17c29493dc5c4c3ca886adfdc632d297c5eb06eb
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Wed Dec 10 00:50:24 2014 +0100
NEWS: fix typos
commit 795bc7e79107e01d088047e3b3a6f32da992a959
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 00:49:35 2014 +0100
gitignore: hide some more files
commit 8105cefa9543666dcf71bcd65561e4817f909747
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 00:46:33 2014 +0100
hwdb: update PCI, USB, OUI databases
commit e7b04a81666ff1a13a932972caaa49a9bf5619fa
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 00:40:23 2014 +0100
build-sys: don't fail if CAP_SETFCAP is missing
commit eb59c75e9a864063f3916c1914a563e1c89cf3ac
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date: Mon Dec 8 09:17:26 2014 +1000
hwdb: add more mouse DPI entries
Plus a note for Logitech devices using the unified receiver: these devices
include their wireless PID in the name, the usb PID/VID is the same for all.
In kernel 3.19 the actual model number will be the name, but the patches are
still a bit in flux at this point. In the future each device will need two
entries for pre+3.19 and 3.19.
https://bugs.freedesktop.org/show_bug.cgi?id=87037
https://bugs.freedesktop.org/show_bug.cgi?id=87072
https://bugs.freedesktop.org/show_bug.cgi?id=87162
commit 13e92f3966552091085982f4ebdeb38721f04a30
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 00:30:19 2014 +0100
NEWS: add contributors list
commit f9e00a9f5870a9bcae2de8bf1cb3ce04703112e1
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 00:27:26 2014 +0100
NEWS: prepare NEWS for new release
commit a90e23051b5b29deca4726a397574a34621038aa
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 10 00:26:16 2014 +0100
nspawn: create the macvlan MAC addresses in an arch independent stable way
commit f8b5a3b75fb55f0acb85c21424b3893c822742e9
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Tue Dec 9 20:27:26 2014 +0100
journal: optimize iteration: skip files that cannot improve current candidate entry
Suppose that while iterating we have already looked into a journal file
and got a candidate for the next entry. And we are considering to look
into another journal file because it may contain an entry that is nearer
to the current location than the candidate.
We should skip the whole journal file if we can tell by looking at its
header that none of its entries can precede the candidate.
Before:
$ time ./journalctl --since=2014-06-01 --until=2014-07-01 > /dev/null
real 0m20.518s
user 0m19.989s
sys 0m0.328s
After:
$ time ./journalctl --since=2014-06-01 --until=2014-07-01 > /dev/null
real 0m9.445s
user 0m9.228s
sys 0m0.213s
commit b7c88ab8cc7d55a43450bf3dea750f95f2e910d6
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Tue Dec 9 20:27:19 2014 +0100
journal: optimize iteration: skip whole files behind current location
Interleaving of entries from many journal files is expensive. But there
is room for optimization.
We can skip looking into journal files whose entries all lie before the
current iterating location. We can tell if that's the case from looking
at the journal file header. This saves a huge amount of work if one has
many of mostly not interleaved journal files.
On my workstation with 90 journal files in /var/log/journal/ID/
totalling 3.4 GB I get these results:
Before:
$ time ./journalctl --since=2014-06-01 --until=2014-07-01 > /dev/null
real 5m54.258s
user 2m4.263s
sys 3m48.965s
After:
$ time ./journalctl --since=2014-06-01 --until=2014-07-01 > /dev/null
real 0m20.518s
user 0m19.989s
sys 0m0.328s
The high "sys" time in the original was caused by putting more stress on
the mmap-cache than it could handle. With the patch the working set
now consists of fewer mmap windows and mmap-cache is not thrashing.
commit 1372d5eff4631aeec132b8e22d243fb81a4fdbc8
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Tue Dec 9 20:50:37 2014 +0100
networkd: remove unused variable
It is no longer used after 45af44d47da6933b260c734ad9ff721f63f80a4d
commit adb76a701d870b980f7949bcfece2c1547b4976d
Author: WaLyong Cho <walyong.cho at samsung.com>
Date: Tue Dec 9 21:46:30 2014 +0900
unit: update unit dropin paths and time when dropin file is written.
If a unit is set property by "systemctl set-property", a new dropin
file is generated. But the unit's dropin_paths and dropin_mtime are
not updated. So the unit is shown as need daemon reload.
Update unit dropin_paths and dropin_mtime also when dropin file is
written.
commit dd5ae4c36c89da5dbe8d1628939b26c00db98753
Author: Przemyslaw Kedzierski <p.kedzierski at samsung.com>
Date: Tue Dec 9 12:17:24 2014 +0100
bus-proxy: cloning smack label
When dbus client connects to systemd-bus-proxyd through
Unix domain socket proxy takes client's smack label and sets for itself.
It is done before and independent of dropping privileges.
The reason of such soluton is fact that tests of access rights
performed by lsm may take place inside kernel, not only
in userspace of recipient of message.
The bus-proxyd needs CAP_MAC_ADMIN to manipulate its label.
In case of systemd running in system mode, CAP_MAC_ADMIN
should be added to CapabilityBoundingSet in service file of bus-proxyd.
In case of systemd running in user mode ('systemd --user')
it can be achieved by addition
Capabilities=cap_mac_admin=i and SecureBits=keep-caps
to user at .service file
and setting cap_mac_admin+ei on bus-proxyd binary.
commit 4c213d6cf416917c61f82d8bee795b8f3a4c5372
Author: WaLyong Cho <walyong.cho at samsung.com>
Date: Tue Dec 9 16:07:16 2014 +0900
run: introduce timer support option
Support timer options --on-active=, --on-boot=, --on-startup=,
--on-unit-active=, --on-unit-inactive=, --on-calendar=. Each options
corresponding with OnActiveSec=, OnBootSec=, OnStartupSec=,
OnUnitActiveSec=, OnUnitInactiveSec=, OnCalendar= of timer
respectively. And OnCalendar= and WakeSystem= supported by
--timer-property= option like --property= of systemd-run.
And if --unit= option and timer options are specified the command can
be omitted. In this case, systemd-run assumes the target service is
already loaded. And just try to generate transient timer unit only.
commit e82959c0e335b4078d48d4a848679ac6a6d99feb
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 9 18:17:35 2014 +0100
update TODO
commit 32802361561403cb6441198c82d9c499e0513863
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 9 18:16:54 2014 +0100
sd-bus: get rid of PID starttime concept
As kdbus no longer exports this, remove all traces from sd-bus too
commit 7dcd79c295fb1f4bcdda5ead43739acf34100ef8
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 9 18:07:46 2014 +0100
sd-bus: properly support passing memfds around with offset/size parameters
commit 77adde638217112c9e080035197a76f4dc4af700
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Tue Dec 9 11:12:41 2014 +0100
bus: sync with kdbus-git (ABI break)
kdbus-git gained two new features:
* memfd offsets: This allows to specify a 'start' offset in kdbus_memfd
so you can send partial memfd hunks instead of always
the full memfd
* KDBUS_HELLO_UNPRIVILEGED: If passed during HELLO, the client will be
treated as unprivileged.
commit fbf7dcb5886f4077ee0dea618447ab488ff148fc
Author: Dan Winship <danw at redhat.com>
Date: Tue Nov 18 08:59:42 2014 -0500
libsystemd-network: fix writing of routes in dhcp lease file
inet_ntoa() uses a static buffer, so you can't call it twice in the
same fprintf() call.
commit a5ccdb9884a730553bce96b6d041b28da30d668f
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 9 03:58:20 2014 +0100
sleep: drop redundant MESSAGE= prefix
commit bf27dcb613a3924b7f4ec74c2de29ace79d62b01
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 9 03:58:10 2014 +0100
update TODO
commit 8ee8e53648bf45854d92b60e1e70c17a0cec3c3d
Author: Wesley Dawson <whd at mozilla.com>
Date: Sun Nov 30 23:27:00 2014 -0800
journalctl: respect --after-cursor semantics with --follow in all cases
In the case where no entries have been added to the journal after the specified
cursor, set need_seek before the main loop to prevent display of the entry at
said cursor.
commit b1491eba40715438b0ac874f2be79d5622b971e1
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 9 02:31:42 2014 +0100
core: rename unit_destroy_cgroup() to unit_destroy_cgroup_if_empty() since it's not quite as destructive as it sounds nowadays
commit dab5bf859900c0abdbf78c584e4aed42a19768cd
Author: Ross Lagerwall <rosslagerwall at gmail.com>
Date: Sat Nov 29 15:27:14 2014 +0000
cgroup: Handle error when destroying cgroup
If a cgroup fails to be destroyed (most likely because there are still
processes running as part of a service after the main pid exits), don't
free and remove the cgroup unit from the manager. This fixes a
regression introduced by the cgroup rework in v205 where systemd would
forget about processes still running after the unit becomes inactive.
(This can happen when the main pid exits and KillMode=process or none).
commit eb5800026d5a6754514fb8f8a8561b49974fc879
Author: Michael Marineau <michael.marineau at coreos.com>
Date: Mon Dec 8 11:05:31 2014 -0800
fstab-generator: Allow mount.usr without mount.usrflags, honor rw/ro
There is no need to require mount.usrflags. The original implementation
assumed that a btrfs subvolume would always be needed but that is not
applicable to systems that do not use btrfs for /usr.
Similar to using rootflags= for the default of mount.usrflags=, append
the classic 'ro' and 'rw' flags to the mount options.
commit 59cfa62f20f566b2c0279405b302e890812b3334
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 9 02:22:44 2014 +0100
fstab-generator: free all allocated strings
commit 68ac53e62fadb87f1b33ccd9bff9c3f7f699c937
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 9 02:12:11 2014 +0100
units: make sure container-getty at .service stops restarting when the pts device it is bound to is gone
We only want to restart the getty as long as the pts device is still
around. As soon as it is gone, the service should be removed to.
http://lists.freedesktop.org/archives/systemd-devel/2014-December/026048.html
commit 088c357d1337931104bbfdf9f8ead4a64dd6900d
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 9 02:05:19 2014 +0100
update TODO
commit e867ceb6b9c4de177d530ec5077cbd9d17d3531c
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 9 01:20:09 2014 +0100
nspawn: make sure macvlan MAC addresses are stable
https://bugs.freedesktop.org/show_bug.cgi?id=85527
commit 3072eecf3c714e3ed88c882623c40aca15445f64
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 9 01:09:21 2014 +0100
sd-rtnl: fix size check in sd_rtnl_message_append_string()
commit 4a02e68602be9f6f3caac0f6195672490f715fe1
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 9 00:08:31 2014 +0100
update TODO
commit 96ceff428359b8f757d9d4da1f5da13bb9b5ab2e
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 9 00:01:36 2014 +0100
sd-bus: catch up with current kdbus, don't do matches on kdbus monitor connections
commit e7100587da6d147fa601c911122d13ad4257e963
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Dec 8 23:52:08 2014 +0100
update TODO
commit 0aa72be6a02e8bbcb364526b8e1904a94b81a547
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Dec 8 23:47:19 2014 +0100
bus-proxy: fix compat with autostarted services
commit 4e7dff9b099bfbf7e367e339f5ddcd387caf78ae
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Dec 8 17:24:34 2014 -0500
load-fragment: remove wrong ifdef guard
config_parse_warn_compat is now always used for removed options.
https://bugs.freedesktop.org/show_bug.cgi?id=87125
commit 45af44d47da6933b260c734ad9ff721f63f80a4d
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Dec 8 19:54:06 2014 +0100
networkd: manager - enumerate addresses globally, rather than per-link
The kernel always returns all addresses, rather than only for the given link, so let's only enumerate once.
commit 2173cbf847fc53ca24950e77958c902edecfc207
Author: Olivier Brunel <jjk at jjacky.com>
Date: Fri Dec 5 16:06:45 2014 +0100
journal: Fix navigating backwards missing entries
With DIRECTION_UP (i.e. navigating backwards) in generic_array_bisect() when the
needle was found as the last item in the array, it wasn't actually processed as
match, resulting in entries being missed.
https://bugs.freedesktop.org/show_bug.cgi?id=86855
commit 1e19f35297ee757095cf372c82c3d9a6bb2311d3
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Dec 8 18:36:49 2014 +0100
networkd: link - typo
commit 0e707326fcecd3968efa7dc827123032f1b2cb61
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Dec 8 18:36:16 2014 +0100
sd-rtnl: fix bogus warning about dropping 20 bytes from multi-part messages
Nothing was being dropped, we just failed to account for the NLMSG_DONE.
commit 935c0d26f7ca748e78a02f524908ede696dc4cda
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Dec 8 13:58:48 2014 +0100
networkd: route - ignore unknown address family
commit ca6038b89645c0c1bd547d6a420bf95eb3d6f4cc
Author: Tom Gundersen <teg at jklm.no>
Date: Sun Dec 7 13:00:01 2014 +0100
udev: link-config - simplify net-match
commit 285760fedfaf907deab967b4b071d20e146752b5
Author: Dave Reisner <dreisner at archlinux.org>
Date: Sat Dec 6 13:34:27 2014 -0500
Check return value from reading name_assign_type attr
This file won't exist on kernels earlier than 3.17.
commit 8c12bb073d43b0e985cc2ced0650950ea59113c9
Author: Mantas Mikulėnas <grawity at gmail.com>
Date: Mon Dec 8 13:53:30 2014 +0200
networkd: update manpage for optional Gateway=
Following commit 59580681f5f.
commit d8a812d168971ef2a03bbf3d1cc5e9911f942264
Author: WaLyong Cho <walyong.cho at samsung.com>
Date: Tue Dec 9 00:03:53 2014 +0900
timer: timer can be a transient unit
commit ab31f6b8713d43354c3716ee4c37fe4460db9254
Author: WaLyong Cho <walyong.cho at samsung.com>
Date: Tue Dec 9 00:03:52 2014 +0900
bus: StartTransientUnit can have aux unit
commit 90b3dc4dd9ba33765aaaa8b7217f8df8f96188bd
Author: Lennart Poettering <lennart at poettering.net>
Date: Sat Dec 6 02:41:03 2014 +0100
update TODO
commit 5f86c1f4c43ee9caa120d130e9b89d3fd25124c0
Author: Lennart Poettering <lennart at poettering.net>
Date: Sat Dec 6 02:39:15 2014 +0100
sd-bus: rework ELF error mapping table magic
The ELF magic cannot work for consumers of our shard library, since they
are in a different module. Hence make all the ELF magic private, and
instead introduce a public function to register additional static
mapping table.
commit 8b5e2af10830d55b2032e6c79d0cd1f959bb5b7f
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sat Dec 6 09:43:31 2014 +0100
remove duplicated includes
commit 32bc8adcd836baff68e4d0f53b9a382f358cccf8
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Dec 5 15:56:10 2014 +0100
net_setup/networkd: warn if matching is done on possibly unstable ifname
commit 2a441c8afe7c81f74cc2ceccdf9a71301cd39d4d
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 5 14:09:33 2014 +0100
update TODO
commit 030512b2449921517d04bbd9357c0700cb0b4290
Author: Felipe Sateler <fsateler at gmail.com>
Date: Fri Dec 5 14:08:38 2014 +0100
man: fix reference to obsolete command "systemctl dump"
https://bugs.freedesktop.org/show_bug.cgi?id=87020
commit 840ceb897ff2b44275dcf2fe8227a750941789f0
Author: Daniel Mack <daniel at zonque.org>
Date: Fri Dec 5 10:03:00 2014 +0100
sd-bus: follow kdbus changes (ABI break)
Implement a recent change in the kdbus pool logic:
PAYLOAD_VEC_OFF items are now referencing offsets relative to the
connection's pool, not to the item itself. Follow this change in
sd-bus.
commit baade8cc237c37bd8905d86ec6e9c7872d4abe03
Author: Jan Janssen <medhefgo at web.de>
Date: Tue Dec 2 18:49:30 2014 +0100
cryptsetup-generator: Add support for naming luks devices on kernel cmdline
commit 6cd5b12aa5a62d6bf4afb78ec1a7787ff01b54ce
Author: Jan Janssen <medhefgo at web.de>
Date: Tue Dec 2 18:49:29 2014 +0100
cryptsetup-generator: Add support for UUID-specific key files on kernel command line
commit 0fa9e53d12a64981e071e0adb24698f4735e2599
Author: Jan Janssen <medhefgo at web.de>
Date: Tue Dec 2 18:49:28 2014 +0100
cryptsetup-generator: Split main() into more functions and use hasmaps
commit deb6120920e6341b1c16f5f088ab057358bb8fc4
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Dec 5 00:47:38 2014 +0100
man: there's actually no "fail" fstab option, but only "nofail"
commit c106cc36b9b8e8998eb95299b02f1db9c1209122
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Dec 4 21:57:13 2014 +0100
networkd: add basic [Link] settings to .network files
This allows the default link settings (set in .link files) to be overridden per Network. Only MTU and MACAddress is supported for now.
commit c18c2a0ea15820c49226aa05f294f5d5c1417263
Author: WaLyong Cho <walyong.cho at samsung.com>
Date: Thu Dec 4 12:46:06 2014 +0900
gitignore: ignore generated systemd-bootchart.service
commit 3e49a3a0633b808fef5fca0a36228e6d70b50bd7
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Dec 4 20:30:46 2014 +0100
sd-bus: add extra assert check
commit ebf4e8013b2928fdcfa6008ee6559e8c7e1fd60b
Author: Maciej Wereski <m.wereski at partner.samsung.com>
Date: Thu Dec 4 10:32:10 2014 +0100
tmpfiles, man: Add xattr support to tmpfiles
This patch makes it possible to set extended attributes on files created
by tmpfiles. This can be especially used to set SMACK security labels on
volatile files and directories.
It is done by adding new line of type "t". Such line should contain
attributes in Argument field, using following format:
name=value
All other fields are ignored.
If value contains spaces, then it must be surrounded by quotation marks.
User can also put quotation mark in value by escaping it with backslash.
Example:
D /var/run/cups - - - -
t /var/run/cups - - - - security.SMACK64=printing
commit 1cb636d92d5f40fed65d8a3a8f71a946f6a84e1e
Author: Colin Walters <walters at verbum.org>
Date: Thu Dec 4 13:12:40 2014 -0500
missing: define NET_NAME_UNKNOWN
It's only exposed to userspace since
commit 685343fc3ba61a1f6eef361b786601123db16c28
Author: Tom Gundersen <teg at jklm.no>
AuthorDate: Mon Jul 14 16:37:22 2014 +0200
Commit: David S. Miller <davem at davemloft.net>
CommitDate: Tue Jul 15 16:12:01 2014 -0700
to the kernel.
commit 7eb08da4b388b920c8a894b1500c9cc7dc1f31ef
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Dec 4 18:12:55 2014 +0100
udev: net_setup - allow matching on OriginalName=
This has been requested repeatedly, so let's give it a go. We explicitly do not allow matching
on names that have already been changed (from a previous udev run, or otherwise), and matching
on unpredictable names (ethX) is discouraged (but not currently disallowed).
We also currently allow:
[Match]
Name=veth0
[Link]
Name=my-name0
SomeOtherSetting=true
Which means that the link file will be applied the first time it is invoked, but
not on subsequent invocations, which may be surprising.
commit 03e8fdb34610c498e8c7fbe0ae18b53fe28cfbd1
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Dec 4 16:45:00 2014 +0100
missing: apparently, there's a world beyond x86..
..so make them cry and print a warning if __NR_memfd_create is not
defined. This should make syscall() fail with -ENOSYS, thus trigger a
suitable runtime error-path.
commit 9c0f842033c577d58b6b263073468ec5802478fc
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Dec 4 16:36:28 2014 +0100
sd-rtnl: fix compile
No idea how this appeared to compile for me. Mea culpa.
commit 40ff4a4abd76d71408e598ed02d7860b8465fa9a
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Dec 4 16:17:26 2014 +0100
update TODO
commit fae5694e1ab3226fea410aea86bd039831395ccf
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Dec 4 16:17:18 2014 +0100
smack-util: remove warning when building without SMACK support
commit 584d0d2aefe3ab521fcf3da818a14b4538ce04a9
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Dec 4 16:14:06 2014 +0100
sd-rtnl: rename sd_rtnl_message_route_get_{dst,src}_len to *_prefixlen
This makes the API more consistent.
commit 9624f0c1549921f5c1fc49281c624815c30bf38d
Author: Marcel Holtmann <marcel at holtmann.org>
Date: Thu Dec 4 16:07:49 2014 +0100
hwdb: Update database of Bluetooth company identifiers
commit 7bdb04298fd8b3de7adf2e0e547ef7dd953b809e
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Dec 4 15:55:46 2014 +0100
networkd: tunnel - allow INADDR_ANY as the local address
commit 9e7e440835c43d81ffdbc299d2c07daaa641ed50
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Dec 4 15:52:21 2014 +0100
networkd: add support for source routing
commit 66bba0e701b95dc42ed53e8f0799a7e2b944c147
Author: Maurizio Lombardi <mlombard at redhat.com>
Date: Mon Sep 22 11:48:57 2014 +0200
udevd: SAS: use SAS addr + PHY id in by-path whenever possible.
This patch changes the naming scheme for sas disks. The original names used
disk's sas address and lun, the new scheme uses sas address of the
nearest expander (if available) and a phy id of the used connection.
If no expander is used, the phy id of hba phy is used.
Note that names that refer to RAID or other abstract devices are
unchanged.
Name in raid configuration:
hba_pci_address-sas-raid_sas_address-lunY-partZ
Name in expander bare disk configuration:
hba_pci_address-sas-expander_sas_address-phyX-lunY-partZ
Name format without expanders:
hba_pci_address-sas-phyX-lunY-partZ
Signed-off-by: Maurizio Lombardi <mlombard at redhat.com>
commit 00e8d83a5a6fce20443b53bc42066bc756d5caeb
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Dec 4 12:19:57 2014 +0100
networkd: fix compile
Rebase failure on my side.
commit b6a3ca6d876ab59b4f29ed67f54ef87005177906
Author: Tom Gundersen <teg at jklm.no>
Date: Thu Dec 4 12:19:27 2014 +0100
networkctl: use the shared functions for enumerating the local gateways
commit e1853b00ef7cb56cafd908327dd44b3ab48b402c
Author: Susant Sahani <susant at redhat.com>
Date: Sat Nov 15 08:47:16 2014 +0530
networkd: Add bridge port path cost
This patch add support to specify path cost of the
bridge port to be configured via conf file.
Exampe: conf
file: br.netdev
[NetDev]
Name=br-test
Kind=bridge
file: br.network
[Match]
Name=em1
[Network]
Bridge=br-test
[BridgePort]
Cost=332
bridge link
2: em1 state UP : <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 master
br-test state disabled priority 32 cost 332
commit 85a8eeee36b57c1ab382b0225fa9a87525bbeee9
Author: Susant Sahani <susant at redhat.com>
Date: Sat Nov 15 08:24:59 2014 +0530
networkd: support vxlan parameters
V3: fix copy paste error
V4: Make manual and config more readable
Add vxlan paramertes to config.
commit 0a86c1a9d8066267b878dfeddc5e0087dda6a37b
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Dec 4 04:17:09 2014 +0100
update TODO
commit 00d75e5752f68a7b5d066158fdf0adffcaa9a7f2
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Dec 4 04:16:29 2014 +0100
rtnl: order local addresses/gateways by the address itself as last resort
This way we can be sure that the returned list is stable regarding
modifications in the kernel.
commit 9008e1ac925afcdef7b45042c03fa5444f1c52c2
Author: Michal Sekletar <msekleta at redhat.com>
Date: Wed Nov 12 13:53:27 2014 +0100
selinux: figure out selinux context applied on exec() before closing all fds
We need original socket_fd around otherwise mac_selinux_get_child_mls_label
fails with -EINVAL return code. Also don't call setexeccon twice but rather pass
context value of SELinuxContext option as an extra argument.
commit fe0b9cd3ba25fb5063b6782983dde0a0c9915660
Author: Michal Sekletar <msekleta at redhat.com>
Date: Wed Nov 12 15:19:42 2014 +0100
units: skip mounting /dev/hugepages if we don't have CAP_SYS_ADMIN
Preparation for allowing systemd to run gracefully in containers lacking
CAP_SYS_ADMIN.
commit 6ed62be0b15ac92d9687cff93c63d7b06d11b9f0
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Dec 4 02:36:04 2014 +0100
utf8: minor simplifications
commit 3c6d3052d3597100e9d531df03cb15e9988dc94d
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Dec 4 02:27:14 2014 +0100
utf8: when escaping unprintable unichars, escape the whole unichar, not just the first byte of it
commit 3f18c60b2e09d1191ffede3aeabd967b57a1f918
Author: WaLyong Cho <walyong.cho at samsung.com>
Date: Wed Nov 12 19:49:32 2014 +0900
bootchart: escape non printable process name
commit fec8457652002fd5bff923042a7407b3810f5a7f
Author: WaLyong Cho <walyong.cho at samsung.com>
Date: Wed Nov 12 19:49:31 2014 +0900
utf8: intruduce utf8_escape_non_printable
commit da64a1fc41e84bdb67c56693fff685b5eff2a2c7
Author: WaLyong Cho <walyong.cho at samsung.com>
Date: Sat Nov 15 15:42:11 2014 +0900
bootchart: add standalone bootchart service
commit 1d050e1e0a7082e23ee9b31fa0b819cb332b3444
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Dec 4 01:41:12 2014 +0100
rtnl: when querying local addresses and gateways, take address family into account
commit d2df88ffbac8858214adb9daaf7a93122fe26a50
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Thu Dec 4 00:23:27 2014 +0100
sd-bus: avoid a null dereference
commit 652212b0c2b60b9ef9b2e24eae82401f880fa21a
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Thu Dec 4 00:14:37 2014 +0100
systemctl: fix a leak
commit f08c4c08c7c2ce0fdfb4cf49642b00fbfb15185f
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Thu Dec 4 00:05:20 2014 +0100
test-path-util: fix a leak
commit 3b0ed75c353946ba580a7724f9dbeb761e2067fe
Author: Michael Biebl <biebl at debian.org>
Date: Sat Nov 29 06:35:38 2014 +0100
vconsole: don't hard-code systemd-vconsole-setup binary path
commit 6c03d27d9f7e831194dbd8bd6bcdeef9273edb6e
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Wed Dec 3 23:50:38 2014 +0100
networkctl: remove unused variable
commit e706d931e0f5741d57c6f3752b4e3520f90f47d5
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sun Nov 30 00:37:16 2014 +0100
util: don't shadow variable
environ is already defined in unistd.h
commit 77209c3505fa856dae23ae566b729c862a9b71f4
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 3 22:23:41 2014 +0100
resolved: don't resolve the hostname "gateway" with LLMNR, leave that to nss-myhostname
commit a98433c05c5cce62a6a17db74e49363a88156486
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 3 22:23:06 2014 +0100
rtnl: make checks for default routes more strict
Also check that the source netmask is 0, not only the destination
netmask.
commit e9140aff750e4f251f5f09b67412fed995fe9c47
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 3 21:42:58 2014 +0100
nss-myhostname: always resolve the host name "gateway" to the local default gateway
This is useful inside of containers or local networks to intrdouce a
stable name of the default gateway host (in case of containers usually
the host, in case of LANs usually local router).
commit 144232a8e0ea77eed8c5a456832758681b5b3511
Author: Torstein Husebø <torstein at huseboe.net>
Date: Wed Dec 3 20:59:00 2014 +0100
networkd: fix typo
V2: found another one
commit 523c620bcd657f22cb52e6b78881cbb1f7d6832a
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Dec 3 20:00:28 2014 +0100
udevd: don't take reference for NULL rtnl object
commit 98940a3cd93807b5a3809bb1fb7ab43d450939f1
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 3 18:31:51 2014 +0100
strv: add calls to add two entries to an strv at once
commit 8433e33955f797510a3f323da9ffa08d12c374f4
Author: Jan Synacek <jsynacek at redhat.com>
Date: Wed Dec 3 14:56:56 2014 +0100
localed: log xkbcommon errors
The errors are prefixed with "libxkbcommon" to provide some context,
because they are quite confusing without it. With the prefix, we at
least know where they come from.
commit 04a919394069cf024559f78eb46692a3739641eb
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 3 17:52:51 2014 +0100
nspawn: correct EEXIST check when creating directory to mount /tmp in
https://bugs.freedesktop.org/show_bug.cgi?id=86309
commit 6540c38a3aa81aa2165a015f27bfef0542224c9a
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Dec 3 17:01:54 2014 +0100
build-sys: update man-list
Run 'make update-man-list'.
commit 2a5a41e86bd908b0182723805ce43a0fc8658899
Author: Didier Roche <didrocks at ubuntu.com>
Date: Mon Nov 24 11:14:22 2014 +0100
machine-id-commit: add man pages
Add man pages for systemd-machine-id-commit.service and
systemd-machine-id-commit.
commit a1405db67c9fa6e8d734933cc7dd208bdb703cae
Author: Didier Roche <didrocks at ubuntu.com>
Date: Mon Nov 24 10:12:06 2014 +0100
machine-id-commit: add unit file
The unit file only active the machine-id-commit helper if /etc is mounted
writable and /etc/machine-id is an independant mount point (should be a tmpfs).
commit 3fb394369ccd6787f8f883e0f81dc7f35cb1ec51
Author: Didier Roche <didrocks at ubuntu.com>
Date: Mon Nov 24 09:54:18 2014 +0100
machine-id-commit: Introduce machine-id-commit binary
This binary enables to commit transient machine-id on disk if it becomes
writable.
commit 979ef53a268d6f54a309fc5c6015df5d4accbbd5
Author: Didier Roche <didrocks at ubuntu.com>
Date: Mon Nov 24 09:43:29 2014 +0100
machine-id-setup: add a machine_id_commit call to commit on disk a transient machine-id
If /etc was read only at boot time with an empty /etc/machine-id, the latter
will be mounted as a tmpfs and get reset at each boot. If the system becomes rw
later, this functionality enables to commit in a race-free manner the
transient machine-id to disk.
commit 3543f8218b732132dff6d0dccb2ce357e4154801
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 3 03:13:34 2014 +0100
machine-id-setup: casting const away is ugly, let's not do it if there's no reason to
commit 41114e81b562bcee52be1ef94c684ace2362ca54
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 3 03:13:14 2014 +0100
update TODO
commit 9496e375f7274e7d0f61f8e9d6a001b9f2dc579b
Author: Didier Roche <didrocks at ubuntu.com>
Date: Mon Nov 24 09:40:57 2014 +0100
machine-id-setup: Factorize some machine-id-setup functions to be reused
commit 4844262f25a3ff6bd23de05a0a6f84a8e2983d74
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 3 02:02:11 2014 +0100
rfkill: rework how we generate file names from rfkill devices
Generate the file name from ID_PATH plus the rfkill type (wlan,
bluetooth, ...) and ignore the rfkill device name, since it apparently
is not a stable identifier.
Also, ensure that devices disappearing don't result in broken services,
simply exit cleanly.
commit 154e6f233af028cf76608d49a3b7ed8de61373d8
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Dec 3 01:59:42 2014 +0100
libudev: set errno properly in all error conditions of udev_device_new_from_syspath()
commit 45548321d647b9747e8abc69b5cd8d237244c880
Author: Chris Atkinson <cwa at pipeline.com>
Date: Tue Dec 2 08:30:59 2014 -0500
DISTRO_PORTING: add full path for /usr/lib/systemd/systemd and fix grammar
(David: fixed up some trailing whitespace and commit-message)
commit d8500c53789eafefe28d4ace088bf4b912280bf9
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Dec 2 14:19:15 2014 +0100
shared: add format helpers for printing MAC addresses
Use these in networctl.
commit e3286870fdf20c3c93e944b24fd9af53620f7dba
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 2 13:22:47 2014 +0100
update TODO
commit 92ac127007335e804d7ae1b9439469a162089975
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 2 13:08:10 2014 +0100
rc-local: drop SysVStartPriority= field which is now obsolete
commit c9a267b1b7009065a67dbf2c638b03c6801f7bbe
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 2 12:58:44 2014 +0100
bus-proxy: don't log bus policy every single time we run
commit 1ed24c6170c95fbe61fed919db2e98cf0d1d568e
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 2 12:58:13 2014 +0100
busctl: fix 'command line' style output of properties
commit d2dc52dbc45051faa6356213a537081084e9dda4
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 2 02:38:18 2014 +0100
systemctl: show unit file preset state in "systemctl status" output"
commit e5035a2778b7ed2a8ac901521ed47cf079359e68
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 2 00:19:05 2014 +0100
manager: log deserialization errors only at LOG_DEBUG level
During upgrades and when transitioning between different systemd
versions in initrd and on the host we have to expect that some
serialization fields are unknown or parse incorrectly. This shouldn't
really be considered an error, hence downgrade the log messages about
it to debug. This way we can still trace it, but it doesn't confuse
users.
This kinda reverts 46849c3f.
commit a195cbad3796dfda3d1016e4819c612c859e3c7b
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 2 00:16:14 2014 +0100
update TODO
commit 230314d718cb68b328961c9723976e54c17d06f7
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Dec 2 00:15:13 2014 +0100
core: OOM really shouldn't be considered a deserialization parse failure
commit c09da72900b03fcddade06643f24c6357f3e0482
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Dec 2 01:05:52 2014 +0100
networkctl: print the Gateway in the status output
This is the IP address of the default route on the link, if present. A
description is printed when available (the manufacturer of the gateway NIC based
on its MAC address).
In the future we should prefer LLDP information over MAC info.
commit 722f7cc95cdc0532f3226aae796ef446d2eea722
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Dec 2 10:46:14 2014 +0100
sd-rtnl: route - allow GETROUTE with AF_UNSPEC
commit 1e30c94f745814d495c0dc3f91c4f52d27e2a3e0
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Dec 2 10:19:14 2014 +0100
shared: udev-util - add hwdb cleanup macro
commit 20dff6c4ff4f6e1b88c841e523ce9cff0e150fdf
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Dec 2 01:35:11 2014 +0100
sd-rtnl: add sd_rtnl_message_{new_neigh,neigh_get_{family,ifindex}}
commit e559b38493e6e0bc0214af2bce5aa940a8a15006
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Dec 2 01:23:47 2014 +0100
sd-rtnl: add typesystem for RTM_*NEIGH
commit 64918838d566058b7cec72d13f4524de0a64a8e3
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Dec 2 00:59:34 2014 +0100
sd-rtnl: add a bit more debugging in case a message is dropped
commit 73ae2b7dade339c8a258dcf4fa2b302e238117e1
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Dec 2 00:59:02 2014 +0100
sd-rtnl: message - allow checking for attributes without reading out their contents
commit dae4de9d42debf448bf667e0e4fd4606dfcfae0c
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Dec 2 00:58:17 2014 +0100
sd-rtnl: add sd_rtnl_message_route_get_family
commit 5a16bc264c32237e38a844d55e7a1820a31b8440
Author: Łukasz Stelmach <l.stelmach at samsung.com>
Date: Fri Nov 28 15:59:59 2014 +0100
build-sys: configure the list of system users, files and directories
Choose which system users defined in sysusers.d/systemd.conf and files
or directories in tmpfiles.d/systemd.conf, should be provided depending
on comile-time configuration.
commit f4e9cdbc6259237b2cb779a16e7c1aca0fd44e58
Author: Umut Tezduyar Lindskog <umut.tezduyar at axis.com>
Date: Sun Nov 30 09:32:39 2014 +0100
man: BusName= is not optional for Type!=bus
http://lists.freedesktop.org/archives/systemd-devel/2014-November/025492.html
commit 442f7f155358a7396a350d3c47ea42e86bee4024
Author: Chris Atkinson <cwa at pipeline.com>
Date: Sun Nov 30 22:13:06 2014 -0500
man: delete ZX as sole compression; "Compress=" as boolean
In man journald.conf, removes reference to XZ as sole form of
compression. See commit d89c8fdf48c7bad5816b9f2e77e8361721f22517.
In man coredump.conf, clarifies that "Compression=" controls existence,
not type, of compression.
commit 1ccda9b7168e89141b60290295170e07e760efeb
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Dec 1 03:08:55 2014 +0100
resolved: make TXT RR generation and parsing more in-line with RFC 6763, section 6.1
The RFC says to encode an single empty TXT string instead of an empty
TXT array. It also says to treat a zero-length TXT RR as a TXT array
with a single zero-length string.
commit 75e52a16f9ef476f1d18ec6d9c84e00149b80d03
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Dec 1 03:06:50 2014 +0100
update TODO
commit 9e37c9544b22aab2173695ac9c0e4b8bb02cb75c
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Nov 30 10:42:53 2014 -0500
core: warn and ignore SysVStartPriority=
Option was being parsed but not used for anything.
commit a2c0e528b8b5ba370527db279605e4e4135689c1
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Nov 30 10:21:49 2014 -0500
When warning about unsupported options, be more detailed
commit f3589f7bc657765d7635b3ead81b3620e51a9028
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Dec 1 00:21:04 2014 +0100
update TODO
commit dc8962da74c62779d8899a8166f704c30287fff0
Author: Ross Lagerwall <rosslagerwall at gmail.com>
Date: Sat Nov 29 11:31:30 2014 +0000
cgroup-util: Don't send SIGCONT after SIGKILL
commit f89c4e15c966cd3af22bd71bd5adba9a0a8e7404
Author: Lennart Poettering <lennart at poettering.net>
Date: Sun Nov 30 02:31:38 2014 +0100
timesyncd: minor simplification
commit 4ec3cd7391e119b597375c547cf4ed50fce9f115
Author: Lennart Poettering <lennart at poettering.net>
Date: Sun Nov 30 00:51:45 2014 +0100
journald: close passed fds we cannot make sense of
This is mostly likely the audit socket, and we really should close it
if we cannot make sense of it, since as long as it is open the kernel
might disable the kmsg forwarding of audit msgs, and we should avoid
that, since audit msgs might get completely lost then.
I also downgraded the log message we show a bit, after all things should
really work fine, and we proceed fine with it.
commit 6067b34a1f770f845157f15b0c85b2f1140a2351
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sun Nov 30 20:28:36 2014 +0100
man: document that we set both soft and hard limits for Limit directives
See
http://cgit.freedesktop.org/systemd/systemd/tree/src/core/load-fragment.c#n1100
commit 536256fc913f20ab09809fac7fdea96577704191
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sun Nov 30 20:20:59 2014 +0100
man: fix typos
commit b8825fff7bf153ea9f17c46a40278df2e780829d
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sun Nov 30 20:12:13 2014 +0100
man: document equivalence between Limit directives and ulimit
See https://bugs.freedesktop.org/show_bug.cgi?id=80341
commit da80c219d7283ae89d67f8e54addc9db1f2d421f
Author: Chris Mayo <aklhfex at gmail.com>
Date: Sun Nov 30 14:44:25 2014 +0000
man: fix link to systemd-networkd-wait-online.service in systemd-networkd.service(8)
commit 18ead1b00dff180a97507d014325cb46198e6657
Author: Chris Mayo <aklhfex at gmail.com>
Date: Sun Nov 30 14:45:29 2014 +0000
man: add a link to systemd-coredump(8) in Description of coredump.conf(5)
commit 5eb9e762eab5faa1bc995a39ebbb8fc694755c3e
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Sun Nov 30 14:37:12 2014 +0100
terminal/screen: fix GL/GR double-mapping
We must not call screen_map() multiple times for the same input char. Fix
the double-mapping for GL/GR maps are correctly applied.
commit d0a2e1c364320b862a6aae099afa106ea59bb84c
Author: Alison Chaiken <alison_chaiken at mentor.com>
Date: Sun Nov 30 12:14:48 2014 +0100
delta: Fix broken separator support
systemd-delta man page promises that multiple types of deltas will be
concatenated if they are listed with a comma as separator. Replace
FOREACH_WORD() with FOREACH_WORD_SEPARATOR() to restore the functionality.
commit 34029ff146faf301cf016b1e34594bb3845bc8f2
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sun Nov 30 03:17:20 2014 +0100
build-sys: add missing tests files to EXTRA_DIST
commit 4e2744fcb579f5314043c0045e6902c64b7efe67
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sun Nov 30 02:33:35 2014 +0100
core: remove unused variables
commit 82b1412852b70d240a2a7b6ffd134776bd246642
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sun Nov 30 02:16:30 2014 +0100
network: remove unused variable
commit 787784c4c1b24a13207d18b415d60483cfbdeaa3
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sun Nov 30 02:16:19 2014 +0100
tests: use assert_se instead of assert
Otherwise they can be optimized away with -DNDEBUG
commit 30fbcf24460263961855e0ce4d8867fd2af3e149
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sun Nov 30 02:04:50 2014 +0100
resolve: remove unused variable
commit c09157eeeadf7b6810ca3b9ff7c180767e9a30b7
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sun Nov 30 00:36:16 2014 +0100
systemctl: remove unused variable
commit 997b2b438c2d272e3bc8df6e4b42dba3b70cb056
Author: Josh Triplett <josh at joshtriplett.org>
Date: Sat Nov 29 14:01:47 2014 -0800
NEWS: Document new .conf.d configuration directories
Also provide guidance to distributions, to make sure they don't start
dropping files in the configuration directories in /etc/.
commit 2783fe064b36a747d5de05493c0bdc5b029c445e
Author: Lennart Poettering <lennart at poettering.net>
Date: Sun Nov 30 00:21:49 2014 +0100
udev: strings in C are NUL-terminated anyway, no need to add a second NUL...
commit bf257aed057efd113f1b84e037fde09ffeed32ee
Author: Josh Triplett <josh at joshtriplett.org>
Date: Sat Nov 29 01:07:28 2014 -0800
journald-remote,journal-upload: Support .d directories in the usual search paths
commit be795898c0d2fa21e3389b89793dcd45c47f8b9f
Author: Josh Triplett <josh at joshtriplett.org>
Date: Sat Nov 29 01:07:21 2014 -0800
timesyncd: Support timesyncd.conf.d directories in the usual search paths
commit f2dacc96b25528ca1b0caca6364a69d656cf1569
Author: Josh Triplett <josh at joshtriplett.org>
Date: Sat Nov 29 01:07:11 2014 -0800
resolved: Support resolved.conf.d directories in the usual search paths
commit 301af7e4853ad0281402f8d86f5a77c6cb7ce9f4
Author: Josh Triplett <josh at joshtriplett.org>
Date: Sat Nov 29 01:06:48 2014 -0800
coredump: Support coredump.conf.d directories in the usual search paths
commit 396f9e2b327d702ea9502b80febf836283e19350
Author: Josh Triplett <josh at joshtriplett.org>
Date: Sat Nov 29 01:06:41 2014 -0800
bootchart: Support bootchart.conf.d directories in the usual search paths
commit 778b6a3f8888ec9496143c92c8cbf95f5c891df9
Author: Josh Triplett <josh at joshtriplett.org>
Date: Sat Nov 29 01:06:28 2014 -0800
systemd-sleep: Support sleep.conf.d directories in the usual search paths
commit a9edaeff8481573764288ccf7e433a95b6dc7c03
Author: Josh Triplett <josh at joshtriplett.org>
Date: Sat Nov 29 01:06:20 2014 -0800
journald: Support journald.conf.d directories in the usual search paths
commit 1b907b5c3b11491b790e541dd24255a758511a2f
Author: Josh Triplett <josh at joshtriplett.org>
Date: Sat Nov 29 01:06:04 2014 -0800
core: Support system.conf.d and user.conf.d directories in the usual search paths
commit d3fae78fe86f1dfcdb07fd613ccbb3adf547a617
Author: Josh Triplett <josh at joshtriplett.org>
Date: Sat Nov 29 01:05:43 2014 -0800
man: Factor out a common snippet for .d directories and precedence
Several manpages contain duplicate text describing a standard set of .d
configuration directories, with the usual sorting, precedence,
overrides, and so on. Factor this common text out using XInclude before
proliferating it even further.
commit 02b75c9edd61f47de7940b61b97b071b69f38a11
Author: Josh Triplett <josh at joshtriplett.org>
Date: Sat Nov 29 01:05:20 2014 -0800
man/logind.conf.xml: Make "man logind.conf.d" work too
commit 7d4fb3b1c5ec7a117bd5a36e4591819a64e00136
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Wed Oct 29 16:22:02 2014 +0100
systemctl: add edit verb
It helps editing units by either creating a drop-in file, like
/etc/systemd/system/my.service.d/override.conf, or by copying the
original unit from /usr/lib/systemd/ to /etc/systemd/ if the --full
option is specified.
It invokes an editor on temporary files related to the unit files and
if the editor exited successfully, then it renames the temporary files
to their original names (e.g. my.service or override.conf) and
daemon-reload is invoked.
If the temporary file is empty the modification is canceled.
See https://bugzilla.redhat.com/show_bug.cgi?id=906824
commit 507e28d844e335fe9fc84b549577fcce398f3a5d
Author: Chris Atkinson <cwa at pipeline.com>
Date: Fri Nov 28 15:27:56 2014 -0500
man: update description of default extension for isolate
commit 01dc33ce287c68bf6bbc22f5b1d5eb29e204b6a7
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Nov 29 11:06:05 2014 -0500
nspawn: fix unused variable warning
commit 820d3acfe924e58965d14b4711d5df31c5db199a
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Nov 29 10:28:01 2014 -0500
delta: diff returns 1 when files differ, ignore this
https://bugs.debian/org/771397
commit 56e73b34ce0b020ef54c0dc2aba16e50d4fea9f5
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Nov 29 11:14:48 2014 +0100
shared: install - report error if mask symlink can not be marked for removal
commit 681f9718ce322da95578e20ed975dfb34e7edd23
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Nov 29 10:40:21 2014 +0100
shared: time-dst - ensure nulstr is null terminated
Fixes CID #1237772.
commit 0acd5a08f5b2ff0580d4fc4d7fc2ff144b2f788f
Author: WaLyong Cho <walyong.cho at samsung.com>
Date: Wed Nov 19 00:13:43 2014 +0900
README: notice kernel config for CPUQuota
commit 4e920142cc0aa514ad99be6e1fab277775f926f0
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Nov 28 17:04:24 2014 -0500
mount: use DEFINE_TRIVIAL_CLEANUP_FUNC
commit 9f5ecdb0b11557be41c065f460bb22ab52bb0034
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Nov 28 21:51:45 2014 +0100
udev: rules - ignore the lack of trailing newline
Also accept '\r' as newline character.
This dropps warnings of the type:
invalid key/value pair in file /usr/lib/udev/rules.d/40-usb-media-players.rules
on line 26, starting at character 25 ('')
commit 6501b52d358aa2c7fe28e477f9d5acf0a2991d32
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Nov 28 21:46:34 2014 +0100
udev: rules - print the first invalid character
The current code would print the character following the first invalid
character.
Given an udev rules-file without a trailing newline we would otherwise print
garbage:
invalid key/value pair in file /usr/lib/udev/rules.d/40-usb-media-players.rules
on line 26, starting at character 25 ('m')
This is now changed to print
invalid key/value pair in file /usr/lib/udev/rules.d/40-usb-media-players.rules
on line 26, starting at character 25 ('')
(still not very good as printing \0 just gives the empty string)
commit 84198c1892cce2cb27d22bfa816da5d43c05add0
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Nov 28 21:44:31 2014 +0100
udev: rules - modernise add_rule a bit
commit 22d097a6bbeac0d45c42e1b246403a97e9a16c30
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 21:12:03 2014 +0100
sd-bus: move packet header definition to bus-protocol.h
commit 46bcf49291874c5a6b5b34ad6413c5a0f7725f4c
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 20:52:55 2014 +0100
treewide: convert some left-over (usec_t) -1 to USEC_INFINITY
commit fed1e721fd0c81e60c77120539f34e16c2585634
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 20:51:01 2014 +0100
treewide: introduce UID_INVALID (and friends) as macro for (uid_t) -1
commit 36afca67b67984520c5c9a6ce14af51a68c7c8cf
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date: Thu Nov 27 15:19:44 2014 +1000
udevadm hwdb: discard extra leading whitespaces in hwdb
Currently a property in the form of
FOO=bar
is stored as " FOO=bar", i.e. the property name contains a leading space.
That's quite hard to spot.
This patch discards all extra whitespaces but the first one which is required
by libudev's hwdb_add_property.
[zj: modify the check a bit]
https://bugs.freedesktop.org/show_bug.cgi?id=82311
commit e6a7b9f45553fe0f73ba1f6134f4829b1d519658
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Nov 28 14:22:47 2014 -0500
mount: constify MountParameters
commit fddf1a3189aa6e2ea641e0a9f995344c14e8d1e0
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Nov 28 14:19:03 2014 -0500
mount: deal with inotify queue overflow
Overflow is very unlikely, since we are watching a privileged directory,
but could be triggered if thousands of mounts are suddently executed.
commit 90598531b0bb79626ae5471f7c7c9e82954050c9
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Nov 28 13:43:09 2014 -0500
mount: create directory before adding watches on it
commit 5cca8defd2717669c69d13c479c0885af5b534bd
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Nov 28 13:02:15 2014 -0500
mount: be more careful about errors when parsing mtab
Fixup for 4a3a9ef610.
commit 9d05dd2e1ef814a714214004f927ce82c9890fa6
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Nov 28 01:50:05 2014 -0500
mount: simplify mount_needs_network check
commit affc3d834347076e8616948978e70ed1fca84db4
Author: Chris Leech <cleech at redhat.com>
Date: Sun Nov 23 20:33:38 2014 -0800
mount: check options as well as fstype for network mounts
When creating a new mount unit after an event on /proc/self/mountinfo,
check the mount options as well as the fstype to determine if this is a
remote mount that requires network access.
commit a6d305f91d722e136c29222070efed5c5d8b120b
Author: Chris Leech <cleech at redhat.com>
Date: Sun Nov 23 20:33:40 2014 -0800
mount: add remote-fs dependencies if needed after change
This is an attempt to add it the remote-fs dependencies to a mount unit
if the options change, like when the utab options are picked up after
mountinfo has already been processed. It just adds the remote-fs
dependencies, leaving the local-fs ones in place.
With this change I always get mount units with proper remote-fs
dependencies when mounted with the _netdev option.
commit befb6d54948480f836d53d633bef27e3505818c1
Author: Chris Leech <cleech at redhat.com>
Date: Sun Nov 23 20:33:39 2014 -0800
mount: monitor for utab changes with inotify
Parsing the mount table with libmount races against the mount command,
which will handle the actual mounting before updating utab. This means
the poll event on /proc/self/mountinfo can kick of a reparse in systemd
before the utab information is available.
This change adds in an additional event source using inotify to watch
for changes to utab. It only watches for IN_MOVED_TO events, matching
libmount behavior of always overwriting this file using rename(2).
This does add a second pass through the mount table parsing when utab is
updated.
commit 8d3ae2bd4c9bf9fc2e57f7b3776325a1c750ca30
Author: Chris Leech <cleech at redhat.com>
Date: Sun Nov 23 20:33:37 2014 -0800
mount: use libmount to enumerate /proc/self/mountinfo
This lets libmount add in user options from /run/mount/utab, like
_netdev which is needed to get proper ordering against remote-fs.target
commit 8c8549db376ce9325e5a7547959ab7d9218505b7
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 20:29:24 2014 +0100
coredump: simplify a few things by allocating small fields on the stack rather than heap
commit 4d84bc2f5fd9134f13614add5e6b05732aba44ca
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 20:15:18 2014 +0100
coredump: rework compose_open_fds()
Use FOREACH_DIRENT() and FOREACH_LINE() macros instead of manual loops.
Don't clobber return parameters on failure.
Simplify some other things.
commit cb2264aa0dcd5bb67338d25ee797ebec50ac7530
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 19:17:27 2014 +0100
update TODO
commit 198b158f4941b817f26f8eb0ff75809bf5436496
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 19:16:37 2014 +0100
sd-bus: add support for matches against arrays of strings in messages
commit d9fba533169b271d0e803016fea86fb57bc3f5ca
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 19:16:25 2014 +0100
sd-bus: if a NULL signatures is passed to sd_bus_message_skip(), make it skip a single element of any type
commit 1abe54d9a9292d746e5990843bbbc509984b7f2c
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 17:44:05 2014 +0100
sd-bus: add arrays of strings in the bloom filter
Let's do this right from the beginning, to prepare ground for udev
messages that most likely want to store list of strings (for device
tags) in messages, and filter on them.
commit a6a6ac16030ea8683dfb1916d13a0b577bf3b512
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 17:03:48 2014 +0100
update TODO
commit 224b3787679a7dc57732d29c5b0cbec7b14e0c10
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 17:03:35 2014 +0100
sd-bus: make more connection properties readable
commit 5b820358cf2a5cb6d67cc0b1faaaca3b0171f1ac
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 16:51:45 2014 +0100
sd-bus: add new sd_bus_get_address() for querying the current bus address
Also, update "busctl" to show this in its output.
commit 5c3026927de9dfa60ad6ae8326fef5d7824e723e
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 16:38:47 2014 +0100
sd-bus: rename sd_bus_get_owner_id() → sd_bus_get_bus_id()
The ID returned really doesn't identify the owner, but the bus instance,
hence fix this misnaming.
Also, update "busctl status" to show the ID in its output.
commit 4a62c710b62a5a3c7a8a278b810b9d5b5a0c8f4f
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Nov 28 19:57:32 2014 +0100
treewide: another round of simplifications
Using the same scripts as in f647962d64e "treewide: yet more log_*_errno
+ return simplifications".
commit 56f64d95763a799ba4475daf44d8e9f72a1bd474
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Nov 28 19:29:59 2014 +0100
treewide: use log_*_errno whenever %m is in the format string
If the format string contains %m, clearly errno must have a meaningful
value, so we might as well use log_*_errno to have ERRNO= logged.
Using:
find . -name '*.[ch]' | xargs sed -r -i -e \
's/log_(debug|info|notice|warning|error|emergency)\((".*%m.*")/log_\1_errno(errno, \2/'
Plus some whitespace, linewrap, and indent adjustments.
commit 895b3a7b44fe7ca2f260986be2a877ff56a72718
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Nov 28 19:20:59 2014 +0100
core: fix return value in error path after sd_event_add_io() failure
sd_event_add_io() does not set errno, it returns negative errno.
Noticed during log_*_errno conversions.
commit 8d3d7072e609ef0e0fb37e1d19a29307d58146c3
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Nov 28 19:13:53 2014 +0100
treewide: a few more log_*_errno + return simplifications
The one in tmpfiles.c:create_item() even looks like it fixes a bug.
commit f647962d64e844689f3e2acfce6102fc47e76df2
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Nov 28 18:50:43 2014 +0100
treewide: yet more log_*_errno + return simplifications
Using:
find . -name '*.[ch]' | while read f; do perl -i.mmm -e \
'local $/;
local $_=<>;
s/(if\s*\([^\n]+\))\s*{\n(\s*)(log_[a-z_]*_errno\(\s*([->a-zA-Z_]+)\s*,[^;]+);\s*return\s+\g4;\s+}/\1\n\2return \3;/msg;
print;'
$f
done
And a couple of manual whitespace fixups.
commit e80733be33e52d8ab2f1ae845326d39c600f5612
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Nov 28 12:25:09 2014 -0500
Revert "systemctl: append default suffix only if none present"
This reverts a chunk out of commit 5e03c6e3b517286bbd65b48d88f60e5b83721894
which was trying to pass NULL to the the '.service' default. Anyway,
it seems better to be explicit.
commit 23bbb0de4e3f85d9704a5c12a5afa2dfa0159e41
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Nov 28 18:23:20 2014 +0100
treewide: more log_*_errno + return simplifications
commit 5e03c6e3b517286bbd65b48d88f60e5b83721894
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Nov 28 11:28:10 2014 -0500
systemctl: append default suffix only if none present
Simplify unit_name_mangle() and unit_name_mangle_with_suffix() to
always behave the same, and only append a suffix if there is no
type suffix. If a user says 'isolate blah.device' it is better to
return an error that the type cannot be isolated, than to try to
isolate blah.device.target.
commit 6872b0ddc4b748ba2dbe7e74e3bbde46d17a2656
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Nov 28 16:58:32 2014 +0100
udevd: don't set receive buffer size when socket activated
The socket unit does this, so no need to redo it in udevd.
commit eb56eb9b40950f1edcffdb7313f8de4f8572a6d5
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Nov 28 17:34:26 2014 +0100
treewide: simplify log_*_errno(r,...) immediately followed by "return r"
commit c33b329709ebe2755181980a050d02ec7c81ed87
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Nov 28 17:09:20 2014 +0100
treewide: more log_*_errno() conversions, multiline calls
Basically:
find . -name '*.[ch]' | while read f; do perl -i.mmm -e \
'local $/;
local $_=<>;
s/log_(debug|info|notice|warning|error|emergency)\("([^"]*)%s"([^;]*),\s*strerror\(-?([->a-zA-Z_]+)\)\);/log_\1_errno(\4, "\2%m"\3);/gms;print;' \
$f; done
Plus manual indentation fixups.
commit 5567fafbc9d83a1391f23ecdbe698a3c03929370
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Fri Nov 28 15:38:05 2014 +0100
hostnamectl: Exit with zero on success
In show_all_names(), bus_map_all_properties() returns 1 on success which is
then used as the return code of show_all_names() and eventually main(). Exit
with zero in main() on all nonnegative results to guard against similar errors.
commit 755bde375f4db393ad06e73340bfcf4d0cf91bb2
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 16:32:26 2014 +0100
udev,update-done: more log_xyz_errno() conversions
commit 1797280193ea25a91cc38332c7cee34ba01e7808
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 16:30:53 2014 +0100
sd-bus: make sure %m resolves to the specified error in bus_error_set_errnofv()
commit 818eae495ecc1a19d1906bafa6e3a61fe6171f50
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 16:16:18 2014 +0100
update TODO
commit 2e43ad9ca677b1f641a30849526e2b999cb81075
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 16:14:39 2014 +0100
bus-proxy: automatically detect scope of bus and derive which XML snippets to load from that
commit e3afaf6b8e540d4c0dc5a7f0d5178ce29c1ac2a5
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 16:05:43 2014 +0100
sd-bus: rename default bus address constants, they aren't "paths" but "addresses"
commit 3acc1dafd14420872f7f13319260eeb5d62c2533
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 15:59:05 2014 +0100
sd-bus: add new call sd_bus_get_scope() for querying whether one is connected to a system or a user bus
commit 52cfc0379a9d63f99cdb3d9f63c839bbc8889b4c
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 15:58:03 2014 +0100
sd-bus: rework credential query logic
Also, make the call to free kdbus slices generic and use it everywhere
commit 279d3c9cead3a7ffb657fedbab0e2bc90db45667
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Nov 28 14:45:55 2014 +0100
treewide: more log_*_errno() conversions
commit ff49bc3212cb07d850dcfd59940539773a0be26f
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Nov 28 14:26:31 2014 +0100
treewide: drop unnecessary trailing \n in log_*() calls
commit c95f97a20f3b854109dc564da64950067b388aeb
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Nov 28 13:54:40 2014 +0100
core: two more log_unit_*_errno() conversions
commit 31938a8560a664c32a9d72f1fc2d4347b232e6e9
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Nov 28 13:17:02 2014 +0100
core: convert log_unit_*() to log_unit_*_errno()
Using:
find . -name '*.[ch]' | xargs sed -r -i -e \
's/log_unit_(debug|info|notice|warning|error|emergency)\(([^"]+), "(.*)%s"(.*), strerror\(-([a-zA-Z_]+)\)\);/log_unit_\1_errno(\2, \5, "\3%m"\4);/'
commit b2dc4e44c540a30c5ea12a9a570425ceb310c320
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Nov 28 12:15:34 2014 +0100
core: add log_unit_*_errno() macros
commit da927ba997d68401563b927f92e6e40e021a8e5c
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Nov 28 13:19:16 2014 +0100
treewide: no need to negate errno for log_*_errno()
It corrrectly handles both positive and negative errno values.
commit 0a1beeb64207eaa88ab9236787b1cbc2f704ae14
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Nov 28 11:58:34 2014 +0100
treewide: auto-convert the simple cases to log_*_errno()
As a followup to 086891e5c1 "log: add an "error" parameter to all
low-level logging calls and intrdouce log_error_errno() as log calls
that take error numbers", use sed to convert the simple cases to use
the new macros:
find . -name '*.[ch]' | xargs sed -r -i -e \
's/log_(debug|info|notice|warning|error|emergency)\("(.*)%s"(.*), strerror\(-([a-zA-Z_]+)\)\);/log_\1_errno(-\4, "\2%m"\3);/'
Multi-line log_*() invocations are not covered.
And we also should add log_unit_*_errno().
commit b4d23205f238e06aaa31264628e20669e714acad
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Nov 28 11:54:25 2014 +0100
shared: fix log_emergency_errno macro
It was not passing the error argument.
commit e8bbb7c7e9163420cb1ba92f82dbc09aab577d1a
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 03:29:52 2014 +0100
update TODO
commit 1214b53c8e463ec328021e90163279ac94dd9af8
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 02:30:43 2014 +0100
kdbus: when running in a container, don't complain that we cannot write to /sys
commit bf371116f69261c17e47dc3dbb51cfaa3c9369ff
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 03:10:55 2014 +0100
log: change log_xyz_errno() calls to always return the negative error
This enables us to write things like this:
int open_some_file(void) {
fd = open("/dev/foobar", O_RDWR|O_CLOEXEC);
if (fd < 0)
return log_error_errno(errno, "Failed to reboot: %m");
return fd;
}
Which is function that returns -errno on failure, as well as printing an
error message, all in one line.
commit 95066a906119998011d49d2602f063e74d97f680
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 02:56:39 2014 +0100
log: make socket address structs static const
commit 6357ac664c9ce8ae5b83bdb98011da24185e4efa
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 02:30:49 2014 +0100
log: also set errno to the passed error code before processing format string in log_struct()
That way the caller may use %m to print the specified error.
commit 387eba008426fbd8d7400eef8e41fda09f7f3cb3
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 02:26:05 2014 +0100
core: only override kdbus attach mask when running as PID 1
commit 412c18f10c9df3f0a02358d8c0e707ed2e5fa186
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 02:23:29 2014 +0100
sd-bus: the attach_mask kernel module parameter is 64bit now, hence initialize it as such
commit 8f16f51d9323e87cc78d28e9656984c028071f94
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 02:12:30 2014 +0100
log: allow negative errno values
sd_bus_error_set_errno() allows negative errors too, hence, be equally
nice.
commit e2cc6eca73cd1df8be552d7c23f9ff3d69c06f1e
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 02:05:14 2014 +0100
log: fix order of log_unit_struct() to match other logging calls
Also, while we are at it, introduce some syntactic sugar for creating
ERRNO= and MESSAGE= structured logging fields.
commit 6c861f0aeff9449ee1201bb56f89861921e41c45
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 00:42:35 2014 +0100
networkd: update logging macros for parameter order, and errno, to match rest of the code
commit bca3e263cfc68f506bfbafb11680f35aa13c38a5
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 00:41:49 2014 +0100
update TODO
commit ac3ab439f022766b264b0b8af0789df9cd12a18e
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 28 00:41:38 2014 +0100
networkd: remove duplicate macro definitions
commit 622ac87c124454004b2d9f6b0e0cbebabfa7d042
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Fri Nov 28 01:03:54 2014 +0100
Update TODO
kdbus eavesdropping was fixed!
commit aad0a2c80097926757d4385e5f5492082d47f006
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Nov 27 17:17:09 2014 -0500
sysv-generator: advertise the man page
commit f509443af5974dd6e7a816c4c7f806bfd01d629b
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Nov 27 17:13:12 2014 -0500
man: add systemd-sysv-generator(8)
In principle SysV stuff is only for compatibility, but we are stuck
with it for the forseeable future, so documentation might as well
be provided.
https://bugs.debian.org/771172
commit b5a1e50495179a5995d56936f429c0b77dca8ecc
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Thu Nov 27 23:15:54 2014 +0100
fix build with --enable-terminal
Broke with 086891e5c119abb9854237fc32e736fe2d67234c
commit 3da44ef53b949021e960d6169e809e297f2b7f65
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 27 21:56:39 2014 +0100
kmod-setup: simplify kernel command line parsing
commit 1a29929959fd8f59e19ce60c25d1a1f7d910fac0
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 27 21:28:13 2014 +0100
kdbus: set kernel attach mask before creating the first bus
commit 12f1caf40c8bbc8302c8458a364515628e621fa5
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 27 20:28:51 2014 +0100
selinux: log selinux log messages with LOG_AUTH facility
commit 79008bddf679a5e0900369950eb346c9fa687107
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 27 20:20:23 2014 +0100
log: rearrange log function naming
- Rename log_meta() → log_internal(), to follow naming scheme of most
other log functions that are usually invoked through macros, but never
directly.
- Rename log_info_object() to log_object_info(), simply because the
object should be before any other parameters, to follow OO-style
programming style.
commit e09ca588d25a0c383880d6c2f5b129296af781ab
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 27 19:52:27 2014 +0100
log: be a bit less wasteful when allocating buffers
commit 086891e5c119abb9854237fc32e736fe2d67234c
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 27 19:48:02 2014 +0100
log: add an "error" parameter to all low-level logging calls and intrdouce log_error_errno() as log calls that take error numbers
This change has two benefits:
- The format string %m will now resolve to the specified error (or to
errno if the specified error is 0. This allows getting rid of a ton of
strerror() invocations, a function that is not thread-safe.
- The specified error can be passed to the journal in the ERRNO= field.
Now of course, we just need somebody to convert all cases of this:
log_error("Something happened: %s", strerror(-r));
into thus:
log_error_errno(-r, "Something happened: %m");
commit fb6d9b77a71a5f007392b754bf7d8e06a6bed69a
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 27 12:52:13 2014 +0100
sd-bus: set creds info for "org.freedesktop.DBus.Local" generated messages, too
commit 38ce47e262fbb76b6f6514e8e80cacfc584bee5a
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 27 12:51:22 2014 +0100
sd-bus: when we get the list of well-known names back from kdbus we shouldn't confuse the empty list with unknown information
commit 771b2724c0f9591e8f4dd7463c15bf0c957737dc
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 27 03:20:51 2014 +0100
sd-bus: deal with whitespace in matches
commit 7d31d92400bab9648016136da1b1e8c5cff1bfcf
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 27 02:57:22 2014 +0100
sd-bus: unify logic how we patch the message source of driver messages
commit ac653862e0a99505727dc8861e734d8d6f2b0afd
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 27 02:37:05 2014 +0100
sd-bus: fake valid well-known-names metadata for faked bus messages
commit 50c4521675e94ade38b8af9e3b0f7fd2f300b6f4
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 27 02:28:23 2014 +0100
sd-bus: optimize how we generate the well-known-names lists in messages from kdbus
commit 7fa934b0d35492b300b79848f4822ffc40eee21f
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 27 01:19:50 2014 +0100
sd-bus: be stricter with mismatches between dbus1 and kdbus message headers
commit 78f9b196ab9671ceb625cd2abf90629ed201c24f
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 26 23:14:13 2014 +0100
bus-proxy: beef up policy enforcement
- actually return permission errors to clients
- use the right ucreds field
- fix error paths when we cannot keep track of locally acquired names
due to OOM
- avoid unnecessary global variables
- log when the policy denies access
- enforce correct policy rule order
- always request all the metadata its we need to make decisions
commit 9398f650939aec0d44ea7d20240502cafd667c29
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 26 23:13:52 2014 +0100
update TODO
commit 64e96a194d9fb8e9e69769bf88f067fadf9acce7
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 26 22:52:10 2014 +0100
bus-proxy: check passed parameter signature of all driver method calls
commit be660c371b231c253a97464ddd8f32ec8721da21
Author: Alin Rauta <alin.rauta at intel.com>
Date: Thu Nov 27 18:50:48 2014 +0100
networkd: fix kernel rtnl receive buffer overrun error
We got the following error when running systemd on a device with many ports:
"rtnl: kernel receive buffer overrun
Event source 'rtnl-receive-message' returned error, disabling: No buffer space
available"
I think the kernel socket receive buffer queue should be increased. The default
value is taken from:
"/proc/sys/net/core/rmem_default", but we can overwrite it using SO_RCVBUF
socket option.
This is already done in networkd for other sockets.
For example, the bus socket (sd-bus/bus-socket.c) has a receive queue of 8MB.
In our case, the default is 208KB.
Increasing the buffer receive queue for manager socket to 512KB should be enough
to get rid of the above error.
[tomegun: bump the limit even higher to 8M]
commit 0e3434aeb1eed951fdbeddacc6126e10d82a1c8b
Author: Stanisław Pitucha <viraptor at gmail.com>
Date: Tue Nov 18 14:52:13 2014 +1100
resolve: reject empty TXT records
TXT records should have at least one character, so enforce this.
Before 0f84a72 parser SIGSEGV'd on ->txt.strings being NULL, but
even if this is fixed we should reject invalid TXT records.
commit 59aa582137cab11ff6aeb9adc56b9e70c4d320ae
Author: Stanisław Pitucha <viraptor at gmail.com>
Date: Tue Nov 18 16:40:18 2014 +1100
resolve: set error code on failure
Set the error code in case of incorrect name. This prevents continuing
and failing an assert(name) later on.
commit c75dbf9bea577057c5a6ee3d52db6e13aa6caa57
Author: Stanisław Pitucha <viraptor at gmail.com>
Date: Tue Nov 18 16:25:20 2014 +1100
resolve: fix redirection loops in compressed RR
Loops in RR compression were only detected for the first entry.
Multiple redirections should be allowed, each one checking for an
infinite loop on its own starting point.
Also update the pointer on each redirection to avoid longer loops of
labels and redirections, in names like:
(start) [len=1] "A", [ptr to start]
(David: rename variable to "jump_barrier" and add reference to RFC)
commit c21b92ffe7ef939dd32502ac912cf8ad1c5638fd
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Thu Nov 27 15:23:58 2014 +0100
core: fix transaction destructiveness check once more
The previous fix e0312f4db "core: fix check for transaction
destructiveness" broke test-engine (noticed by Zbyszek).
Apparently I had a wrong idea of the intended semantics of --fail.
The manpage says the operation should fail if it "conflicts with a
pending job (more specifically: causes an already pending start job to
be reversed into a stop job or vice versa)".
So let's check job_type_is_conflicting, instead of !is_superset.
This makes both test-engine and TEST-03-JOBS pass again.
commit 0f84a72e3c0f58d71cff2121e6df1611eaf9c9ea
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Nov 27 16:08:46 2014 +0100
resolve: fix NULL deref on strv comparison
A strv might be NULL if it is empty. The txt.strings comparison doesn't
take that into account. Introduce strv_equal() to provide a proper helper
for this and fix resolve to use it.
Thanks to Stanisław Pitucha <viraptor at gmail.com> for reporting this!
commit 342f3005f57fe293d3b43148f8c900f2cbc6f7f7
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Thu Nov 27 13:49:41 2014 +0100
bus: prefix custom endpoints with "$UID-"
The kdbus module will later get a policy that endpoint-names are
restricted to "<uid>-<name>" just like bus-names. Make sure that systemd
is already compatible to that.
commit 0213a26f656d72ac83eb201f2104726fcfe60eaa
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date: Tue Nov 25 21:35:16 2014 +1000
hwdb: add a new db for the DPI/frequency settings of mice
Pointer acceleration for relative input devices (mice, trackballs, etc.)
applies to the deltas of the device. Alas, those deltas have no physical
reference point - a delta of 10 may be caused by a large movement of a
low-dpi mouse or by a minute movement of a high-dpi mouse.
Which makes pointer acceleration a bit useless and high-dpi devices
essentially unusable.
In an ideal world, we could read the DPI from the device directly and work
with that. In the world we actually live in, we need to compile this list
manually. This patch introduces the database, with the usual match formats
and a single property to be set on a device: MOUSE_DPI
That is either a single value for most mice, or a list of values for mice
that can change resolution at runtime. The exact format is detailed in the
hwdb file.
Note that we're explicitly overshooting the requirements we have for
libinput atm. Frequency could be detected in software and we don't
actually use the list of multiple resolutions (because we can't detect
when they change anyway). However, we might as well collect those values
from the get-go, adding/modifying what will eventually amount to hundreds
of entries is a bit cumbersome.
Note: we rely on the input_id builtin to tag us as mouse first, ordering
of the rules is important.
(David: fixed up typos and moved hwdb file into ./hwdb/)
commit 0c124f8b2c93d2c7d6eefca3bdc59b28250fc077
Author: Ivan Shapovalov <intelfx100 at gmail.com>
Date: Tue Nov 25 21:58:14 2014 +0300
unit-name: fix escaping logic in unit_name_mangle_with_suffix()
Make screened character set consistent with unit_name_mangle() by splitting off
the escaping loop into a separate function.
Before this fix, unit names such as `foo at bar.target` would get transformed
into `foo\x40bar.target` when unit_name_mangle_with_suffix() is used.
https://bugs.freedesktop.org/show_bug.cgi?id=86711
commit 59059b4a0769dd042a92159e7d35d2fea62f795d
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Nov 26 23:31:35 2014 -0500
coredump: use openat
commit 70af7b8ada43d15edcd16f1f5157c447c388933c
Author: Andrej Manduch <amanduch at gmail.com>
Date: Tue Nov 25 20:47:49 2014 +0100
journalctl: print all possible lines immediately with --follow + --since
When I tryed to run journalctl with --follow and --since arguments it
behaved very strangely.
First It prints logs from what I specified in --since argument, then
printed 10 lines (as is default in --follow) and when app put something
new in to log journalctl printed everithing from the last printed line.
How to reproduce:
1. run: journalctl -m --since 14:00 --follow
Then you'll see 10 lines of logs since 14:00. After that wait until some
app add something in the journal or just run `systemd-cat echo test`
2. After that journalctl will print every single line since 14:00 and will
follow as expected.
As long as --since and --follow will eventually print all relevant
lines, I seen no reason why not to print them right away and not after
first new message in journal.
Relevant bugzillas:
https://bugs.freedesktop.org/show_bug.cgi?id=71546
https://bugs.freedesktop.org/show_bug.cgi?id=64291
commit 3f132692e305ec9adf1779551cb89088de0188e8
Author: Jakub Filak <jfilak at redhat.com>
Date: Tue Nov 25 07:37:48 2014 +0100
coredump: collect all /proc data useful for bug reporting
/proc/[pid]:
- status
- maps
- limits
- cgroup
- cwd
- root
- environ
- fd/ & fdinfo/ joined in open_fds
commit c593bb360edd96fa6cd42f09e934f76c94f84473
Author: Jakub Filak <jfilak at redhat.com>
Date: Tue Nov 25 07:37:47 2014 +0100
util: add function getting proc environ
On the contrary of env, the added function returns all characters
cescaped, because it improves reproducibility.
commit 59580681f5f950335b5ec40bb4c4a70dca6b2830
Author: Gavin Li <git at thegavinli.com>
Date: Mon Nov 24 15:51:31 2014 -0800
networkd: route - allow routes without a gateway
For IPv6, the kernel returns EINVAL if a route is added with the
RTA_GATEWAY attribute set to in6addr_any (::). A route without a
gateway is useful in some situations, such as layer 3 tunneling
(sit, gre, etc.).
This patch prevents the RTA_GATEWAY attribute from being added
when route.in_addr is ip6addr_any (::).
commit bedd083aaedb3bbb14ef579a047bf4b4fed56d9b
Author: Łukasz Stelmach <l.stelmach at samsung.com>
Date: Wed Nov 26 09:17:50 2014 +0100
build-sys: do not install tmpfiles and sysusers files by default
commit 7b6288914b3b57e1c33c740eb705c5a6dd2655ca
Author: Sean Young <sean at mess.org>
Date: Wed Nov 26 09:33:30 2014 +0000
timesyncd: do not keep listening socket open forever
This also makes the source port less predicatable.
commit e8461023531de98ac6a49eff9d6ffeff6315249c
Author: Josh Triplett <josh at joshtriplett.org>
Date: Wed Oct 29 05:10:48 2014 -0700
logind: Support logind.conf.d directories in the usual search paths
This makes it possible to drop in logind configuration snippets from a
package or other configuration management mechanism.
Add documentation to the header of /etc/logind.conf pointing the user at
/etc/logind.conf.d/*.conf.
Introduce a new helper, conf_parse_many, to parse configuration files in
a search path.
commit 7f0a55d4325f7df91f91b3b818f61f97d78df14a
Author: Josh Triplett <josh at joshtriplett.org>
Date: Wed Oct 29 05:02:56 2014 -0700
Introduce CONF_DIRS_NULSTR helper to define standard conf dirs
Several different systemd tools define a nulstr containing a standard
series of configuration file directories, in /etc, /run, /usr/local/lib,
/usr/lib, and (#ifdef HAVE_SPLIT_USR) /lib. Factor that logic out into
a new helper macro, CONF_DIRS_NULSTR.
commit 3d82301321afdcc4f2f8786883bd15b1a64c6e83
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Nov 26 15:05:55 2014 -0500
journald: proceed even if some sockets are unknown
systemd-journald would refuse to start if it received an unknown
socket from systemd. This is annoying, because the failure more for
systemd-journald is unpleasant: systemd will keep restarting journald,
but most likely the same error will occur every time. It is better
to continue. journald will try to open missing sockets on its own,
so things should mostly work.
One question is whether to close the sockets which cannot be parsed or
to keep them open. Either way we might lose some messages. This
failure is most likely for the audit socket (selinux issues), which
can be opened multiple times so this not a problem, so I decided to
keep them open because it makes it easier to debug the issue after the
system is fully started.
commit 5607d856b8606ba75446a07ab5e9048753e1d7a6
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Nov 26 10:36:52 2014 -0500
swap: restore support for nofail
systemd stops adding automatic dependencies on swap.target to swap
units. If a dependency is required, it has to be added by unit
configuration. fstab-generator did that already, except that now it is
modified to create a Requires or Wants type dependency, depending on
whether nofail is specified in /etc/fstab. This makes .swap units
obey the nofail/noauto options more or less the same as .mount units.
Documentation is extended to clarify that, and to make
systemd.mount(5) and system.swap(5) more similar. The gist is not
changed, because current behaviour actually matches existing
documentation.
https://bugs.freedesktop.org/show_bug.cgi?id=86488
commit cb6531bee6e6f66c3a9d85b24fed68fae7fad6ad
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Nov 6 00:05:38 2014 -0500
manager: print fatal errors on the console too
When booting in quiet mode, fatal messages would not be shown at all to the user.
https://bugzilla.redhat.com/show_bug.cgi?id=1155468
commit 4104970ef78e40e976215cdb0d1b9170a213cc4b
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Nov 6 00:04:06 2014 -0500
manager: log some fatal errors at emergency level
This adds a new log_emergency() function, which is equivalent to
log_error() for non-PID-1, and logs at the highest priority for PID 1.
Some messages which occur before freezing are converted to use it.
commit 278ebf8d26f0ebf9d63d8aa1b91a2adbdd8aa4e0
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 26 21:15:39 2014 +0100
bus-policy: actually test messages against the newly added test.conf
commit 55e189007c707fb827b8b287903c258de234bd12
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 26 20:58:34 2014 +0100
bus-policy: also add in other bus policy tests from dbus1
dbus1 only checks if these files parse correctly so let's do the same for now.
commit 3a9cca11042331fc053ac1aa6363603622f1188c
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 26 20:22:22 2014 +0100
bus-policy: steal a test case for prefix ownership from dbus1, and make sure it passes with the bus proxy enforcement
commit cf226cfc24fec9d47a0c822188737656150356bb
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 26 18:59:31 2014 +0100
sd-bus: make sure that when we connect to the system bus we have enough creds to make security decisions
commit 8fd00193803fd20bed163832ec4d0d5ba2958b87
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 26 18:57:37 2014 +0100
core: make sure we have enough information when doing selinux decisions
Let's ask for the security relevant bits in a race-free way, and augment
the rest from /proc.
commit 6dae84cbdda6c0547b374119960b49c9da5aa481
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 26 17:27:13 2014 +0100
update TODO
commit dcc2fc01fa850e9ee36c549dc2691e7e5c71bebf
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 26 15:54:53 2014 +0100
sd-bus: update peeking into receieved messages, with recent kernel change we need to FREE them after all
commit e0312f4db08c7100bd00299614e87bedc759b366
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Nov 26 16:33:46 2014 +0100
core: fix check for transaction destructiveness
When checking if the transaction is destructive, we need to check if the
previously installed job is a superset of the new job (and hence the new
job will fold into the installed one without changing it), not the other
way around.
commit 61da906a744594002c2c967ecf6ec7899c7a9397
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Nov 26 16:33:45 2014 +0100
core: drop now-redundant special-casing of JOB_NOP
job_type_is_conflicting(X, JOB_NOP) correctly gives: false.
job_type_allows_late_merge(JOB_NOP) && job_type_is_superset(X, JOB_NOP)
correctly gives: true.
commit 7e803f5ecf689216d6fcd8a1d19a442f234bf28b
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Nov 26 16:33:43 2014 +0100
core: fix assertion failure in checking a transaction with a JOB_NOP
Several functions called from transaction_activate() need to correctly
handle the case where a JOB_NOP job is being checked against a unit's
pending job. The assumption that JOB_NOP never merges with other job
types was correct, but since the job_type_is_*() functions are
implemented using the merge lookup, they need to special-case JOB_NOP
to avoid hitting assertion failures.
commit 06c1c4f98c0d0b4c93e58d75ed5a08d722ec4de3
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Nov 26 16:33:40 2014 +0100
test: add test for crash when adding a JOB_NOP
commit d108ddf172103695463750c58d013b7ae477f686
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 26 15:43:50 2014 +0100
sd-bus: update kdbus.h from upstream
commit 68d4c4526306cf464257aed269b21a73672bbe29
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 26 15:43:20 2014 +0100
core: reindent mount/kmod tables
commit 0ad68f8743f3baaa7cd8ac7a2275459ae0f7b96a
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 26 15:42:54 2014 +0100
update TODO
commit 7212c6083a5577eabc96c35c9db4c19c113cae93
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 26 15:01:50 2014 +0100
update TODO
commit e12d81ae80214ef05ddedafd016bdd604ce17d12
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 26 14:59:12 2014 +0100
sd-bus: given that the kernel now passes the auxgroups list as 32bit array to us, no need to convert to uid_t manually
This way, we can save one allocation and avoid copying the array
unnecesarily.
commit 8514b67754c5ff7fa628929b3d27131010c21842
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 26 14:14:17 2014 +0100
update TODO
commit b568ef14a75dffb7182e0acbdec743b31df2a597
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 26 12:11:39 2014 +0100
update TODO
commit affc7fe9e1295e209c332a26acbbc992b710fe82
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Nov 26 11:11:54 2014 +0100
bus: update kdbus.h (ABI break)
We changed creds to u32, so fix systemd sd-bus to acknowledge that.
commit 279f036675536d55c901562b49f9df146af1a0e3
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 26 03:18:17 2014 +0100
reorder TODO a bit
commit 80877656a557231f8187f7bc371fd4cb3b70de5a
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Nov 25 20:32:03 2014 -0500
udevadm trigger: allow matching by device name
This makes udevadm trigger mirror udevadm info, except that multiple
device names can be specified. Instructions in 60-keyboard.hwdb should
now actually work.
udevadm(8) is updated, but it could use a bit more polishing.
https://bugs.freedesktop.org/show_bug.cgi?id=82311
commit d6170d27b26eeeace966bb9720d66fcac2a6ef1b
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Nov 25 19:39:19 2014 -0500
udevadm: split out find_device helper
The idea is to unify the way that devices can be specified.
commit 6c78f43c7b0e54e695af49917fda79b584f46830
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 26 02:55:42 2014 +0100
update TODO
commit 38813cc8245e35fc89d3671e4cee031d4b2bf430
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 26 02:54:41 2014 +0100
bus-kernel: when installing an activator, ask for any kind of metadata to be attached to incoming messages
We don't know what the activated service might want in the end, hence
enable everything current and future, just to be sure.
commit 8aee3fc7eae2e60592bac838bc7268720e1d489c
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 26 02:54:11 2014 +0100
sd-bus: don't clobber return values on failure in bus_kernel_open_bus_fd()
commit fa7796e97b96160a4d78f72d113573770cec18f2
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 26 02:50:49 2014 +0100
sd-bus: set per-bus attach flag requirement mask to ANY
On the system and user busses we create it's the receiver that chooses
which metadata is attched, not the sender, hence set the requirement
mask to ANY, to allow any current of future credential bit to be
attached.
commit 1dfac061ced2be5eba2b060045154428d13d8c27
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 26 02:21:15 2014 +0100
update TODO
commit b5dae4c7f77f7c87b91e0afb60a31c690dda4a1f
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 26 02:20:28 2014 +0100
sd-bus: add suppot for renegotiating message credential attach flags
commit f3c0588651927ebac691130aa861b878fa22e527
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 26 01:45:14 2014 +0100
sd-bus: use free_and_strdup() where appropriate
This simplifies things a bit and makes sure we free any previously set
creds component before writing in a new one.
commit b37d45c9ab5f645502695e47d268af1a54216e0e
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Nov 25 22:30:29 2014 +0100
resolved: fix typo in sd_notify() call
commit 6363357378e295ee9dfc23e7c5a9f8793b06519c
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 25 20:50:55 2014 +0100
update TODO
commit bd5f920f1288c0d4d488629fadf067f709227030
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 25 19:32:48 2014 +0100
core: show log message about process triggering kdbus service activation
commit f9a458c66672992dd34ad0c7cfec3795b897d711
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 25 19:54:18 2014 +0100
sd-bus: react properly to EOVERFLOW by generating a log message about dropped broadcast messages and proceeding
commit 48eaba354e45942796c9c54617ff332d010a0404
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 25 19:25:33 2014 +0100
kdbus: update header file to current upstream version
commit 0a9f1fd79b95cc88b27915f709c9ec4df0b3f891
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 25 19:25:19 2014 +0100
kdbus: minor simplification
commit 54e2e63dd28879587bc653f48520beb2956c0f16
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 25 19:25:03 2014 +0100
update TODO
commit 2e8574290d36801acffaf51a9a00a77b972a255b
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 25 19:24:45 2014 +0100
util: mark page_size() as pure
commit 3c575b641716a1d21cdb1a411443a96b5399b501
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 25 13:24:08 2014 +0100
update TODO
commit 9f6dfd0624e44002e407a72acb0c15b7177e9a9f
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 25 13:23:44 2014 +0100
sd-bus: fix error handling when receiving invalid service name
Also, properly keep track of incoming additional service names.
commit 6dfcc64bb5c67ec2e026715146c19acf93dab31a
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 25 13:22:55 2014 +0100
sd-bus: properly handle non-initialized audit records attached to incoming kernel messages
commit a6ede528c478177821423f1e61e625030a6602c0
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 25 13:22:19 2014 +0100
sd-bus: properly copy selinux label and description field when duplicating creds object
commit 0258159049d5b381c6097533a69a1b29c3ba7ce2
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 25 13:21:23 2014 +0100
sd-bus: add supplementary groups list to creds object
commit 2e9efd22ce0099c3b4d35898d70f8fc706c8a66c
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 25 02:11:57 2014 +0100
busctl: if no parameter is specified for "busctl status" show credentials of bus owner
commit becca6eaafa8ad7771363099f55b8a7dde516f21
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 25 01:59:48 2014 +0100
sd-bus: properly handle uninitialized audit creds from kdbus
commit 359c09b1c1afa5a5ed4002940d7d6e61b74b7e3b
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 24 22:11:53 2014 +0100
sd-bus: don't fail when querying creds and dbus1 refuses to tell us the selinux context
commit 40ed1a4574152337479f7f9c01763b84847ff09f
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 24 21:53:29 2014 +0100
busctl: add new --augment-creds= switch for controlling whether shown credential data shall be augment with data from /proc
commit 705a415f684f8e9ee19983e5859de00bbb1477cb
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 24 21:41:40 2014 +0100
sd-bus: update to current kernel version, by splitting off the extended KDBUS_ITEM_PIDS structure from KDBUS_ITEM_CREDS
Also:
- adds support for euid, suid, fsuid, egid, sgid, fsgid fields.
- makes augmentation of creds with data from /proc explicitly
controllable to give apps better control over this, given that this is
racy.
- enables augmentation for kdbus connections (previously we only did it
for dbus1). This is useful since with recent kdbus versions it is
possible for clients to control the metadata they want to send.
- changes sd_bus_query_sender_privilege() to take the euid of the client
into consideration, if known
- when we don't have permissions to read augmentation data from /proc,
don't fail, just don't add the data in
commit 1d58a1fe13cd725110be595c40cdc973d7e57d9e
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 24 21:39:18 2014 +0100
busctl: improve readability a bit
commit 5cf4f2d1761cba895315d8f1f137afb3fdcd7a85
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 24 21:37:26 2014 +0100
bus: change creds dumping order to be more close to internal storage order
commit 62028d9c2b72bdbcec71d5c9f33d9a3bf143c6e4
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 24 21:21:24 2014 +0100
util: skip incomplete ucred information in getpeersec()
commit dc18cefdc3bdedddeddf05ede7d662ed15cde825
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 24 21:20:53 2014 +0100
sd-bus: don't blindly take incomplete ucred bits from AF_UNIX when constructing message
commit bdb074a562e358d36590d09daddbf1f0c24e6676
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 24 17:55:44 2014 +0100
update TODO
commit 24a4501d70e60f15c074e9f5bda46a7fbc5735e5
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date: Tue Nov 25 20:45:50 2014 +1000
hwdb: fix a typo
commit f148ae14892c78da5f7a33e7319c322eac1513a9
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Tue Nov 25 11:39:30 2014 +0100
tmpfiles.d: Fix directory name
The .service uses "/var/lib/container", not "containers".
commit 8623d3a3b2e3463fa6e4ded734323483540c3ed4
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Tue Nov 25 10:26:08 2014 +0100
localed: verify xkb keymaps after pk-queries
Make sure not to run xkb-keymap validation twice if pk-queries are used.
Move it below pk-checks.
commit 2f0dd5164d36956197b9e649a100d5cfe08bb247
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Tue Nov 25 10:24:39 2014 +0100
terminal/idev: forward xkb-messages
Properly forward all XKB messages. You can use XKB_LOG_VERBOSITY= to
control the amount of messages sent by XKB. We explicitly set
XKB_LOG_LEVEL to 7 you can use SYSTEMD_LOG_LEVEL to control the log-level
generically.
commit 123a8dc84db405d3001fd02d224a02ebe6ec0b18
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Tue Nov 25 10:24:08 2014 +0100
terminal/idev: avoid magic numbers
Use XKB_CONTEXT_NO_FLAGS instead of magic 0.
commit a2ce1730e12eda3112b3e84e0810f9913ce5c57c
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Nov 24 18:25:30 2014 +0100
terminal/idev: use compose tables
Before forwarding keyboard events, feed them into possible compose tables.
This enables Compose-key and Dead-key features.
Few notes:
* REPEAT events are never fed into compose tables. It just doesn't make
sense and is usually not wanted. Compose-sequences are usually hard to
remember and take time to type. Thus, the REPEAT event of the
Compose-key itself would often cancel the compose sequence already.
* Stop resolving symbols for UP events. Anything but keycodes is never
associated to a physical key, but is a one-time action. There is
nothing like UP events for key-symbols!
* Cancel compose-sequences on Multi-Key UP. See the inline comment. We
should make this configurable!
commit cdcd0ccdbe427de53d8e5ff8f2f1b06b3f477bde
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Nov 24 16:32:54 2014 +0100
terminal/idev: add compose-file support
Add support for compose files to idev-keyboard. This requires
libxkbcommon-0.5.0, which is pretty new, but should be fine.
We don't use the compose-files, yet. Further commits will put life into
them.
commit 2ca620c4ed28c01f285d869d0b22f22a360957da
Author: WaLyong Cho <walyong.cho at samsung.com>
Date: Mon Nov 24 20:46:20 2014 +0900
smack: introduce new SmackProcessLabel option
In service file, if the file has some of special SMACK label in
ExecStart= and systemd has no permission for the special SMACK label
then permission error will occurred. To resolve this, systemd should
be able to set its SMACK label to something accessible of ExecStart=.
So introduce new SmackProcessLabel. If label is specified with
SmackProcessLabel= then the child systemd will set its label to
that. To successfully execute the ExecStart=, accessible label should
be specified with SmackProcessLabel=.
Additionally, by SMACK policy, if the file in ExecStart= has no
SMACK64EXEC then the executed process will have given label by
SmackProcessLabel=. But if the file has SMACK64EXEC then the
SMACK64EXEC label will be overridden.
[zj: reword man page]
commit 8086ffacdb1bfec5ec115d24626538bda6cc372e
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Nov 23 20:01:40 2014 -0500
gpt-auto-generator: properly ignore value
A negative return code was treated as a true value.
commit 9a20fcbcd1b010ad88bfbb8b7f0417bec7327fb4
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Nov 24 15:39:00 2014 +0100
build-sys: support local ./configure arguments
I often want to use the awesome "./autogen.sh [cmd]" arguments, but have
to append some custom ./configure options. For now, I always had to edit
autogen.sh manually, or copy the full commands out of it and run it
myself.
As I think this is super annoying, this commit adds support for
".config.args" files in $topdir. If it exists, any content is just
appended to $args, thus to any ./configure invokation of autogen.sh.
Maybe autotools provide something similar out-of-the-box. In that case,
feel free to revert this and lemme know!
commit d4f5a1f47dbd04f26f2ddf951c97c4cb0ebbbe62
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Nov 24 15:12:42 2014 +0100
localed: validate xkb keymaps
Introduce a new optional dependency on libxkbcommon for systemd-localed.
Whenever the x11 keymap settings are changed, use libxkbcommon to compile
the keymap. If the compilation fails, print a warning so users will get
notified.
On compilation failure, we still update the keymap settings for now. This
patch just introduces the xkbcommon infrastructure to have keymap
validation in place. We can later decide if/how we want to enforce this.
commit 8a52210c9392887a31fdb2845f65b4c5869e8e66
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Mon Nov 24 09:11:12 2014 -0500
cryptsetup: default to no hash when keyfile is specified
For plain dm-crypt devices, the behavior of cryptsetup package is to
ignore the hash algorithm when a key file is provided. It seems wrong
to ignore a hash when it is explicitly specified, but we should default
to no hash if the keyfile is specified.
https://bugs.freedesktop.org/show_bug.cgi?id=52630
commit 056edeb9102c5ba455e1a54af70f282b6138ca33
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Nov 5 22:39:13 2014 -0500
manager: only issue overmount warning when the check succeeded
If for any reason the check failed (selinux?), we would still issue
the warning. Check the return status.
commit 06d8d842e9de8656d9a46926e7ae7ff967b69ef8
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Nov 8 10:06:12 2014 -0500
manager: let manager_free() handle NULLs
This makes the calling code a bit simpler.
commit f44b9efcec4594eb8f843325ee3079b44fb8f24a
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Thu Nov 20 16:06:18 2014 +0100
dbus: return non-zero return value in the case that prefix won't match
strv_extend returns 0 in the case of success which means that
else if (bus_track_deserialize_item(&m->deserialized_subscribed, l) == 0)
log_warning("Unknown serialization item '%s'", l);
will be printed when value is added correctly.
commit 58f10d401f1d3cd76f560e1914147040e8defa76
Author: Iago López Galeiras <iago at endocode.com>
Date: Thu Nov 20 21:18:23 2014 +0100
test: support empty environment variables in unit files
Also update TODO, empty environment variables in Environment= and
EnvironmentFile= options work.
commit f6375e837670911012ea0bd0de39511334d18021
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Nov 23 11:07:15 2014 -0500
man: reword list-dependencies description
The previous version was a bit too vague. It is better
to simply list all dependency types that are followed.
Previous version also made an emphasis on dependencies introduced by
configuration. But this command (or systemd) don't care about this
distinction between configured and automatically added dependencies at
all. This distinctionis removed from the main description, and an
explanatory paragraph is added to remind the user that all
dependencies are shown, no matter where they come from.
commit c469089cf647ac740c7dcf09c463d2907b6d00eb
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Nov 22 20:21:56 2014 -0500
systemctl: show BindsTo/BoundBy in list-dependencies
Suggested-by: Peter Mattern <matternp at arcor.de>
http://lists.freedesktop.org/archives/systemd-devel/2014-November/025437.html
commit 6c2d07020f752547a8a45b6f03546a61a5e1672d
Author: Richard Schütz <rschuetz at uni-koblenz.de>
Date: Fri Nov 21 21:44:48 2014 +0100
nspawn: ignore EEXIST when mounting tmpfs
commit 79d80fc1466512d0ca211f4bfcd9de5f2f816a5a introduced a regression that
prevents mounting a tmpfs if the mount point already exits in the container's
root file system. This commit fixes the problem by ignoring EEXIST.
commit 6e3157c5e64408c01817ffef05a77c8456bef958
Author: Chris Atkinson <cwa at pipeline.com>
Date: Sat Nov 22 15:58:47 2014 -0500
man/logind.conf.xml: make consistent with default logind.conf
https://bugs.freedesktop.org/show_bug.cgi?id=86263
commit b63bd1090bf6ce79b6757c3f8f4172a367854577
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Nov 22 18:00:07 2014 -0500
Do not check for existence of remote binaries
systemd-run would fail when run with -M or -H and an absolute path,
if this path did not exists locally. Allow it to continue, since we
don't have a nice way of checking if the binary exists remotely.
The case where -M or -H is used and a local path is unchanged, and we
still iterate over $PATH to find the binary. We need to convert to an
absolute path, and we don't have a nice mechanism to check remotely,
so we assume that the binary will be located in the same place locally
and remotely.
http://lists.freedesktop.org/archives/systemd-devel/2014-November/025418.html
commit 8ecec322fe6b34b64868d8cc3808b5613f09e8d3
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Nov 22 17:12:44 2014 -0500
missing: add IFLA_BRPORT_LEARNING and friends
IFLA_BRPORT_LEARNING was added in v3.10-rc4-583-g9ba18891f7,
and IFLA_BRPORT_UNICAST_FLOOD in v3.10-rc4-584-g867a59436f.
commit 568981d2ac78567e859d89e8d29f844c3e6a871f
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Nov 22 12:04:50 2014 -0500
missing: add __NR_getrandom for a few more archs
Mips has getrandom() too, but there's just too many variants
for me too care. Either someone who cares does it, or they get
compile-time warnings with old kernel headers.
commit 1e648011b20c8126412d3cf2699d575d9ba9e0fe
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Fri Nov 21 17:02:15 2014 +0100
selinux-access: fix broken ternary operator
it seems to be a typo introduced by ebcf1f97de4f6b1580ae55eb56b1a3939fe6b602
- _r = selinux_access_check(_b, _m, _u->source_path ?:_u->fragment_path, (permission), &_error); \
+ ({ Unit *_unit = (unit); selinux_generic_access_check(bus,message, _unit->fragment_path ?: _unit->fragment_path, permission,error); })
commit 43dbecd5a31f6b247b261a5a281afecafdf1c841
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 21 20:46:01 2014 +0100
man: don't mix 2ch and 8ch indentation in busctl.xml
commit 3802a3d3d7af51ddff31943d5514382f01265770
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 21 20:44:48 2014 +0100
man: add emacs header to get correct indention in nxml-mode for the manpage XML files that use 2ch indenting
In the long run we really should figure out if we want to stick with 8ch
or 2ch indenting, and not continue with half-and-half. For now, just
make emacs aware of the files that use 2ch indenting.
commit a44b10818a531787c359f6446d218a975503f032
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 21 20:31:50 2014 +0100
busctl: add --timeout= option to specify method call timeout
commit 38051578360c211e88ef4082ce5746adb52a500e
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 21 20:13:26 2014 +0100
busctl: add options to control message header flags when invoking methods
commit 574edc90066c3faeadcf4666928ed9b0ac409c75
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Thu Nov 20 14:30:52 2014 +0100
nspawn: Add try-{host,guest} journal link modes
--link-journal={host,guest} fail if the host does not have persistent
journalling enabled and /var/log/journal/ does not exist. Even worse, as there
is no stdout/err any more, there is no error message to point that out.
Introduce two new modes "try-host" and "try-guest" which don't fail in this
case, and instead just silently skip the guest journal setup.
Change -j to mean "try-guest" instead of "guest", and fix the wrong --help
output for it (it said "host" before).
Change systemd-nspawn at .service.in to use "try-guest" so that this unit works
with both persistent and non-persistent journals on the host without failing.
https://bugs.debian.org/770275
commit 812bd1e6ab4c463507557f2bdbb8875fedd92ade
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 21 01:20:57 2014 +0100
units: make sure rfkill service is bount to the actual hardware
commit eab459bc0639b81b32735f36d3e929e4bfa2cb4b
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 21 01:17:52 2014 +0100
Revert "systemd-logind.service: set Type=notify"
This reverts commit a4962513c555fe3ac4b5bebf97a71701361a45b0.
logind.service is a D-Bus service, hence we should use the dbus name as
indication that we are up. Type=dbus is implied if BusName= is
specified, as it is in this case.
This removes a warning that is printed because a BusName= is specified
for a Type=notify unit.
commit 797e7a51cdfb23fa1b90b0a0ea2d5c1c83a739e1
Author: Martin Pitt <martin.pitt at ubuntu.com>
Date: Thu Nov 20 14:37:08 2014 +0100
tmpfiles.d: Create /var/lib/containers
Create /var/lib/containers so that it exists with an appropriate mode. We want
0700 by default so that users on the host aren't able to call suid root
binaries in the container. This becomes a security issue if a user can enter a
container as root, create a suid root binary, and call that from the host.
(This assumes that containers are caged by mandatory access control or are
started as user).
commit 1fc5560911a7e9e8cf2993e17e1f0a001e148809
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 20 23:12:29 2014 +0100
busctl: show property values in "introspect" output, add "set-property" command, and support both a terse and a verbose output format
commit b18ec7e29f9756bb66f63a0fa02a6ceb40b38b03
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 20 21:01:06 2014 +0100
busctl: when --address is specified do not assume we connect to a full bus
commit 79f34de9fb8e4faa6ed0847b386099a4ba100a8a
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 20 20:59:57 2014 +0100
busctl: use canned error message on parse failure
commit 0ca454d474a13f363dcd5ef8dc97ca158569d3ed
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 20 20:58:39 2014 +0100
sd-bus: create clean error when a property Set() call with incorrect signature is passed in
commit 609c3029076da1ba423673161e5d0fc82ccca6b6
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 20 20:58:02 2014 +0100
build: avoid trailing whitespace in feature string
commit ad450c3e0418fe23e2896e581575cb06564ca29a
Author: Jakub Filak <jfilak at redhat.com>
Date: Wed Nov 19 11:01:19 2014 +0100
util: add functions getting proc cwd and root
/proc/[pid]/cwd and /proc/[pid]/root are symliks to corresponding
directories
The added functions returns values of that symlinks.
commit 1c6eb4e36bf88015d0bbe8fae417622e6132b864
Author: Thomas Haller <thaller at redhat.com>
Date: Wed Nov 19 13:57:08 2014 +0100
sd-dhcp-lease: fix copy-paste error asserting wrong function argument
commit 73fc23c0641d3659330f44cf1a6ea112d6a51708
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 20 00:00:22 2014 +0100
busctl: pass error output to stdout (rather than stderr) when generate tree for all objects
This is a ton more useful when some services fail, since we continue
crawling then and output everything to a pager.
commit d0b2babf5264429e6ac0870b2c7cb13eacba2b86
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 19 23:59:26 2014 +0100
busctl: improve output of service creds
commit 0171da06ef8bb19c175c5aa8aff8cf95f3de7dc1
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 19 21:12:54 2014 +0100
busctl: add new "introspect" verb for introspecting objects
commit 9b772efb41c2d9f743ba5e96804bdf89b12630d8
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 19 20:52:47 2014 +0100
sd-bus: refuse properties that claim to be both writable and constant at the same time
commit 4c3f1641f13b7687a0dc234d3ae387b7c40494ff
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 19 20:52:23 2014 +0100
core: watchdog bus properties cannot be both writable and constant
commit e1ba963fdf13f4057b9089e0c732e6c1eb69901e
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 19 16:43:41 2014 +0100
tests: fix minor memory leak
commit 575ccc1b6900f1f8e5c32da71f42f4d855659622
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 19 16:43:03 2014 +0100
set: make set_consume() actually free the allocated string if the string already is in the set
commit a1ad376761af16da46c9ad90fd8df41c8c5c0976
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 19 16:42:21 2014 +0100
busctl: split out introspection parser from tree logic so that we can reuse it for a future "busctl introspect" command
commit a4962513c555fe3ac4b5bebf97a71701361a45b0
Author: Dave Reisner <dreisner at archlinux.org>
Date: Wed Nov 19 08:13:34 2014 -0500
systemd-logind.service: set Type=notify
The code already calls sd_notify("READY=1"), so we may as well take
advantage of the startup behavior in the unit. The same was done for
the journal in a87a38c20.
commit e37f74a6d5cc3c0a3d214c3a7f5de234b0696b4c
Author: Dan Williams <dcbw at redhat.com>
Date: Tue Nov 18 17:13:12 2014 -0600
sd-dhcp-lease: load/save client ID
The lease is usually tied to the client ID, so users of the
lease may want to know what client ID it was acquired with.
commit ba6c0fd6303c63576983c7be892d80d954c1e4c5
Author: Dan Williams <dcbw at redhat.com>
Date: Tue Nov 18 17:01:20 2014 -0600
sd-dhcp-client: allow getting/setting the client ID
The client identifier can be in many different formats, not just
the one that systemd creates from the Ethernet MAC address. Non-
ethernet interfaces may have different client IDs formats. Users
may also have custom client IDs that the wish to use to preserve
lease options delivered by servers configured with the existing
client ID.
commit 7b0fce617c48eda32b2d4e04b5f0e4376e8c0106
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 18 23:35:46 2014 +0100
update TODO
commit 1dc24d5f48b384c48d5182964579758d7dcbdce2
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Nov 18 19:10:37 2014 +0100
sd-dhcp-lease: expose load/save functions
Based on patch by Dan Williams.
commit d8d74ef06fa0ccf39084a6177e70e4c2297cca57
Author: Dan Williams <dcbw at redhat.com>
Date: Tue Nov 4 11:20:43 2014 -0600
sd-dhcp-client: fix REBOOT state handling
client->secs wasn't getting set in the REBOOT state, causing
an assertion. REBOOT should work the same way as INIT, per
RFC 2131:
secs 2 Filled in by client, seconds elapsed since client
began address acquisition or renewal process.
REBOOT is necessary because some DHCP servers (eg on
home routers) do not hand back the same IP address unless the
'ciaddr' field is filled with that address, which DISCOVER
cannot do per the RFCs. This leads to multiple leases
on machine reboot or DHCP client restart.
commit b77acbcf7d9070ac01333a1b98c6222bee599550
Author: Susant Sahani <susant at redhat.com>
Date: Mon Nov 17 16:28:57 2014 +0530
namespace: unchecked return value from library
fix:
CID 1237553 (#1 of 6): Unchecked return value from library
(CHECKED_RETURN
CID 1237553 (#3 of 6): Unchecked return value from library
(CHECKED_RETURN)
CID 1237553 (#4 of 6): Unchecked return value from library
(CHECKED_RETURN)
CID 1237553 (#5 of 6): Unchecked return value from library
(CHECKED_RETURN
CID 1237553 (#6 of 6): Unchecked return value from library
(CHECKED_RETURN)
commit 3aeaee978a03b1fcc0fd0265c0dd9680c8a19694
Author: Susant Sahani <susant at redhat.com>
Date: Tue Nov 11 13:36:33 2014 +0530
bus-socket: fix CID#996290 Unchecked return value
commit 0c9eefb7e3a39db832313b8411a4dcb9fdfe3607
Author: Susant Sahani <susant at redhat.com>
Date: Tue Nov 11 13:36:32 2014 +0530
resolve: fix CID#1237549 Unchecked return value
commit 9593d9d9d505d38b1b0fb3d492268d513f228b88
Author: Susant Sahani <susant at redhat.com>
Date: Tue Nov 11 13:36:31 2014 +0530
log: unchecked return value from library
fix 1237557 Unchecked return value from library
commit c9732bae8f29be644e7b4b1cc4f738ef85477c72
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sun Nov 9 15:42:23 2014 +0100
udev: silence TOCTOU warning when creating a directory
CID#979416. There is no real race here to fix, but lets make coverity
happy and rework the code.
Note that we still fail if the directory is removed _after_ we ran
mkdir(), so the same race is still there. Coverity is complaining, though.
Rewrite the code to make it happy.
(David: rewrote the commit-message to note that this is not a race. If I'm
wrong, blame me, not Ronny!)
commit 8e24a4f8b6f53883ea515ae8f27fb6b1795973b4
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sat Nov 15 23:43:09 2014 +0100
pam_systemd: remove unused null check
username was already checked with isempty() and cannot be null at
this point.
CID#1237766
commit 85e74b26c30b4c34a7ed8342b8f692ccdf3908b4
Author: Thomas Hindoe Paaboel Andersen <phomes at gmail.com>
Date: Sat Nov 15 21:32:59 2014 +0100
autogen: drop unnecessary -Wno-gnu for the clang shortcut
It is no longer necessary after 65e3a2cf7c3b399853dd309f702ca5078b7d16ea
where -Wno-gnu-variable-sized-type-not-at-end is added if we detect
that the compiler is clang.
commit e341912313db96f400ee5d5450aae7c67ebd44dd
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 14 20:06:20 2014 +0100
bus-proxy: avoid redundant name validity checks
Our API calls check the validity of bus names anyway, hence we don't
have to do this before calling them...
commit f5d8989ce5fc4e6eb338ec7b1b2c6d6a74c44c63
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 14 20:06:01 2014 +0100
bus-proxy: properly check for bus name prefixes when enforcing policy
commit 49d4b1eecfefded66fd48a992633958da30035d7
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 14 18:47:54 2014 +0100
bus-proxy: drop broken access check in driver
The access check call was broken (as it tried to read a service name
from the UpdateActivationEnvironment() method call which doesn't carry
any). Also, it's unnecessary to make any access checks here, as we just
forward the call to PID 1 which should do the access checks necessary.
commit 5f68e74b6a795c5e3e1a6b3be3db85dfcd6b68c2
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 14 18:02:30 2014 +0100
kmod-setup: improve for "kdbus" word on the kernel cmdline
We really shouldn't check for words with "strstr()"...
commit f84f9974d827314c8ee86f65a5007ccee210422b
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 14 17:58:32 2014 +0100
kmod: move #ifdef checks for kmod-setup out of main.c into kmod-setup.c
commit 264b8070715d2d19344c4991ace21147d998f56d
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 14 17:55:19 2014 +0100
update TODO
commit d55192add75584f55932ad463ee6b4cc30370c63
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 14 17:20:04 2014 +0100
busctl: introduce busctl "get-property" command for reading and dumping object properties
commit 2e75e2a8f56d0d5340dc9fb6fed1f6c4b37c495f
Author: Daniel Mack <daniel at zonque.org>
Date: Fri Nov 14 15:18:56 2014 +0100
mount-setup: remove mount_setup_late()
Turns out we can just do kmod_setup() earlier, before we do mount_setup(),
so there's no need for mount_setup_late() anymore. Instead, put kdbusfs in
mount_table[].
commit 56c8b52d4dc652bf15aa8c2ef44d35b166b419c1
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 14 13:18:33 2014 +0100
busctl: various tweaks to "busctl tree" output
commit 86349ffe49092345269762e3274121133604c3d4
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 14 13:11:45 2014 +0100
man: various tweaks for busctl(1) man page
commit 781fa93815fafd02b5287ef5781b92ef7b99973b
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 14 13:11:10 2014 +0100
busctl: add new "call" command to invoke methods on a service
commit 8022212b3b8e553fd83b87575f3e730e56852d5d
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 14 13:05:01 2014 +0100
sd-bus: add sd_bus_message_is_empty() for checking whether a message carries any body
commit 34b950a8d8b83b3c101beba479a9ddae8c2ebb93
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 14 12:55:18 2014 +0100
man: hostnamectl understands -M too
commit 63cc4c3138fd0ce9cc97884373a2dd8959a13ee9
Author: Daniel Mack <daniel at zonque.org>
Date: Thu Nov 13 20:33:03 2014 +0100
sd-bus: sync with kdbus upstream (ABI break)
kdbus has seen a larger update than expected lately, most notably with
kdbusfs, a file system to expose the kdbus control files:
* Each time a file system of this type is mounted, a new kdbus
domain is created.
* The layout inside each mount point is the same as before, except
that domains are not hierarchically nested anymore.
* Domains are therefore also unnamed now.
* Unmounting a kdbusfs will automatically also detroy the
associated domain.
* Hence, the action of creating a kdbus domain is now as
privileged as mounting a filesystem.
* This way, we can get around creating dev nodes for everything,
which is last but not least something that is not limited by
20-bit minor numbers.
The kdbus specific bits in nspawn have all been dropped now, as nspawn
can rely on the container OS to set up its own kdbus domain, simply by
mounting a new instance.
A new set of mounts has been added to mount things *after* the kernel
modules have been loaded. For now, only kdbus is in this set, which is
invoked with mount_setup_late().
commit c1ec25a0634bba8ef82b69ac603597d4749baf9d
Author: Daniel Mack <daniel at zonque.org>
Date: Thu Nov 13 11:59:29 2014 +0100
bus-proxyd: temporarily disable policy checks again
There are issues to investigate on with policies shipped by some
packages, which we'll address later. Move that topic out of the
way for now to bring sd-bus in sync with upstream kdbus.
commit adeba5008eac3105ae59256dedd087ebe006a9e6
Author: Kay Sievers <kay at vrfy.org>
Date: Thu Nov 13 20:35:06 2014 +0100
udev: support ENV{}=="" global property matches
commit 41b848b0ea674dba135d5d5f82b87d126d967fcf
Author: Kay Sievers <kay at vrfy.org>
Date: Thu Nov 13 13:50:01 2014 +0100
udev: move global property handling from libudev to udevd
commit 25e773eeb4f853804e1bf0dbd9a184f23e9b2a97
Author: Kay Sievers <kay at vrfy.org>
Date: Thu Nov 13 13:11:04 2014 +0100
udev: switch to systemd logging functions
commit a974cacd9ac179599f3645409664ccb254ed6bbb
Author: Kay Sievers <kay at vrfy.org>
Date: Thu Nov 13 11:42:24 2014 +0100
libudev: we do not log errors from libraries
commit 281e05b6cb406debe7b290e5aee8eae049671c14
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Tue Nov 11 20:05:40 2014 +0100
tests: add test-execute
add tests for the following directives:
- WorkingDirectory
- Personality
- IgnoreSIGPIPE
- PrivateTmp
- SystemCallFilter: It makes test/TEST-04-SECCOMP obsolete, so it has
been removed.
- SystemCallErrorNumber
- User
- Group
- Environment
commit 07aa32e31d82d1239a618e07adedaecd35d96b27
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Tue Nov 11 19:48:27 2014 +0100
manager: allow test run to catch SIGCHLD events
Otherwise we cannot know when a service exited
commit b4c72e52d2109fe7f0ac3440c81ae3e1ce64a143
Author: Bastien Nocera <hadess at hadess.net>
Date: Wed Nov 12 23:31:08 2014 +0100
keymap: Fix special keys on ThinkPad X60/X61 Tablet
KEY_DIRECTION is mapped to XF86RotateWindows, to rotate the display:
http://cgit.freedesktop.org/xkeyboard-config/commit/symbols/inet?id=ec875f6f9b7c4028e11d32b071989c682e6502bd
And F13 is mapped to XF86Tools, which is closest to the original toolbox
usage:
http://cgit.freedesktop.org/xkeyboard-config/tree/symbols/inet?id=7a2c4bed212ebbcc05f3c959aef659ce7dd31fd8#n221
commit 71ed2d38711e345f22e2200bc7bb156aed98972a
Author: Bastien Nocera <hadess at hadess.net>
Date: Wed Nov 12 23:30:46 2014 +0100
keymap: Add support for IBM ThinkPad X41 Tablet
Scancode taken from:
http://www.thinkwiki.org/wiki/Tablet_Hardware_Buttons#Linux_Support
William Jon McCann provided the DMI match. IBM seems to have
swapped the version and model of the system:
Manufacturer: IBM
Product Name: 18666TU
Version: ThinkPad X41 Tablet
commit 174299e35fb8386f7b1d6e57ed42c205dcd92447
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 12 23:44:21 2014 +0100
man: fix typo
commit c2d5b3c94d0c082ef29597fb230f8b88b124bab8
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 12 23:44:14 2014 +0100
Update TODO
commit 00b06165a198e7e7ad7232752bd998b9d0b52d4b
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Wed Nov 12 21:42:38 2014 +0100
udev: use properly the systemd logging functions
commit b12b78712edb09a0fc28b460ebf0bb8eae5cff03
Author: Kay Sievers <kay at vrfy.org>
Date: Wed Nov 12 18:35:18 2014 +0100
udev: use the systemd logging functions in udev tools
commit e9730b76902af3fa831ccf0c50b05fba5b228e73
Author: Daniel Mack <daniel at zonque.org>
Date: Tue Nov 11 18:31:11 2014 +0100
sd-bus: pass attach flags to BUS_CREATOR_INFO
kdbus learned parsing the attach flags for the KDBUS_CMD_BUS_CREATOR_INFO
ioctl. Bits not set in this mask will not be exported. Set that field to
_KDBUS_ATTACH_ALL for now.
Signed-off-by: Daniel Mack <daniel at zonque.org>
commit 4ecd22142543aac55ddac1da3b7d6882c009d637
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 11 18:12:48 2014 +0100
update TODO
commit fff19499605924251d037073f47665419b669400
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 11 18:12:40 2014 +0100
sysuser: simplify access mode syncing by introducing helper function for it
commit ed6d629a3487105e31415db9e175dd698ac20125
Author: Daniel Mack <daniel at zonque.org>
Date: Thu Oct 23 13:06:38 2014 +0200
bus-proxyd: explicitly address messages to unique and well-known name
In order to check for matching policy entries at message transfers, we
have to consider the following:
* check the currently owned names of both the sending and the receiving
peer. If the sending peer is connected via kdbus, the currently owned
names are already attached to the message. If it was originated by the
connection we're proxying for, we store the owned names in our own strv
so we can check against them.
* Walk the list of names to check which name would allow the message to
pass, and explicitly use that name as destination of the message. If the
destination is on kdbus, store both the connection's unique name and the
chosen well-known-name in the message. That way, the kernel will make sure
the supplied name is owned by the supplied unique name, at the time of
sending, and return -EREMCHG otherwise.
* Make the policy checks optional by retrieving the bus owner creds, and
when the uid matches the current user's uid and is non-null, don't check
the bus policy.
commit 0b906b8d6f901866046636e75e138348afb1d8c0
Author: Kay Sievers <kay at vrfy.org>
Date: Tue Nov 11 16:13:59 2014 +0100
build-sys: move libsystemd-capability into libsystemd-shared
commit 15e9297ebf73a0035f2e9be9a200e0e0cc34cd6e
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Tue Nov 11 15:36:00 2014 +0100
Revert "bus-proxyd: make policy checks optional"
This reverts commit 5bb24cccbce846c0d77e71b70a3be7f4b2ba6c0e.
It does not even compile (unbalanced {)
commit 5bb24cccbce846c0d77e71b70a3be7f4b2ba6c0e
Author: Daniel Mack <daniel at zonque.org>
Date: Thu Oct 23 13:06:38 2014 +0200
bus-proxyd: make policy checks optional
Retrieve the bus owner creds, and when the uid matches the current user's
uid and is non-null, don't check the bus policy.
commit 2a2be74654f0511220cf9a8a72f60ab5705abb87
Author: Daniel Mack <daniel at zonque.org>
Date: Thu Oct 9 13:26:53 2014 +0200
bus-proxyd: move name list iteration to policy users
We need to figure out which of the possible names satisfied the policy,
so we cannot do the iteration in check_policy_item() but have to leave it
to the users.
Test cases amended accordingly.
commit 9cd751d2d0310275b2020bbb32c5e3f61a3cd53b
Author: Daniel Mack <daniel at zonque.org>
Date: Wed Sep 24 17:50:31 2014 +0200
bus-proxyd: enforce policy for method calls
commit f0a4c7391c7c682b658974b82390d332197740e2
Author: Daniel Mack <daniel at zonque.org>
Date: Wed Sep 24 17:24:20 2014 +0200
bus-proxyd: enforce policy for name ownership
commit 8573b68fecc65a0cd285e4c5e288831856948e62
Author: Daniel Mack <daniel at zonque.org>
Date: Wed Sep 24 17:18:35 2014 +0200
bus-proxyd: enforce policy for Hello messages
commit ac4eaf6dd4e314515f3595c2838b2da3231fa357
Author: Daniel Mack <daniel at zonque.org>
Date: Wed Sep 24 17:10:31 2014 +0200
bus-proxyd: keep track of names acquired by legacy client
Store names successfully acquired by the legacy client into a hashmap.
We need to take these names into account when checking for send policies.
commit 022fb8558e797483709ab3e9fe846f04f7026dac
Author: Daniel Mack <daniel at zonque.org>
Date: Wed Oct 22 14:41:53 2014 +0200
sd-bus: add sd_bus_message.verify_destination_id and .destination_ptr
kdbus learned to accept both a numerical destination ID as well as a
well-known-name. In that case, kdbus makes sure that the numerical ID is in
fact the owner of the provided name and fails otherwise.
This allows for race-free assertion of a bus name owner while sending a
message, which is a requirement for bus-proxyd.
Add two new fields to sd_bus_message, and set the numerical ID to
verify_destination_id if bus_message_setup_kmsg() is called for a
message with a well-known name.
Also, set the destination's name in the kdbus item to .destination_ptr
if it is non-NULL.
Normal users should not touch these fields, and they're not publicy
accessible.
commit 7e27f3121e5a10629302b5221eb21345f832724a
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 10 23:45:31 2014 +0100
update TODO
commit f88e6be5ee31ff0e45fabcdedaf26d3be0d4817a
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 10 23:44:34 2014 +0100
strv: rework strv_split_quoted() to use unquote_first_word()
This should make the unquoting scheme a bit less naive.
commit 27e9c5af817147ea1c678769e45e83f2e4b4ae96
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 10 20:54:45 2014 +0100
bus: when dumping string property values escape the chars we use as end-of-line and end-of-item marks
commit c73d180dc4bbd87c945a524b42b672af2ffe2609
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sun Nov 9 15:51:04 2014 +0100
shared: explicitly ignore the return value of wait_for_terminate
CID#1237532
CID#1237523
CID#1237522
commit 39f76ad8d6df0f4c930cff7b080abfdff25c187b
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 10 20:16:16 2014 +0100
man: improve documentation for "indirect" unit file state a bit
Also, correct mentions of "units" instead of "unit files" in the table,
and terminate all sentences with a full stop.
commit aedd4012f437a0b08c34f40a5bb97b6e615ac074
Author: Jan Synacek <jsynacek at redhat.com>
Date: Fri Nov 7 21:21:05 2014 +0100
shared/install: when unit contains only Also=, report 'indirect'
If a unit contains only Also=, with no Alias= or WantedBy=, it shouldn't
be reported as static. New 'indirect' status shall be introduced.
https://bugzilla.redhat.com/show_bug.cgi?id=864298
commit f81e67f79fa856aa2ecffad4d014772ce981745c
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 10 19:25:16 2014 +0100
update TODO
commit d9130355ee0530117518ff24354bdd552d030238
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 10 19:24:48 2014 +0100
busctl: add "tree" command to explore object trees
commit ca5447c082347d611c52b22a0115d4efe2d2e0e8
Author: Mantas Mikulėnas <grawity at gmail.com>
Date: Fri Nov 7 16:45:53 2014 +0200
inhibit: allow filtering --list by mode
Usually there are a few delay inhibitors all the time (NetworkManager,
Telepathy, etc.), but I'm only interested in the block ones.
commit 657bf5a1629fd3ae54ba0f4836b722225d19578b
Author: Kay Sievers <kay at vrfy.org>
Date: Mon Nov 10 18:59:03 2014 +0100
build-sys: do not use "label" functions in libsystemd-shared
commit 87cfe63da10fda2bd5437920e0003a64d3b26047
Author: Kay Sievers <kay at vrfy.org>
Date: Mon Nov 10 18:22:44 2014 +0100
build-sys: test-fdset - add libsystemd-internal
commit 7680857ab80c012021b672aac920e0453b116460
Author: Kay Sievers <kay at vrfy.org>
Date: Mon Nov 10 17:32:29 2014 +0100
build-sys: add libcap to libsystemd-shared
commit ed80170d8381cb59d323414838f189cd0d200dad
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Mon Nov 10 14:54:57 2014 +0100
man: don't refer to undocumented option '--failed'
commit 036359ba8d0aba7db7eac75d10073a849a033fd1
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 10 14:44:35 2014 +0100
man: don't document systemctl --failed
This effectively reverts 599b6322f19ec619ddc294d0e7880b669040cf66, which
in turn partially reverted 4dc5b821ae737914499119e29811fc3346e3d97c.
The --failed switch is not documented on purpose, since it is redundant
due to --state=failed, which it predates. Due to that it's not
documented in --help either.
We generally try to avoid redundant interfaces, but if we need to keep
them for compatibility we do so, however remove them from documentation
to ensure they are not used in future.
The man page is now changed to include a comment about the fact that
--failed is not documented on purpose. Also, explicitly mention
--state=failed as example for --state.
commit 5445c7a002f885a16fe43e90bd33594496efdad8
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sat Nov 8 22:33:02 2014 +0100
build-sys: do not include tests in code coverage
commit 8444e49c99352959d8b453b32c98d455c4960f4e
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sat Nov 8 22:31:04 2014 +0100
update .gitignore
commit ad02805f85f600a9f1c5ffbf3527b8079d37656b
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sat Nov 8 22:05:29 2014 +0100
build-sys: link to libsystemd-core only when needed
Multiple executables do not need libsystemd-core
commit 0c2a5d721ece665618614d05049975ad84a9ee4a
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sat Nov 8 21:55:07 2014 +0100
core: remove unused macro GC_QUEUE_USEC_MAX
It is unused since cf1265e188e876dda906dca0029248a06dc80c33
commit b36bf0f3611f7845c08b1c553a57e6a6e400e75a
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sat Nov 8 21:11:19 2014 +0100
build-sys: avoid duplication of macro definition
TEST_DIR is already defined in AM_CFLAGS
commit bc9992978cd1456b5bb79e72e8cf7a2331d3a7c6
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Wed Nov 5 21:27:01 2014 +0100
tests: add test-path
It tests all available directives of Path units:
- PathChanged
- PathModified
- PathExists
- PathExisysGlob
- DirectoryNotEmpty
- MakeDirectory
- DirectoryMode
- Unit
commit ed7fb9cb235d2aedb755dcb8a5a5d9cdffba1519
Author: Rami Rosen <ramirose at gmail.com>
Date: Sat Nov 8 12:59:01 2014 +0200
network: fix typo
IFLA_IPTUN_LINK -> VETH_INFO_PEER
commit 599b6322f19ec619ddc294d0e7880b669040cf66
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Nov 7 18:11:53 2014 -0500
man: document --failed
https://bugs.debian.org/767267
commit 9a67bcf27554ee0688198e4d4eb5e541861bf7cb
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Nov 7 19:19:02 2014 +0100
shared: add readlink_value
Reads the basename of the target of a symlink.
commit f06863bde5de49a503cb8028e89d4b30790f2cbf
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 7 16:34:37 2014 +0100
sysusers: be nice and print a warning if futimens() fails
CID# 1251163
commit 144b3d9e093dd9310cd9590bec039dc43a7e2ad6
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 7 16:34:00 2014 +0100
utf8: when looking at the next unichar, honour the size parameter, in utf8_is_printable_newline()
commit f9aa5413807e163df49171793eb93a230cd7b955
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 7 16:33:03 2014 +0100
log: explicitly ignore return value of parse_proc_cmdline()
CID# 1251162
commit f0e62e89970b8c38eb07a9beebd277ce13a5fcc2
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 7 16:32:06 2014 +0100
core: unify how we create the notify and private dbus socket
Use the same robust logic of mkdir + unlink of any existing AF_UNIX
socket, ignoring the return value, right before bind().
commit d48b7bd271b1e70924c8485d2f95c2f5a1ae77cb
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 7 16:31:42 2014 +0100
update TODO
commit d82ad85cd935f92d7b8357e4649fc6b55db54e1b
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Nov 6 21:37:44 2014 -0500
man: update bootup(7) for asynchronous timers.target
commit 498e87d6b7ef025fef2e089931f355b5cd3c7dad
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 7 02:05:50 2014 +0100
manager: cast mkdir() result to (void) to make sure coverity is quiet
Also simplify the code a bit by moving mkdir to the common path.
commit 4e143738bf170be9f957c47605deea8c54b75fdf
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 7 02:01:47 2014 +0100
update TODO
commit f4934dfaaac70c6d0d49463af62cbd089bfa64c8
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 7 01:19:48 2014 +0100
util: simplify normalize_env_assignment() a bit
commit b5e1fad5b1b9d29694e8c51245821a732fc22f93
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 7 01:19:14 2014 +0100
util: file_is_priv_sticky() is used internally in util.c only nowadays, make it static
commit 25e14499c4c5b02229d05a5bc26c3693ade5f987
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 7 01:10:57 2014 +0100
update TODO
commit 779042e772d2459f7649b34a164902dc456f1bab
Author: Michael Chapman <mike at very.puzzling.org>
Date: Thu Nov 6 19:47:02 2014 +1100
timer: reenable TIMER_ACTIVE timers when restarted
A timer configured with OnActiveSec will start its associated unit again
if the timer is stopped, then started. However, if the timer unit is
restarted -- with "systemctl restart", say -- this does not occur.
This commit ensures that TIMER_ACTIVE timers are re-enabled whenever the
timer is started, even if that's within a restart job.
commit f32d2db140150b9d38684a699c9875b6e24ca27c
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Nov 7 00:10:24 2014 +0100
util: rework /proc/cmdline parser to use unquote_first_word()
commit b5884878a2874447b2a9f07f324a7cd909d96d48
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 6 21:53:34 2014 +0100
util: simplify proc_cmdline() to reuse get_process_cmdline()
Also, make all parsing of the kernel cmdline non-fatal.
commit f2997962ff8aeea577bed878d3bc4e4f64784e45
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 6 21:21:39 2014 +0100
fileio: simplify write_string_file_atomic() by reusing write_string_stream()
commit 84ee0960443b795936026239f8c0ff8429aed699
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 6 21:20:32 2014 +0100
copy: change error code when hitting copy limit to EFBIG
After all, this is about files, not arguments, hence EFBIG is more
appropriate than E2BIG
commit cda134ab1eac84f874aacf8e885a07112a7fd5ce
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 6 21:19:20 2014 +0100
copy: teach copy_bytes() sendfile() support, and then replace sendfile_full() by it
commit 0c2576ef74a9f9b96519cdcb7f9c01742d8255e2
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 6 21:11:10 2014 +0100
util: make use of isempty() where appropriate
commit 4b5d8d0f22ae61ceb45a25391354ba53b43ee992
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Thu Nov 6 22:24:13 2014 +0100
shutdown: fix arguments to /run/initramfs/shutdown
Our initrd interface specifies that the verb is in argv[1].
This is where systemd passes it to systemd-shutdown, but getopt
permutes argv[]. This confuses dracut's shutdown script:
Shutdown called with argument '--log-level'. Rebooting!
getopt can be convinced to not permute argv[] by having '-' as the first
character of optstring. Let's use it. This requires changing the way
non-option arguments (in our case, the verb) are processed.
This fixes a bug where the system would reboot instead of powering off.
commit a0132af247c4781bb821ab6b9e1e4f564f0c9fde
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 6 20:09:27 2014 +0100
update TODO
commit 81c7dd897c6af68e66b58e97abce676641edc197
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 6 20:06:30 2014 +0100
s/command-line/command line/g
A follow-up to:
commit 3f85ef0f05ffc51e19f86fb83a1c51e8e3cd6817
Author: Harald Hoyer <harald at redhat.com>
Date: Thu Nov 6 15:33:48 2014 +0100
s/commandline/command line/g
commit 8d07a7c47159ebc2bcc775e2c1997cb44bd1ac95
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 6 20:00:14 2014 +0100
machined: reorder method calls in vtable
commit 64e18fd626838c3500e28b4dbf86ed62206fff47
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 6 20:00:01 2014 +0100
switch-root: explain why we don't care about base_filesystem_create() failing
commit 2d58aa4692e9fc47911bff5d064ba3e328c35369
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Thu Nov 6 16:48:11 2014 +0100
shared: create files even if the SELinux policy has no context for them
The SELinux policy defines no context for some files. E.g.:
$ matchpathcon /run/lock/subsys /dev/mqueue
/run/lock/subsys <<none>>
/dev/mqueue <<none>>
We still need to be able to create them.
In this case selabel_lookup_raw() returns ENOENT. We should then skip
setfscreatecon(), but still return success.
It was broken since c34255bdb2 ("label: unify code to make directories,
symlinks").
commit 3f85ef0f05ffc51e19f86fb83a1c51e8e3cd6817
Author: Harald Hoyer <harald at redhat.com>
Date: Thu Nov 6 15:33:48 2014 +0100
s/commandline/command line/g
commit 6d0f91bf551464c57bc12f99deccd515fb3f628d
Author: Harald Hoyer <harald at redhat.com>
Date: Wed Sep 3 13:31:25 2014 +0200
switch_root: do not fail, if base_filesystem_create() failed
Not all switch roots are like base_filesystem_create() wants them
to look like. They might even boot, if they are RO and don't have the FS
layout. Just ignore the error and switch_root nevertheless.
base_filesystem_create() should have logged, what went wrong.
commit 2b671e9560d5a7e78374a33acfc7f089cfa05c2f
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 6 15:27:13 2014 +0100
README: mention that engineering services for systemd are available from endocode
commit 4a3ad39957399c4a30fc472a804e72907ecaa4f9
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 6 15:20:29 2014 +0100
systemctl: when invokes as "reboot -f", sync()
We do this in the clean shutdown path in shutdown.c, hence we should do
is for "reboot -f", too.
commit 25fa306ed58b0b7fe30ca9be37c66a7b3b2de70e
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 6 14:37:12 2014 +0100
hostnamed: introduce new "embedded" chassis type
We really don't want to get lost in adding fridge, car, plane, drone, or
whatever else, hence add a generic term "embedded" cover all the cases
where the computer is just part of something bigger, and not at the
focus of things.
commit 7fd682bbebabe140e0d07a468e8f87cde380b859
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 6 14:31:04 2014 +0100
update TODO
commit 134e56dcc53970a20a858283650bb92cd5da1d17
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 6 14:19:05 2014 +0100
shared: rename condition-util.[ch] to condition.[ch]
Now that we only have one file with condition implementations around, we
can drop the -util suffix and simplify things a bit.
commit 493657337ad8569e0998a3afa7d6fb357757364a
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 6 14:09:51 2014 +0100
core: get rid of condition.c and move the remaining call into util.c
That way only one file with condition code remaining, in src/shared/,
rather than src/core/.
Next step: dropping the "-util" suffix from condition-util.[ch].
commit c073a0c4a5ffbf6677dd6af02e7c7d59b2b901ab
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 6 14:00:05 2014 +0100
man: document that we don't document .include on purpose
<!-- xml comments are useful! -->
commit 90a2ec10f2d43a8530aae856013518eb567c4039
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 6 13:59:41 2014 +0100
man: don't document ConditionNull=/AssertNull= as the are not particularly useful and simply confusing
commit 651c33185eeb449385b471fffa8882a163c496f0
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 6 13:56:22 2014 +0100
condition: order condition types the same way in man page, enum, tables
Yes, sometimes I develop OCD.
commit 59fccdc587bc179c1638916ee16a24099f94f81f
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 6 13:43:45 2014 +0100
core: introduce the concept of AssertXYZ= similar to ConditionXYZ=, but fatal for a start job if not met
commit cc50ef134b4104cae8783a4ca40b1a70247e3ef9
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 6 02:27:10 2014 +0100
condition: record test state internally and beef it up to be a full enum
commit b80ba1da1c66f570c10a92a40f54a044fb865739
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 6 02:11:08 2014 +0100
condition: add more test cases
commit 124aff6251c095367ce1323a21fa23235cbb0490
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 6 02:10:56 2014 +0100
journal: adjust audit log messages a bit
commit a4705396adbf1a8a3e52ed133d9b1f12cb13e77e
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 6 02:02:13 2014 +0100
condition: internalize condition test functions
Also, implement the negation check inside of condition_test() instead of
individually in each test function.
commit d1bddcec98551ea748f39a742a4cbcf9ea9254ef
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 6 01:40:37 2014 +0100
condition: unify condition logic in one file
commit 592fd144ae313855f48d0ca52a103013b41e5d59
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 6 00:49:44 2014 +0100
condition: properly allow passing back errors from condition checks
commit 58f2fab16da947052756b7f9ace40f6ee7fa1519
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Nov 6 08:15:48 2014 -0500
units: restore job timeouts for poweroff and reboot
It seems that there actually aren't any long running tasks which are
performed at shutdown. If it turns out that there actually are, this
should be revisited.
This reverts most of commit 038193efa6.
commit f6ba8671d83f9fce9a00045d8fa399a1c07ba7fc
Author: Ray Strode <rstrode at redhat.com>
Date: Wed Nov 5 08:30:52 2014 -0500
login: rerun vconsole-setup when switching from vgacon to fbcon
The initialization performed by systemd-vconsole-setup is reset
when changing console drivers (say from vgacon to fbcon), so we
need to run it in that case.
See
http://lists.freedesktop.org/archives/systemd-devel/2014-October/023919.html
http://lists.freedesktop.org/archives/systemd-devel/2014-October/024423.html
http://lists.freedesktop.org/archives/systemd-devel/2014-November/024881.html
This commit adds a udev rule to make systemd-vconsole-setup get run when
the fbcon device becomes available.
(david: moved into new file 90-vconsole.rules instead of 71-seats.rules;
build-failures are on me, not on Ray)
commit 038193efa6c00e852110f17383ef2786136f4f81
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Nov 5 09:16:58 2014 -0500
units: disable job timeouts
For boot, we might kill fsck in the middle, with likely catastrophic
consequences.
On shutdown there might be other jobs, like downloading of updates for
installation, and other custom jobs. It seems better to schedule an
individual timeout on each one separately, when it is known what
timeout is useful.
Disable the timeouts for now, until we have a clearer picture of how
we can deal with long-running jobs.
commit 8232e39e7cf32071e11b3b04839e6c98fbc81d0f
Author: Colin Guthrie <colin at mageia.org>
Date: Wed Nov 5 15:29:41 2014 +0000
udev hwdb: Change error message regarding missing hwdb.bin back to debug.
When used in an initramfs, it's expected that the hwdb.bin file is
not present (it makes for a very large initramfs otherwise).
While it's nice to tell the user about this, as it's not strictly
speaking an error we really shouldn't be so forceful in our
reporting.
commit 4a6ca457eb6186addcd84a6a5e5948016202235a
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 5 19:44:01 2014 +0100
util: minor modernisations
commit 07318c290884824dd19f41beefb46aeaaabab46c
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 5 19:43:55 2014 +0100
condition: rewrite condition_test_kernel_command_line() based on unquote_first_word()
commit d5ce1cfce46b9cf4e990acdcbae367785a56ed5e
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Nov 5 19:32:46 2014 +0100
sd-pppoe: spelling
Thanks to Daniele Medri
commit 6f5c810ad6ef3f09e250dd08d49569fbbf4a762b
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 5 18:54:50 2014 +0100
sd-bus: by default allow all creds to be passed along
commit a931ad47a8623163a29d898224d8a8c1177ffdaf
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Nov 5 17:57:23 2014 +0100
core: introduce new Delegate=yes/no property controlling creation of cgroup subhierarchies
For priviliged units this resource control property ensures that the
processes have all controllers systemd manages enabled.
For unpriviliged services (those with User= set) this ensures that
access rights to the service cgroup is granted to the user in question,
to create further subgroups. Note that this only applies to the
name=systemd hierarchy though, as access to other controllers is not
safe for unpriviliged processes.
Delegate=yes should be set for container scopes where a systemd instance
inside the container shall manage the hierarchies below its own cgroup
and have access to all controllers.
Delegate=yes should also be set for user at .service, so that systemd
--user can run, controlling its own cgroup tree.
This commit changes machined, systemd-nspawn at .service and user at .service
to set this boolean, in order to ensure that container management will
just work, and the user systemd instance can run fine.
commit c962cb68d5754690cbe924a0d0b4251053217783
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Nov 4 20:19:07 2014 +0100
libsystemd-network: don't use unaligned helpers in _packed_ structs
The compiler will do this for us.
commit 617e79465249e694d697fd78704571b3d00338c8
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Nov 4 19:52:04 2014 +0100
shared: unaligned - use void* instead of unaligned be16_t*
commit 9eec671331adeb3f9a81b390758000364388a042
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Nov 4 16:21:41 2014 +0100
sd-pppoe: whitespace
commit 61c81750217af7492be86adde81b28e310cd5e82
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Nov 4 16:20:22 2014 +0100
test: hashmap-plain - make coverity happy
Check return value of hashmap_ensure_allocated().
CID#1250807.
commit 696c24fced77b152dda45f0bdbcf6411849bd8ab
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Nov 4 16:19:26 2014 +0100
test: fileio - make coverity happy
Explicitly check the length of the read.
Fixes CID#1250803.
commit 7c63b23f499069b7bbdf5e74d3e7a622918341e9
Author: Tom Gundersen <teg at jklm.no>
Date: Tue Nov 4 16:13:43 2014 +0100
shared: ptyfwd - make coverity happy
Explicitly ignore return value of ioctl to set window size.
Fixes CID#1250804 and CID#1250800.
commit 0c3f25e0c1f028d4da9cc5253abf0322230e6835
Author: Colin Guthrie <colin at mageia.org>
Date: Sun Nov 2 13:33:16 2014 +0000
manager: Ensure user's systemd runtime directory exists.
This mirrors code in dbus.c when creating the private socket and
avoids error messages like:
systemd[1353]: bind(/run/user/603/systemd/notify) failed: No such file or directory
systemd[1353]: Failed to fully start up daemon: No such file or directory
commit d704fda9347f3019fd2a14881bcb6df640c36a80
Author: Daniel Mack <daniel at zonque.org>
Date: Wed Nov 5 14:32:48 2014 +0100
sd-bus: sync up with new kdbus metadata attachment logic (ABI break)
The metadata logic in kdbus has seen a rework, and the only mandatory
change we have to follow for now is that attach_flags in kdbus_cmd_hello
is now split into two parts, attach_flags_send and attach_flags_recv.
commit cfe2061add5479710f6597899d632e64c54e62ef
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Wed Nov 5 12:56:49 2014 +0100
udev: avoid magic constants in kernel-cmdline parsers
Lets recognize the fact that startswith() returns a pointer to the tail on
success. Use it instead of hard-coding string-lengths as magic constants.
commit f671774f52838d35d78e62ddcb781b5b65b3373f
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Tue Nov 4 23:45:15 2014 +0000
udev: Fix parsing of udev.event-timeout kernel parameter.
commit 01acf6c3b7390e8c47b7a5cd7cae4bcbd2846634
Author: Cristian Rodríguez <crrodriguez at opensuse.org>
Date: Tue Nov 4 20:48:08 2014 -0300
buildsys: test-util needs -lm for fabs()
commit a87a38c20196a4aeb56b6ba71d688eefd0b21c30
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Tue Nov 4 20:28:08 2014 +0100
units: make systemd-journald.service Type=notify
It already calls sd_notify(), so it looks like an oversight.
Without it, its ordering to systemd-journal-flush.service is
non-deterministic and the SIGUSR1 from flushing may kill journald before
it has its signal handlers set up.
https://bugs.freedesktop.org/show_bug.cgi?id=85871
https://bugzilla.redhat.com/show_bug.cgi?id=1159641
commit ff8d1aba5378949c352147cf348aaeafd7221716
Author: Jan Synacek <jsynacek at redhat.com>
Date: Tue Nov 4 13:38:59 2014 +0100
man/tmpfiles.d: fix typo
commit a0617aa5d770f6d95fe9454b2c4c848319c6ea2f
Author: Kay Sievers <kay at vrfy.org>
Date: Tue Nov 4 19:07:30 2014 +0100
TODO: update
commit db74cc0d4748f08d2c7c2e9cf82dce9ffce9c36b
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 4 18:52:31 2014 +0100
util: when sealing memfds, also use F_SEAL_SEAL
Let's be strict here, since its better to be safe than sorry.
commit 936c200f6cc62f62f347b0e3cbfbf2355a44a17c
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 4 18:51:37 2014 +0100
update TODO
commit 57f2a947270faf65e1876797b930e3f6d60ebd06
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 4 17:54:40 2014 +0100
update TODO
commit f7fce3454c221fd1fff51528d028576d1cb1c7b6
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 4 17:24:30 2014 +0100
sd-bus: rename sd_bus_get_server_id() to sd_bus_get_owner_id()
In kdbus a "server id" is mostly a misnomer, as there isn't any "server"
involved anymore. Let's rename this to "owner" id hence, since it is an
ID that is picked by the owner of a bus or direct connection. This
matches nicely the sd_bus_get_owner_creds() call we already have.
commit f4b2933ee7890e5d414ab266d8586f19027a2bd9
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 4 16:58:42 2014 +0100
sd-bus,sd-event: unify error handling of object descriptions
a) When getting the description return ENXIO if none is set
b) Allow setting a description to NULL
c) return ECHILD on fork() like for other calls
commit d1b91c99d9241f7f79756a42f845cf35992888cd
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 4 16:58:15 2014 +0100
sd-bus: make use of free_and_strdup() where it makes sense
commit 9cbfc66c621c42aa6e58e9e0da0adfb01efa7537
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 4 16:57:38 2014 +0100
sd-bus: also allow setting descriptions on bus slots
commit f1f00dbb7f3741b30d4a26b1a8b65ec46ff1fde3
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 4 16:34:20 2014 +0100
sd-event: implicitly set signal event source's descriptions to the signal name
commit 356779df90a2ecab5da2cb310ad0f8ebc9ca9f46
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 4 16:27:05 2014 +0100
sd-event: rename sd_event_source_set_name() to sd_event_source_get_name()
To mirror the recent name change of the concept for sd_bus objects,
follow the same logic for sd_event_source objects, too.
commit e80afdb3e4a1239ce0bffa4215d6a227caf3d833
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Tue Nov 4 17:04:16 2014 +0100
test: use assert_se in test_hashmap_move
commit 455971c1493fc6dc3125d235cf4ea6102cac626d
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 4 16:13:49 2014 +0100
sd-bus: rename "connection name" to "description" for the sd-bus API too
kdbus recently renamed this concept, and so should we in what we expose
in userspace.
commit 635f9f0d95d1cc460f2c59a8fe26ecc358420544
Author: Daniel Mack <daniel at zonque.org>
Date: Tue Nov 4 12:08:36 2014 +0100
sd-bus: sync kdbus.h (ABI break)
Catch up with some changes in kdbus.h:
* KDBUS_{ITEM,ATTACH}_CONN_NAME were renamed to
KDBUS_{ITEM,ATTACH}_CONN_DESCRIPTION, so the term 'name' is not
overloaded as much.
* The item types were re-ordered a little so they are lined up to the
order of the corresponding KDBUS_ATTACH flags
* A new item type KDBUS_ITEM_OWNED_NAME was introduced, designated to
store a struct kdbus_name in item->name. KDBUS_ITEM_NAME soley
stores data in item->str now
* Some kerneldoc fixes
commit dfb05a1cf5479e6949d2413a633431c64d006ff2
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Tue Nov 4 09:49:43 2014 +0100
barrier: explicitly ignore return values of barrier_place()
The barrier implementation tracks remote states internally. There is no
need to check the return value of any barrier_*() function if the caller
is not interested in the result. The barrier helpers only return the state
of the remote side, which is usually not interesting as later calls to
barrier_sync() will catch this, anyway.
Shut up coverity by explicitly ignoring return values of barrier_place()
if we're not interested in it.
commit 44dd2c6e861316d26a78848eb0f6b35bd3b82d4b
Author: David Herrmann <dh.herrmann at gmail.com>
Date: Mon Nov 3 18:23:28 2014 +0100
util: introduce negative_errno()
Imagine a constructor like this:
int object_new(void **out) {
void *my_object;
int r;
...
r = ioctl(...);
if (r < 0)
return -errno;
...
*out = my_object;
return 0;
}
We have a lot of those in systemd. If you now call those, gcc might inline
the call and optimize it. However, gcc cannot know that "errno" is
negative if "r" is. Therefore, a caller like this will produce warnings:
r = object_new(&obj);
if (r < 0)
return r;
obj->xyz = "foobar";
In case the ioctl in the constructor fails, gcc might assume "errno" is 0
and thus the error-handling is not triggered. Therefore, "obj" is
uninitialized, but accessed. Gcc will warn about that.
The new negative_errno() helper can be used to mitigate those warnings.
The helper is guaranteed to return a negative integer. Furthermore, it
spills out runtime warnings if "errno" is non-negative.
Instead of returning "-errno", you can use:
return negative_errno();
gcc will no longer assume that this can return >=0, thus, it will not warn
about it.
Use this new helper in libsystemd-terminal to fix some grdev-drm warnings.
commit e6c019026b8cfd27a997e6e6ed1349f8f289b7e2
Author: Vicente Olivert Riera <Vincent.Riera at imgtec.com>
Date: Mon Nov 3 14:48:35 2014 +0000
Properly define the __NR_memfd_create macro for MIPS
This macro exists for MIPS since v3.17:
https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/commit/?id=42944521af97a3b25516f15f3149aec3779656dc
commit 31cf921abbeafc9dae2d5c777f3e2285e6f4c19d
Author: Jan Synacek <jsynacek at redhat.com>
Date: Mon Nov 3 14:01:04 2014 +0100
localectl: fix localectl set-x11-keymap syntax description
This complements the fix in:
commit cd4c6fb12598435fe24431f1dd616f9582f0e3bd
Author: Jan Synacek <jsynacek at redhat.com>
Date: Mon Oct 20 12:43:39 2014 +0200
man: fix localectl set-x11-keymap syntax description
commit 25b3245fb483e52766867dfe33ce271011caaca9
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 4 01:00:50 2014 +0100
journald: include audit message type number in MESSAGE= string
commit 9833a66c7eba011c3740867c80133bc6fa976aa3
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 4 00:48:32 2014 +0100
journal: also consider audit fields with '-' valid
commit 0aa281df2c5f56623abddf25d6bcdb82b641aeb2
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 4 00:47:44 2014 +0100
audit: improve the audit messages we generate
always pass along comm, as documented by audit. Always set the correct
comm value.
commit 0b97208d8c39131f8a7cfcfccb5c40b86af44ee5
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 4 00:32:02 2014 +0100
journald: don't pass around SO_TIMESTAMP timestamp for audit, which we don't have anyway
commit 1248e84008028ae54326c565fcc65dcbce3556ad
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 4 00:28:33 2014 +0100
journal: when dumping log data with missing COMM fields, show "unknown" instead
A small readability improvement...
commit 5034c7bcdfc4493ed3c30722e9d897c8da78fede
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 4 00:27:55 2014 +0100
journald: suppress low-level audit text prefix in MESSAGE= field
Let's make the log output more readable, and the header can be
reconstructed in full from the other fields
commit 78fe420ff0bb4cd94de3c4d3f15a3021cc3e2878
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 4 00:27:26 2014 +0100
journald: properly decode audit's proctitle= field
commit 4d9ced9956755901238fede6fc5a3d7e4e816aa6
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Nov 4 00:01:32 2014 +0100
journald: enable audit in the kernel when initializing
Similar to auditd actually turn on auditing as we are starting. This way
we can operate entirely without auditd around.
commit 2b0073e1d2fb0611733e0b83bd41cc753b254593
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 3 23:28:12 2014 +0100
journald: there's no point in turning on SO_TIMESTAMP for audit sockets, audit doesn't support timestamps anyway
commit 29a6c2d02088ff0b5da51b4d9ffe714b106de2f1
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 3 23:10:47 2014 +0100
update TODO
commit 26d8ff04914a5208d029e899682cd314b7714bf0
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 3 23:10:34 2014 +0100
journald: fix memory leak on error path
commit 332076b45b8a78f018ade2dfdc7e4279a56d49cc
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 3 23:10:21 2014 +0100
journald: also check journal file size to deduce if it is empty
commit dbd2a83fbf051fc51bdca3aa7536c78479488c5b
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 3 23:08:33 2014 +0100
journalctl: add new --vacuum-size= and --vacuum-time= commands to clean up journal files based on a size/time limit
This is equivalent to the effect of SystemMaxUse= and RetentionSec=,
however can be invoked directly instead of implicitly.
commit a6e841b454e076ecbab6abc0bceb85ed06fd5c70
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 3 22:02:23 2014 +0100
man: document audit input for journald
commit d5d78543a2174a6bae349080ed3bcfdac5610b48
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 3 21:11:49 2014 +0100
units: make ReceiveBuffer= line more readable by using M suffix
commit 99d0966e75a984bed4f117c888ecc93e16e7b7b6
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 3 21:11:16 2014 +0100
journald: fix minor memory leak
commit cfb1f5df7ce6868d3edb7333591b91c9809d64d3
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 3 21:09:38 2014 +0100
core: introduce ConditionSecurity=audit
And conditionalize journald audit support with it
commit 875c2e220e2611165e09051c4747971811f1de58
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 3 20:58:24 2014 +0100
journald: if available pull audit messages from the kernel into journal logs
commit 8457f8d6ac7adc6c6ef31378e6e7761cce522141
Author: Lennart Poettering <lennart at poettering.net>
Date: Mon Nov 3 20:24:43 2014 +0100
journald: remove a number of malloc()s from the syslog message handling
commit 3b3154df7e2773332bb814e167187367a0ccae4a
Author: Lennart Poettering <lennart at poettering.net>
Date: Sun Nov 2 21:46:42 2014 +0100
journald: constify all things!
commit f49481d0ca170ea567b46fde6c1c089b1dbb49cb
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Nov 3 15:58:30 2014 +0100
man: sd_event_add_post - fix typo
commit aa9c4134edcf25b5838d469c4ea069188815fe4f
Author: Tom Gundersen <teg at jklm.no>
Date: Mon Nov 3 14:45:21 2014 +0100
man: glib-event-glue.c - remove unnecessary includes
This is just an example, so no error-handling is done here anyway.
commit e8f826f660be22540a84b0ba2947f1eedd7d61d8
Author: Lukas Nykryn <lnykryn at redhat.com>
Date: Mon Nov 3 12:31:58 2014 +0100
sd-pppoe: include ppp_defs.h
On older kernels before this patch:
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=e8b671460410c8fd996c8a1c228b718c547cc236
ppp-ioctl.h did not pull in ppp_defs.h which results in build errors
commit 1f1926aa5e836caa3bd6df43704aecd606135103
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Nov 2 21:45:42 2014 -0500
units: order sd-journal-flush after sd-remount-fs
Otherwise we could attempt to flush the journal while /var/log/ was
still ro, and silently skip journal flushing.
The way that errors in flushing are handled should still be changed to
be more transparent and robust.
commit 3b0217036040a6013faeab4eb9da7469e3bbcfb3
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Nov 2 11:39:17 2014 -0500
unit: do not order timers.target before basic.target
Since commit 19f8d037833f2 'timer: order OnCalendar units after
timer-sync.target if DefaultDependencies=no' timers might get a
dependency on time-sync.target, which does not really belong in early
boot. If ntp is enabled, time-sync.target might be delayed until a
network connection is established.
It turns out that majority of timer units found in the wild do not
need to be started in early boot. Out of the timer units available in
Fedora 21, only systemd-readahead-done.timer and mdadm-last-resort at .timer
should be started early, but they both have DefaultDependencies=no,
so are not part of timers.target anyway. All the rest look like they
will be fine with being started a bit later (and the majority even
much later, since they run daily or weekly).
Let timers.target be pulled in by basic.target, but without the
temporal dependency. This means timer units are started on a "best
effort" schedule.
https://bugzilla.redhat.com/show_bug.cgi?id=1158206
commit 56dacdbc1ca95cef8bf8c97c0d7af761a71eaab3
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Nov 2 12:19:38 2014 -0500
manager: do not print timing when running in test mode
commit 14fe721b5f6d8457cc8737fa75f2ed79e7fa534b
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sun Nov 2 12:10:42 2014 -0500
Raise level of 'Found dependency...' lines
This way they always show up together with 'Found ordering cycle...'.
Ordering cycles are a serious error and a major pain to debug. If
quiet is enabled, only the first and the last line of output are
shown:
systemd[1]: Found ordering cycle on basic.target/start
systemd[1]: Breaking ordering cycle by deleting job timers.target/start
systemd[1]: Job timers.target/start deleted to break ordering cycle starting with basic.target/start
which isn't particularly enlightening. So just show the whole message
at the same level.
https://bugzilla.redhat.com/show_bug.cgi?id=1158206
commit 8cd80c94a5780651f6e7a4a97a3e3111dbd88682
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Nov 1 23:53:25 2014 +0100
sd-pppoe: fix some leaks
commit cda391c3f9c85578f4a4fe81d4aeb785a785000a
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Oct 31 00:02:57 2014 +0100
libsystemd-networkd: introduce sd-pppoe library
This library negotiates a PPPoE channel. It handles the discovery stage and
leaves the session stage to the kernel. A further PPP library is needed to
actually set up a PPP unit (negotatie LCP, IPCP and do authentication), so in
isolation this is not yet very useful.
The test program has two modes:
# ./test-pppoe
will create a veth tunnel in a new network namespace, start pppoe-server on one
end and this client library on the other. The pppd server will time out as no
LCP is performed, and the client will then shut down gracefully.
# ./test-pppoe eth0
will run the client on eth0 (or any other netdev), and requires a PPPoE server
to be reachable on the local link.
commit ea55caa60c6860e33fa4f1a216c003ff666e9c68
Author: Colin Walters <walters at verbum.org>
Date: Sat Nov 1 15:49:53 2014 -0400
libudev: Use correct free function
FILE * wants cleanup_fclose().
Spotted by udev hwdb segfaulting in gnome-continuous' buildroot
construction.
commit 85f13fce322e6303e7e4e55cb43104f81827f36b
Author: Joe Lawrence <joe.lawrence at stratus.com>
Date: Sat Nov 1 12:18:08 2014 -0400
scsi_id: fix usage spelling
s/threat/treat/g
commit b43434e94e84572ed8aff179c294e6b26b63e218
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Nov 1 15:37:16 2014 -0400
TODO
commit c008f6ee8df9aa36782378d1a3767543b3635a54
Author: Michael Chapman <mike at very.puzzling.org>
Date: Wed Oct 29 11:54:07 2014 +1100
kernel-install/90-loaderentry.install: fix cmdline parsing
A recent commit (2f3a215) changed the parsing of /proc/cmdline to use a
shell array. Unfortunately, this introduced a bug: "read -ar line"
populates the shell variable $r, not $line. This breaks installation of
new loader entries:
# kernel-install add 3.17.1-304.fc21.x86_64 \
/boot/vmlinuz-3.17.1-304.fc21.x86_64
Could not determine the kernel command line parameters.
Please specify the kernel command line in /etc/kernel/cmdline!
This commit alters the read command to correctly populate the $line
array instead.
commit a65b82457735df2ef58736a55846f400124a8dc0
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Nov 1 13:52:14 2014 -0400
systemd-journal-flush.service: remove "trigger" from description
This service is now synchronous, so "trigger" is misleading.
commit 2a97b03b3b087e724867e7501ae0c1535ee35031
Author: Umut Tezduyar Lindskog <umut.tezduyar at axis.com>
Date: Wed Oct 29 11:20:02 2014 +0100
man: explain journalctl --flush correctly
commit 311f6cf33f6fd50921540875c3e6eb1ffd339124
Author: WaLyong Cho <walyong.cho at samsung.com>
Date: Thu Oct 30 15:45:15 2014 +0900
bus: use STR_IN_SET
commit 86fb9ca7ae49790880d4b3ce523988b01b13d9ae
Author: Jan Synacek <jsynacek at redhat.com>
Date: Fri Oct 31 10:16:45 2014 +0100
core: improve error message when machine id is missing
commit 393b6f28ecec537f05567c4ec8af8c499d0ea226
Author: Dan Williams <dcbw at redhat.com>
Date: Fri Oct 31 12:20:21 2014 -0500
sd-dhcp6-client: fix off-by-two error in DUID length
The duid data passed by the caller does not include the DUID type,
but sd_dhcp6_client_set_duid() was treating it like it did.
commit 489464d0a2afa82b5db01535be3ea09ab3e71014
Author: Daniele Medri <dmedri at gmail.com>
Date: Thu Oct 30 12:19:14 2014 +0100
calendarspec: add constant for weekdays_bits
commit e03234a16047dc635d13f7118fc9fcf243744b51
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Nov 1 14:36:29 2014 -0400
man: describe all log levels in udevadm(8)
https://bugs.freedesktop.org/show_bug.cgi?id=85657
commit f47ad59316ddbfce0b24edac752222d300ed0da4
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Nov 1 14:33:01 2014 -0400
Use log "level" instead of "priority"
The term "priority" is misleading because higher levels have lower
priority. "Level" is clearer and shorter.
This commit touches only the textual descriptions, not function and variable
names themselves. "Priority" is used in various command-line switches and
protocol constants, so completly getting rid of "priority" is hard.
I also left "priority" in various places where the clarity suffered
when it was removed.
commit ee7122c0ec6aa11f02e9e8d94254b353f12d2c14
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Nov 1 12:06:41 2014 -0400
libudev: do not accept invalid log levels
Invalid log levels lead to a assert failure later on.
https://bugs.freedesktop.org/show_bug.cgi?id=85657
commit fe756ed9ec2c0fa33c30b1d9a33d745dc1593aed
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Sat Nov 1 11:32:44 2014 -0400
libudev: modernization
This brings udev logging style a bit closer to normal systemd convention.
commit 1caa12d0a8a818d5f2545aab809b3fdfec73871d
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Nov 1 19:02:44 2014 +0100
sd-dhcp-lease: use shared default prefixlen function
Also change the default prefixlen function to only access the first octet of the in_addr.
commit bab47929613f9e930dd241a01483b37d14b59c69
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Nov 1 18:59:55 2014 +0100
sd-dhcp-lease: use unaligned read helpers
commit 4903a73c37d444261c0a6b362e1c27e58100ea72
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Nov 1 14:32:28 2014 +0100
dhcp6: use unaligned read/write helpers
commit 725ca0e53a5a1e4093c494623253a2f312c02bc0
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Nov 1 14:07:42 2014 +0100
resolved: dns-packet - use unaligned read/write helpers
commit f089257d7b573dcff409a5fb0b140fa5c6e4ca84
Author: Tom Gundersen <teg at jklm.no>
Date: Sat Nov 1 14:04:17 2014 +0100
shared: add helpers for unaligend BE read/write
commit 5d20fde4a5c4dff4d7c737b545fbd13582d544c1
Author: Marcel Holtmann <marcel at holtmann.org>
Date: Fri Oct 31 20:37:59 2014 +0100
hwdb: Update database of Bluetooth company identifiers
commit 023fb90b83871a15ef7f57e8cd126e3426f99b9e
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 31 16:54:11 2014 +0100
ptyforward: rework PTY forwarder logic used by nspawn to utilize the normal event loop
We really should not run manual event loops anymore, but standardize on
sd_event, so that we can run sd_bus connections from it eventually.
commit fedfcdee6f55c3f183752b7fac4879bf41eed60b
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Oct 31 10:07:54 2014 -0400
Make bus errno mappings non-static
__attribute__((used)) is not enough to force static variables to
be carried over to a compiled program from a library. Mappings defined
in libsystemd-shared.a were not visible in the compiled binaries.
To ensure that the mappings are present in the final binary, the
tables are made non-static and are given a real unique name by which
they can be referenced.
To use a mapping defined not in the local compilation unit (e.g. in
a library) a reference to the mapping table is added. This is done
by including a declaration in the header file.
Expected values in test-engine are fixed to reflect the new mappings.
commit 5e071f200c4cc86443af07a876ee0e1c2901fda1
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Fri Oct 31 09:31:02 2014 -0400
bus: do not segfault on zeros in errno mapping table
Depending on the link order, holes might appear in the body of
the sd_bus_errnomap section. Ignore them.
Adds a simple test to print the table to help with debugging such
issues in the future.
commit 919699ec301ea507edce4a619141ed22e789ac0d
Author: Lennart Poettering <lennart at poettering.net>
Date: Fri Oct 31 16:22:36 2014 +0100
units: don't order journal flushing afte remote-fs.target
Instead, only depend on the actual file systems we need.
This should solve dep loops on setups where remote-fs.target is moved
into late boot.
commit fddbb89c46ea5d39e52e361b390ea34a06cbb67c
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 30 20:53:23 2014 +0100
nspawn: don't make up -1 as error code
commit 0ffce503cd6e5a5ff5ba5cd1cc23684cfb8bb9e3
Author: Dave Reisner <dreisner at archlinux.org>
Date: Thu Oct 30 20:12:05 2014 -0400
shared/install: avoid prematurely rejecting "missing" units
f7101b7368df copied some logic to prevent enabling masked units, but
also added a check which causes attempts to enable templated units to
fail. Since we know the logic beyond this check will properly handle
units which truly do not exist, we can rely on the unit file state
comparison to suffice for expressing the intent of f7101b7368df.
ref: https://bugs.archlinux.org/task/42616
commit 6bcf0cf60c7cbfec2a733a28c7fd31ddf4a0024d
Author: Tom Gundersen <teg at jklm.no>
Date: Fri Oct 31 11:22:46 2014 +0100
sd-bus: add missing include
commit 641d1f99b8c4c5427a1fedcb4740586a130ac6cf
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Wed Oct 29 22:28:50 2014 +0100
tests: add test-copy
commit 5895b62f1da8db93677d2bc369dff34fcaa97f91
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Wed Oct 22 00:58:24 2014 +0200
tests: add tests for path_startswith
commit d3774a1b15ea86f6156269e7ed813830f0c4abb8
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Thu Oct 16 23:22:06 2014 +0200
shared: fix typo
commit 17c6bd5222c7d05cd4f577ac131a448307605b00
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sun Oct 12 18:11:15 2014 +0200
tests: add missing entry for LocalVariable to test-tables
commit 2b89a960604d44ea1483c0d99bfb567dab9c3aa1
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sun Oct 12 18:05:10 2014 +0200
tests: add test-locale-util
commit 81a12ba6ec2f8514b7d35f0c39a96cc74bb14019
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sun Oct 12 17:59:03 2014 +0200
shared: add missing includes
commit 7bd57a87aded06c9812119c4f99d4c22e35e77be
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Sun Oct 12 17:32:23 2014 +0200
tests: add tests for strv.c
add tests for:
- strv_find_startswith
- strv_push_prepend
- strv_consume_prepend
commit cb607ecb84b3cb7299438ca6f7fab705b0a6de45
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Thu Sep 25 22:46:37 2014 +0200
remove references of readahead
commit e07995a3e23cdadb8a24d47de03f1a3d319763f9
Author: Ronny Chevalier <chevalier.ronny at gmail.com>
Date: Tue Sep 2 18:55:31 2014 +0200
tests: add tests for fileio.c
add tests for the following functions:
- write_string_file_no_create
- load_env_file_pairs
commit affaa94fc38a980a70534f70f6a6c58a4129b062
Author: Dan Williams <dcbw at redhat.com>
Date: Thu Oct 30 14:23:00 2014 -0500
sd-dhcp-client: clean up raw socket sd_event_source when creating new UDP socket
The raw socket sd_event_source used for DHCP server solicitations
was simply dropped on the floor when creating the new UDP socket
after a lease has been acquired. Clean it up properly so we're
not still listening and responding to events on it.
commit 7cabba07745b388497e8c0fc19b61984167fd474
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Tue Oct 28 12:36:17 2014 -0400
snapshot: return error when snapshot exists
commit 7358dc029ab8cb8f9d83eb847389d84f822ccfe8
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Oct 30 20:32:17 2014 -0400
Convert the rest to sd_bus_errnomap
I tried to preserve most errno values, but in some cases they were
inconsistent (different errno values for the same error name) or just
mismatched.
commit 4a0a74179fcfb85c456794fd91fa2ae5d4d3bc8f
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Oct 30 20:31:48 2014 -0400
bus: add sd_bus_errnomap section
This allows custom "name" ↔ errno mappings to be registered.
Tables from all compilation units are concatenated.
commit e1323fbfbe8a574f28b704f2df8ce7f99e3a28f5
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Oct 15 01:35:40 2014 +0200
test: test a corner case in hashmap_remove_and_replace()
commit 994701548d3ea6aafe3d9c47d51f701878118d65
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Oct 15 01:34:15 2014 +0200
configure.ac: add --enable-hashmap-debug option
The option simply enables hashmap debugging by defining
ENABLE_HASHMAP_DEBUG.
I suggest developing new code with it enabled, to have the iterator checks.
commit 2ea8c08306c7e33f8217a878cf990fc491c9432c
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Oct 15 01:31:23 2014 +0200
tools: add gdb command to dump hashmap information
$ sudo gdb -p 1
...
(gdb) source gdb-sd_dump_hashmaps.py
(gdb) sd_dump_hashmaps
... lists allocated hashmaps ...
(gdb) sd_dump_hashmaps 1
... lists allocated hashmaps, their DIB histograms and contiguous
blocks statistics ...
commit 89439d4fc0d29f04ac68432fd06ab84bc4e36e20
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Oct 15 01:27:16 2014 +0200
hashmap: rewrite the implementation
This is a rewrite of the hashmap implementation. Its advantage is lower
memory usage.
It uses open addressing (entries are stored in an array, as opposed to
linked lists). Hash collisions are resolved with linear probing and
Robin Hood displacement policy. See the references in hashmap.c.
Some fun empirical findings about hashmap usage in systemd on my laptop:
- 98 % of allocated hashmaps are Sets.
- Sets contain 78 % of all entries, plain Hashmaps 17 %, and
OrderedHashmaps 5 %.
- 60 % of allocated hashmaps contain only 1 entry.
- 90 % of allocated hashmaps contain 5 or fewer entries.
- 75 % of all entries are in hashmaps that use trivial_hash_ops.
Clearly it makes sense to:
- store entries in distinct entry types. Especially for Sets - their
entries are the most numerous and they require the least information
to store an entry.
- have a way to store small numbers of entries directly in the hashmap
structs, and only allocate the usual entry arrays when the direct
storage is full.
The implementation has an optional debugging feature (enabled by
defining the ENABLE_HASHMAP_DEBUG macro), where it:
- tracks all allocated hashmaps in a linked list so that one can
easily find them in gdb,
- tracks which function/line allocated a given hashmap, and
- checks for invalid mixing of hashmap iteration and modification.
Since entries are not allocated one-by-one anymore, mempools are not
used for entries. Originally I meant to drop mempools entirely, but it's
still worth it to use them for the hashmap structs. My testing indicates
that it makes loading of units about 5 % faster (a test with 10000 units
where more than 200000 hashmaps are allocated - pure malloc: 449±4 ms,
mempools: 427±7 ms).
Here are some memory usage numbers, taken on my laptop with a more or
less normal Fedora setup after booting with SELinux disabled (SELinux
increases systemd's memory usage significantly):
systemd (PID 1) Original New Change
dirty memory (from pmap -x 1) [KiB] 2152 1264 -41 %
total heap allocations (from gdb-heap) [KiB] 1623 756 -53 %
commit ce79279bff6e7a1a17070509a039ab635796f129
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Oct 15 11:28:23 2014 +0200
test: adjust max load factor in test_hashmap_many()
A reimplementation of hashmaps will follow and it will use 0.8.
commit 52fc5ce38c871e8d75392592919c66ab7f7575dd
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Fri Oct 24 15:30:18 2014 +0200
mempool: add a zeroing alloc function
Add mempool_alloc0_tile(). It's like mempool_alloc_tile(), but it
initializes the allocated tile's memory to zero.
commit b5de6d984296c9446ba0d2d32fd3248f453208aa
Author: Michal Schmidt <mschmidt at redhat.com>
Date: Wed Oct 15 01:28:54 2014 +0200
util: add log2u(), log2u_round_up()
Two's logarithms for unsigned.
commit a09abc4ae0bdc0200324eaa0416f23ff2170ec4e
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 30 18:32:37 2014 +0100
memfd: rename memfd.h to memfd-util.h to avoid any confusion with any libc provided headers
commit 73843b52585d42cc1a970a1c664818ece6942e9e
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 30 18:28:37 2014 +0100
memfd: always use our internal utility functions where we have them
commit 47f0f4eb1d79ec37dfbe6a382817c0384b106373
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 30 18:28:01 2014 +0100
memfd: drop memfd_get_name() as it is unused
commit f6721176284fe49b1beb146c70379cd1f2b17852
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 30 17:39:29 2014 +0100
update TODO
commit c79e98eadd3056a36a662699fa650db5b1bca0c3
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 30 17:36:02 2014 +0100
journal: when sending huge log messages prefer memfds over temporary files in /dev/shm
Previously when a log message grew beyond the maximum AF_UNIX/SOCK_DGRAM
datagram limit we'd send an fd to a deleted file in /dev/shm instead.
Because the sender could still modify the file after delivery we had to
immediately copy the data on the receiving side.
With memfds we can optimize this logic, and also remove the dependency
on /dev/shm: simply send a sealed memfd around, and if we detect the
seal memory map the fd and use it directly.
commit dd4540da0e1f983540d862cc657df7161a3bdd06
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 30 17:05:25 2014 +0100
CODING_STYLE: clarify that we really should use O_CLOEXEC everywhere
commit 45071fcaa03eafc27352987fa2277b2792725036
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 30 16:23:34 2014 +0100
memfd: always create our memfds with CLOEXEC set
We really shouldn't create fds ever that have the flag unset.
commit ef309a681f4c761503e4cd4cc6884d7d6ef70436
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 30 15:35:37 2014 +0100
util: unify how we see srand()
commit 97768fc5746ea97cb2d3ac6854b4fc7ce1c14f24
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 30 15:27:53 2014 +0100
util: don't block on getrandom()
commit e3c72c21d62aadabf4df436c3e2c7219eeeccc1c
Author: Colin Guthrie <colin at mageia.org>
Date: Wed Oct 29 14:03:41 2014 +0000
sysusers: Preserve ownership and mode on /etc/passwd and friends
When running sysusers we would clobber file ownership and permissions
on the files /etc/passwd, /etc/group and /etc/[g]shadow.
This simply preserves the ownership and mode if existing files are
found.
commit aba248ee6b1eb10baf3d89eca2ad7569459af6ab
Author: Hans de Goede <hdegoede at redhat.com>
Date: Thu Oct 30 10:15:54 2014 +0100
keymap: Ignore brightness keys on Dell Inspiron 1520 to avoid double events
On the Dell Inspiron 1520 both the atkbd and acpi-video input devices report
an event for pressing the brightness up / down key-combos, resulting in user
space seeing double events and increasing / decreasing the brightness 2 steps
for each keypress.
This hwdb snippet suppresses the atkbd events, making the Inspiron 1520 work
like most modern laptops which emit brightness up / down events through
acpi-video only.
Reported by Pavel Malyshev <p.malishev at gmail.com>
https://bugzilla.redhat.com/show_bug.cgi?id=1141525
commit 81333ecf9d5497f8aa95f7fec23c67b869d5abf9
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Oct 29 23:47:55 2014 -0400
zsh-completion: update start/restart completions
Now zsh should behave the same for those two subcommands as bash.
commit 372b221166eb586c4f767969f442ed940e21f353
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Oct 29 23:06:58 2014 -0400
bash-completion: use improved filtering to make things faster
commit fec1530e6b5b8d6dc352c7338010357126e84621
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Oct 29 22:51:00 2014 -0400
systemctl: obey --state in list-unit-files
commit 6c71341aeecc3d092ed90f66e1b2c481b8e260ff
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Oct 29 22:46:30 2014 -0400
systemctl: let list-{units,unit-files } honour --type
The docs don't clarify what is expected, but I don't see any reason
why --type should be ignored.
Also restucture the compund conditions into separate clauses for
easier reading.
commit 9ff8af5460d57dfab78a1137ec743b539715e82a
Author: Zbigniew Jędrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Wed Oct 29 22:25:33 2014 -0400
bash-completion: rework startable/restartable units once more
I tried to use 'systemctl --all list-units' to filter unit files, but
this always filters out unit files which are not loaded. We want to complete
systemctl start with those units too, so this approach is not going to work.
New version is rather slow, but hopefully correct.
commit 74a550c5d8228e58b936dd70e183f633bf373632
Author: Dave Reisner <dreisner at archlinux.org>
Date: Wed Oct 29 20:30:25 2014 -0400
missing.h: fix wrong __NR_getrandom syscall def
278 is vmsplice on x86_64. 318 is what we want:
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/x86/syscalls/syscall_64.tbl
commit a42cdff19f2d34f12ceca0f40707421a8aaa2c2f
Author: Kay Sievers <kay at vrfy.org>
Date: Thu Oct 30 01:18:34 2014 +0100
udev: path_id - update comments
commit 1f70b0876a9388f38422c12fa0c73761559d9425
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Oct 30 01:13:11 2014 +0100
busctl: add new "capture" verb to record bus messages in libpcap compatible files, for dissection with wireshark
commit 1ab19cb167b32967556eefd8f6d3df0e3de7d67d
Author: Dave Reisner <dreisner at archlinux.org>
Date: Wed Oct 29 13:32:43 2014 -0400
nspawn: ignore EEXIST when creating mount point
A combination of commits f3c80515c and 79d80fc14 cause nspawn to
silently fail with a commandline such as:
# systemd-nspawn -D /build/extra-x86_64 --bind=/usr
strace shows the culprit:
[pid 27868] writev(2, [{"Failed to create mount point /build/extra-x86_64/usr: File exists", 82}, {"\n", 1}], 2) = 83
commit ef7b6c0190fefaacf6d8f8e1a6dda4ba8b98091b
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Oct 29 17:58:43 2014 +0100
sd-bus: properly handle removals of non-existing matches
commit 793062063a27039584e9a6f968007b1e5436fc03
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Oct 29 17:08:18 2014 +0100
missing: no tabs please, we are british
commit f85857df75cfedbc0d10b8ca2400188dc8f4c22e
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Oct 29 17:08:00 2014 +0100
update TODO
commit b244d9f374d607abfb24489593b4b7b6ce716cd4
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Oct 29 17:07:47 2014 +0100
missing: simplify memfd ifdeffery
commit 539618a0ddc2dc7f0fbe28de2ae0e07b34c81e60
Author: Lennart Poettering <lennart at poettering.net>
Date: Wed Oct 29 17:06:32 2014 +0100
util: make use of the new getrandom() syscall if it is available when needing entropy
Doesn't require an fd, and could be a bit faster, so let's make use of
it, if it is available.
commit d0159fdc7a1009027f019f763106aa13256cf030
Author: Susant Sahani <susant at redhat.com>
Date: Mon Jul 21 13:32:09 2014 +0530
sd-rtnl: add bridge port rtnl attributes.
Add bridge port attributes to sd-rtnl to configure
via networkd.
commit 64c8407133fdc1887785789d0fe574bc21035433
Author: Susant Sahani <susant at redhat.com>
Date: Mon Jul 21 13:15:38 2014 +0530
sd-rtnl: add support to set packet family type
This patch adds functionality to set family type
in the rtnl message for example PF_BRIDGE.
commit fcf81a54a4a01349cbc75a9f04d49c6084c4f624
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Oct 29 10:52:07 2014 +0100
sd-rtnl: mark nested attributes with the NLA_F_NESTED flag
The kernel mostly does not check this, but let's be consisntent and allways set it anyway. Based
on patch from Susant Sahani.
commit 0a2478a918763f73de5d1b78ebb1023c31042583
Author: Tom Gundersen <teg at jklm.no>
Date: Wed Oct 29 10:50:33 2014 +0100
sd-rtnl: fix reading of nla type
We must filter out the 'network-byteorder' and 'nested' flags.
commit 9243e967a370a9e69b0a81843288a9db3e2dfc62
Author: Susant Sahani <susant at redhat.com>
Date: Tue Jul 22 16:51:53 2014 +0530
networkd: add Patch of MTU discovery for IPIP and GRE
Add path of MTU disovery for IPIP and GRE Kind of tunnels
commit 436b910f1f4f5700f72fd4332f5b615497dcc27e
Author: Susant Sahani <susant at redhat.com>
Date: Tue Jul 22 16:46:39 2014 +0530
networkd: add back path of MTU discovery for SIT
commit c4ac990007cd0069bb7e76ec15dd731320f382fd
Author: Lennart Poettering <lennart at poettering.net>
Date: Tue Oct 28 20:36:32 2014 +0100
NEWS: well, it's Options= now, not Discard=
More information about the systemd-commits
mailing list