chiark / gitweb /
7 years agobuild-sys: turn off SMACK capabilities stuff for now, since it is incompatible with...
Lennart Poettering [Wed, 10 Dec 2014 21:10:46 +0000 (22:10 +0100)]
build-sys: turn off SMACK capabilities stuff for now, since it is incompatible with nspawn

7 years agoupdate TODO
Lennart Poettering [Wed, 10 Dec 2014 21:08:49 +0000 (22:08 +0100)]
update TODO

7 years agoscope: make attachment of initial PIDs a bit more robust
Lennart Poettering [Wed, 10 Dec 2014 21:06:44 +0000 (22:06 +0100)]
scope: make attachment of initial PIDs a bit more robust

7 years agocore: don't migrate PIDs for units that may contain subcgroups, do this only for...
Lennart Poettering [Wed, 10 Dec 2014 19:38:24 +0000 (20:38 +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.

7 years agoupdate TODO
Lennart Poettering [Wed, 10 Dec 2014 18:57:52 +0000 (19:57 +0100)]
update TODO

7 years agocore: properly pass unit file state to clients via the bus
Lennart Poettering [Wed, 10 Dec 2014 18:57:45 +0000 (19:57 +0100)]
core: properly pass unit file state to clients via the bus

7 years agobuild-sys: fix link-order
Kay Sievers [Wed, 10 Dec 2014 18:46:00 +0000 (19:46 +0100)]
build-sys: fix link-order

7 years agoupdate TODO
Lennart Poettering [Wed, 10 Dec 2014 18:07:32 +0000 (19:07 +0100)]
update TODO

7 years agosd-bus: make BUS_ERROR_MAP_ELF_USE() use a const variable
Lennart Poettering [Wed, 10 Dec 2014 18:06:43 +0000 (19:06 +0100)]
sd-bus: make BUS_ERROR_MAP_ELF_USE() use a const variable

7 years agonetworkd: rename section [BridgePort] → [Bridge]
Lennart Poettering [Wed, 10 Dec 2014 18:03:08 +0000 (19:03 +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.

7 years agosd-bus: move common errors src/shared/bus-errors.h → src/libsystemd/sd-bus/bus-common...
Lennart Poettering [Wed, 10 Dec 2014 18:00:46 +0000 (19:00 +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.

7 years agonetworkd-dhcp6: Support ICMPv6 Other information
Patrik Flykt [Wed, 10 Dec 2014 14:17:35 +0000 (16:17 +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.

7 years agonetworkd-dhcp6: Move ICMPv6 and DHCPv6 configuration to new file
Patrik Flykt [Wed, 10 Dec 2014 14:17:34 +0000 (16:17 +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.

7 years agotest-dhcp6-client: Add a simple Information Request test case
Patrik Flykt [Wed, 10 Dec 2014 14:17:33 +0000 (16:17 +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.

7 years agosd-dhcp6-client: Implement Information Request message
Patrik Flykt [Wed, 10 Dec 2014 14:17:32 +0000 (16:17 +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.

7 years agosd-dhcp6-lease: Return only -EINVAL when a NULL lease is supplied
Patrik Flykt [Wed, 10 Dec 2014 14:17:31 +0000 (16:17 +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

7 years agosd-dhcp6-client: Make end of successfull option parsing explicit
Patrik Flykt [Wed, 10 Dec 2014 14:17:30 +0000 (16:17 +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.

7 years agohwdb: fix typo
Torstein Husebø [Wed, 10 Dec 2014 16:41:54 +0000 (17:41 +0100)]
hwdb: fix typo

7 years agohwdb: add two more mice to the DPI database
Lennart Poettering [Wed, 10 Dec 2014 16:38:47 +0000 (17:38 +0100)]
hwdb: add two more mice to the DPI database

7 years agohwdb: add another Logitech mouse (M-BZ96C)
Lennart Poettering [Wed, 10 Dec 2014 14:59:38 +0000 (15:59 +0100)]
hwdb: add another Logitech mouse (M-BZ96C)

7 years agoTODO
Lennart Poettering [Wed, 10 Dec 2014 14:46:28 +0000 (15:46 +0100)]

7 years agoman: improve docs for systemd-modules-load.service
Lennart Poettering [Wed, 10 Dec 2014 14:46:22 +0000 (15:46 +0100)]
man: improve docs for systemd-modules-load.service

7 years agohwdb: add DPI data for M325 mouse
Lennart Poettering [Wed, 10 Dec 2014 14:46:08 +0000 (15:46 +0100)]
hwdb: add DPI data for M325 mouse

7 years agotest: fix some tests when running inside a container
Jan Synacek [Wed, 10 Dec 2014 09:20:11 +0000 (10:20 +0100)]
test: fix some tests when running inside a container

7 years agovirt: when detecting containers and /run/systemd/container cannot be read, check...
Lennart Poettering [Wed, 10 Dec 2014 12:23:49 +0000 (13:23 +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.

7 years agosystemctl: fix invalid free when enabling sysv services fails
Zbigniew Jędrzejewski-Szmek [Tue, 9 Dec 2014 19:41:24 +0000 (14:41 -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.

7 years agoima-setup: simplify
Zbigniew Jędrzejewski-Szmek [Tue, 2 Dec 2014 01:47:37 +0000 (20:47 -0500)]
ima-setup: simplify

7 years agotreewide: sanitize loop_write
Zbigniew Jędrzejewski-Szmek [Tue, 2 Dec 2014 01:43:19 +0000 (20:43 -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.

7 years agokdbus: downgrade warning if we cannot patch kdbus attach mask to DEBUG if kdbus is...
Lennart Poettering [Wed, 10 Dec 2014 02:25:48 +0000 (03:25 +0100)]
kdbus: downgrade warning if we cannot patch kdbus attach mask to DEBUG if kdbus is not available

7 years agoutil: introduce our own gperf based capability list
Lennart Poettering [Wed, 10 Dec 2014 02:16:14 +0000 (03:16 +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.

7 years agoupdate TODO
Lennart Poettering [Wed, 10 Dec 2014 01:36:42 +0000 (02:36 +0100)]
update TODO

7 years agobuild-sys: fix CLEANFILES= for dns_type list
Lennart Poettering [Wed, 10 Dec 2014 01:36:35 +0000 (02:36 +0100)]
build-sys: fix CLEANFILES= for dns_type list

7 years agomount: clarify that we really need to replace the utab inotify code with the native...
Lennart Poettering [Wed, 10 Dec 2014 00:47:59 +0000 (01:47 +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

7 years agocore: unify how we iterate over inotify events
Lennart Poettering [Wed, 10 Dec 2014 00:45:43 +0000 (01:45 +0100)]
core: unify how we iterate over inotify events

Let's add some syntactic sugar for iterating through inotify events, and
use it everywhere.

7 years agomount: use bools where appropriate
Lennart Poettering [Tue, 9 Dec 2014 23:52:56 +0000 (00:52 +0100)]
mount: use bools where appropriate

7 years agocatalog: fix typos in the French translation
Ronny Chevalier [Wed, 10 Dec 2014 00:33:08 +0000 (01:33 +0100)]
catalog: fix typos in the French translation

7 years agoshell-completion: systemctl edit
Ronny Chevalier [Wed, 10 Dec 2014 00:10:01 +0000 (01:10 +0100)]
shell-completion: systemctl edit

7 years agoNEWS: fix typos
Ronny Chevalier [Tue, 9 Dec 2014 23:50:24 +0000 (00:50 +0100)]
NEWS: fix typos

7 years agogitignore: hide some more files
Lennart Poettering [Tue, 9 Dec 2014 23:49:35 +0000 (00:49 +0100)]
gitignore: hide some more files

7 years agohwdb: update PCI, USB, OUI databases
Lennart Poettering [Tue, 9 Dec 2014 23:46:33 +0000 (00:46 +0100)]
hwdb: update PCI, USB, OUI databases

7 years agobuild-sys: don't fail if CAP_SETFCAP is missing
Lennart Poettering [Tue, 9 Dec 2014 23:40:23 +0000 (00:40 +0100)]
build-sys: don't fail if CAP_SETFCAP is missing

7 years agohwdb: add more mouse DPI entries
Peter Hutterer [Sun, 7 Dec 2014 23:17:26 +0000 (09:17 +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.

7 years agoNEWS: add contributors list
Lennart Poettering [Tue, 9 Dec 2014 23:30:19 +0000 (00:30 +0100)]
NEWS: add contributors list

7 years agoNEWS: prepare NEWS for new release
Lennart Poettering [Tue, 9 Dec 2014 23:27:26 +0000 (00:27 +0100)]
NEWS: prepare NEWS for new release

7 years agonspawn: create the macvlan MAC addresses in an arch independent stable way
Lennart Poettering [Tue, 9 Dec 2014 23:26:16 +0000 (00:26 +0100)]
nspawn: create the macvlan MAC addresses in an arch independent stable way

7 years agojournal: optimize iteration: skip files that cannot improve current candidate entry
Michal Schmidt [Tue, 9 Dec 2014 19:27:26 +0000 (20:27 +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.

$ time ./journalctl --since=2014-06-01 --until=2014-07-01 > /dev/null

real    0m20.518s
user    0m19.989s
sys     0m0.328s

$ time ./journalctl --since=2014-06-01 --until=2014-07-01 > /dev/null

real    0m9.445s
user    0m9.228s
sys     0m0.213s

7 years agojournal: optimize iteration: skip whole files behind current location
Michal Schmidt [Tue, 9 Dec 2014 19:27:19 +0000 (20:27 +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:

$ time ./journalctl --since=2014-06-01 --until=2014-07-01 > /dev/null

real    5m54.258s
user    2m4.263s
sys     3m48.965s

$ 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.

7 years agonetworkd: remove unused variable
Thomas Hindoe Paaboel Andersen [Tue, 9 Dec 2014 19:50:37 +0000 (20:50 +0100)]
networkd: remove unused variable

It is no longer used after 45af44d47da6933b260c734ad9ff721f63f80a4d

7 years agounit: update unit dropin paths and time when dropin file is written.
WaLyong Cho [Tue, 9 Dec 2014 12:46:30 +0000 (21:46 +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

7 years agobus-proxy: cloning smack label
Przemyslaw Kedzierski [Tue, 9 Dec 2014 11:17:24 +0000 (12:17 +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@.service file
and setting cap_mac_admin+ei on bus-proxyd binary.

7 years agorun: introduce timer support option
WaLyong Cho [Tue, 9 Dec 2014 07:07:16 +0000 (16:07 +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.

7 years agoupdate TODO
Lennart Poettering [Tue, 9 Dec 2014 17:17:35 +0000 (18:17 +0100)]
update TODO

7 years agosd-bus: get rid of PID starttime concept
Lennart Poettering [Tue, 9 Dec 2014 17:16:54 +0000 (18:16 +0100)]
sd-bus: get rid of PID starttime concept

As kdbus no longer exports this, remove all traces from sd-bus too

7 years agosd-bus: properly support passing memfds around with offset/size parameters
Lennart Poettering [Tue, 9 Dec 2014 17:07:46 +0000 (18:07 +0100)]
sd-bus: properly support passing memfds around with offset/size parameters

7 years agobus: sync with kdbus-git (ABI break)
David Herrmann [Tue, 9 Dec 2014 10:12:41 +0000 (11:12 +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.

7 years agolibsystemd-network: fix writing of routes in dhcp lease file
Dan Winship [Tue, 18 Nov 2014 13:59:42 +0000 (08:59 -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.

7 years agosleep: drop redundant MESSAGE= prefix
Lennart Poettering [Tue, 9 Dec 2014 02:58:20 +0000 (03:58 +0100)]
sleep: drop redundant MESSAGE= prefix

7 years agoupdate TODO
Lennart Poettering [Tue, 9 Dec 2014 02:58:10 +0000 (03:58 +0100)]
update TODO

7 years agojournalctl: respect --after-cursor semantics with --follow in all cases
Wesley Dawson [Mon, 1 Dec 2014 07:27:00 +0000 (23:27 -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.

7 years agocore: rename unit_destroy_cgroup() to unit_destroy_cgroup_if_empty() since it's not...
Lennart Poettering [Tue, 9 Dec 2014 01:31:42 +0000 (02:31 +0100)]
core: rename unit_destroy_cgroup() to unit_destroy_cgroup_if_empty() since it's not quite as destructive as it sounds nowadays

7 years agocgroup: Handle error when destroying cgroup
Ross Lagerwall [Sat, 29 Nov 2014 15:27:14 +0000 (15:27 +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).

7 years agofstab-generator: Allow mount.usr without mount.usrflags, honor rw/ro
Michael Marineau [Mon, 8 Dec 2014 19:05:31 +0000 (11:05 -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.

7 years agofstab-generator: free all allocated strings
Lennart Poettering [Tue, 9 Dec 2014 01:22:44 +0000 (02:22 +0100)]
fstab-generator: free all allocated strings

7 years agounits: make sure container-getty@.service stops restarting when the pts device it...
Lennart Poettering [Tue, 9 Dec 2014 01:12:11 +0000 (02:12 +0100)]
units: make sure container-getty@.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.

7 years agoupdate TODO
Lennart Poettering [Tue, 9 Dec 2014 01:05:19 +0000 (02:05 +0100)]
update TODO

7 years agonspawn: make sure macvlan MAC addresses are stable
Lennart Poettering [Tue, 9 Dec 2014 00:20:09 +0000 (01:20 +0100)]
nspawn: make sure macvlan MAC addresses are stable

7 years agosd-rtnl: fix size check in sd_rtnl_message_append_string()
Lennart Poettering [Tue, 9 Dec 2014 00:09:21 +0000 (01:09 +0100)]
sd-rtnl: fix size check in sd_rtnl_message_append_string()

7 years agoupdate TODO
Lennart Poettering [Mon, 8 Dec 2014 23:08:31 +0000 (00:08 +0100)]
update TODO

7 years agosd-bus: catch up with current kdbus, don't do matches on kdbus monitor connections
Lennart Poettering [Mon, 8 Dec 2014 23:01:36 +0000 (00:01 +0100)]
sd-bus: catch up with current kdbus, don't do matches on kdbus monitor connections

7 years agoupdate TODO
Lennart Poettering [Mon, 8 Dec 2014 22:52:08 +0000 (23:52 +0100)]
update TODO

7 years agobus-proxy: fix compat with autostarted services
Lennart Poettering [Mon, 8 Dec 2014 22:47:19 +0000 (23:47 +0100)]
bus-proxy: fix compat with autostarted services

7 years agoload-fragment: remove wrong ifdef guard
Zbigniew Jędrzejewski-Szmek [Mon, 8 Dec 2014 22:24:34 +0000 (17:24 -0500)]
load-fragment: remove wrong ifdef guard

config_parse_warn_compat is now always used for removed options.

7 years agonetworkd: manager - enumerate addresses globally, rather than per-link
Tom Gundersen [Mon, 8 Dec 2014 18:54:06 +0000 (19:54 +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.

7 years agojournal: Fix navigating backwards missing entries
Olivier Brunel [Fri, 5 Dec 2014 15:06:45 +0000 (16:06 +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.

7 years agonetworkd: link - typo
Tom Gundersen [Mon, 8 Dec 2014 17:36:49 +0000 (18:36 +0100)]
networkd: link - typo

7 years agosd-rtnl: fix bogus warning about dropping 20 bytes from multi-part messages
Tom Gundersen [Mon, 8 Dec 2014 17:36:16 +0000 (18:36 +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.

7 years agonetworkd: route - ignore unknown address family
Tom Gundersen [Mon, 8 Dec 2014 12:58:48 +0000 (13:58 +0100)]
networkd: route - ignore unknown address family

7 years agoudev: link-config - simplify net-match
Tom Gundersen [Sun, 7 Dec 2014 12:00:01 +0000 (13:00 +0100)]
udev: link-config - simplify net-match

7 years agoCheck return value from reading name_assign_type attr
Dave Reisner [Sat, 6 Dec 2014 18:34:27 +0000 (13:34 -0500)]
Check return value from reading name_assign_type attr

This file won't exist on kernels earlier than 3.17.

7 years agonetworkd: update manpage for optional Gateway=
Mantas Mikulėnas [Mon, 8 Dec 2014 11:53:30 +0000 (13:53 +0200)]
networkd: update manpage for optional Gateway=

Following commit 59580681f5f.

7 years agotimer: timer can be a transient unit
WaLyong Cho [Mon, 8 Dec 2014 15:03:53 +0000 (00:03 +0900)]
timer: timer can be a transient unit

7 years agobus: StartTransientUnit can have aux unit
WaLyong Cho [Mon, 8 Dec 2014 15:03:52 +0000 (00:03 +0900)]
bus: StartTransientUnit can have aux unit

7 years agoupdate TODO
Lennart Poettering [Sat, 6 Dec 2014 01:41:03 +0000 (02:41 +0100)]
update TODO

7 years agosd-bus: rework ELF error mapping table magic
Lennart Poettering [Sat, 6 Dec 2014 01:39:15 +0000 (02:39 +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.

7 years agoremove duplicated includes
Thomas Hindoe Paaboel Andersen [Sat, 6 Dec 2014 08:43:31 +0000 (09:43 +0100)]
remove duplicated includes

7 years agonet_setup/networkd: warn if matching is done on possibly unstable ifname
Tom Gundersen [Fri, 5 Dec 2014 14:56:10 +0000 (15:56 +0100)]
net_setup/networkd: warn if matching is done on possibly unstable ifname

7 years agoupdate TODO
Lennart Poettering [Fri, 5 Dec 2014 13:09:33 +0000 (14:09 +0100)]
update TODO

7 years agoman: fix reference to obsolete command "systemctl dump"
Felipe Sateler [Fri, 5 Dec 2014 13:08:38 +0000 (14:08 +0100)]
man: fix reference to obsolete command "systemctl dump"

7 years agosd-bus: follow kdbus changes (ABI break)
Daniel Mack [Fri, 5 Dec 2014 09:03:00 +0000 (10:03 +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

7 years agocryptsetup-generator: Add support for naming luks devices on kernel cmdline
Jan Janssen [Tue, 2 Dec 2014 17:49:30 +0000 (18:49 +0100)]
cryptsetup-generator: Add support for naming luks devices on kernel cmdline

7 years agocryptsetup-generator: Add support for UUID-specific key files on kernel command line
Jan Janssen [Tue, 2 Dec 2014 17:49:29 +0000 (18:49 +0100)]
cryptsetup-generator: Add support for UUID-specific key files on kernel command line

7 years agocryptsetup-generator: Split main() into more functions and use hasmaps
Jan Janssen [Tue, 2 Dec 2014 17:49:28 +0000 (18:49 +0100)]
cryptsetup-generator: Split main() into more functions and use hasmaps

7 years agoman: there's actually no "fail" fstab option, but only "nofail"
Lennart Poettering [Thu, 4 Dec 2014 23:47:38 +0000 (00:47 +0100)]
man: there's actually no "fail" fstab option, but only "nofail"

7 years agonetworkd: add basic [Link] settings to .network files
Tom Gundersen [Thu, 4 Dec 2014 20:57:13 +0000 (21:57 +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.

7 years agogitignore: ignore generated systemd-bootchart.service
WaLyong Cho [Thu, 4 Dec 2014 03:46:06 +0000 (12:46 +0900)]
gitignore: ignore generated systemd-bootchart.service

7 years agosd-bus: add extra assert check
Lennart Poettering [Thu, 4 Dec 2014 19:30:46 +0000 (20:30 +0100)]
sd-bus: add extra assert check

7 years agotmpfiles, man: Add xattr support to tmpfiles
Maciej Wereski [Thu, 4 Dec 2014 09:32:10 +0000 (10:32 +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:


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.

D /var/run/cups - - - -
t /var/run/cups - - - - security.SMACK64=printing

7 years agomissing: define NET_NAME_UNKNOWN
Colin Walters [Thu, 4 Dec 2014 18:12:40 +0000 (13:12 -0500)]
missing: define NET_NAME_UNKNOWN

It's only exposed to userspace since

  commit 685343fc3ba61a1f6eef361b786601123db16c28
  Author:     Tom Gundersen <>
  AuthorDate: Mon Jul 14 16:37:22 2014 +0200
  Commit:     David S. Miller <>
  CommitDate: Tue Jul 15 16:12:01 2014 -0700

to the kernel.

7 years agoudev: net_setup - allow matching on OriginalName=
Tom Gundersen [Thu, 4 Dec 2014 17:12:55 +0000 (18:12 +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:



Which means that the link file will be applied the first time it is invoked, but
not on subsequent invocations, which may be surprising.

7 years agomissing: apparently, there's a world beyond x86..
David Herrmann [Thu, 4 Dec 2014 15:45:00 +0000 (16:45 +0100)]
missing: apparently, there's a world beyond x86.. 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.