]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
7 years agorun: also pin unit when we we are in --pty mode 5494/head
Lennart Poettering [Tue, 28 Feb 2017 17:27:42 +0000 (18:27 +0100)] 
run: also pin unit when we we are in --pty mode

Since 95f1d6bfecde60b245fae1ab0313b550201e7880 we'll subscribe to unit
signals to figure out when to disconnect the pty. But that can only work
correctly if we actually subscribe to the unit's signals. Hence,
explicitly pin (and thus subscribe to) the unit we just created not only
in --wait mode but also in --pty mode.

Or to say this differently: we need to pin the unit in the same cases as
we install the signal match. 95f1d6bfecde60b245fae1ab0313b550201e7880
forgot to do that.

This is relevant to make sure systemd-run works correctly in --user
mode, and correctly exits when the spawned service dies. To test:

systemd-run --user -t /bin/bash

And then press ^D. This will hang before this change, but exit cleanly
after it.

7 years agocore: always consider clients that pinned a unit to be subscribers
Lennart Poettering [Tue, 28 Feb 2017 16:55:57 +0000 (17:55 +0100)] 
core: always consider clients that pinned a unit to be subscribers

If a client pins a unit, then it makes sense to also implicitly make it
a subscriber. This is useful for clients that just want to watch one
specific unit: they can pin it and receive its messages.

7 years agoupdate TODO
Lennart Poettering [Tue, 28 Feb 2017 16:22:14 +0000 (17:22 +0100)] 
update TODO

7 years agosystemctl: fix bad memory access when mangle_names() fails (#5485)
Lennart Poettering [Tue, 28 Feb 2017 15:55:18 +0000 (16:55 +0100)] 
systemctl: fix bad memory access when mangle_names() fails (#5485)

Fixes #5483

7 years agoMerge pull request #5491 from poettering/hwdb-update-v233
Martin Pitt [Tue, 28 Feb 2017 15:52:46 +0000 (16:52 +0100)] 
Merge pull request #5491 from poettering/hwdb-update-v233

hwbd: update once again for 233

7 years agoservice: refuse using PID 1 as MAINPID for a service 5493/head
Lennart Poettering [Tue, 28 Feb 2017 15:08:40 +0000 (16:08 +0100)] 
service: refuse using PID 1 as MAINPID for a service

7 years agoservice: make use of log_unit_warning_errno()'s return value
Lennart Poettering [Tue, 28 Feb 2017 15:08:21 +0000 (16:08 +0100)] 
service: make use of log_unit_warning_errno()'s return value

7 years agocore: use PID_FMT where appropriate
Lennart Poettering [Tue, 28 Feb 2017 15:07:56 +0000 (16:07 +0100)] 
core: use PID_FMT where appropriate

7 years agoupdate TODO
Lennart Poettering [Tue, 28 Feb 2017 14:24:10 +0000 (15:24 +0100)] 
update TODO

7 years agoupdate TODO 5491/head
Lennart Poettering [Tue, 28 Feb 2017 14:20:22 +0000 (15:20 +0100)] 
update TODO

7 years agoMerge pull request #5464 from ssahani/label
Lennart Poettering [Tue, 28 Feb 2017 14:11:57 +0000 (15:11 +0100)] 
Merge pull request #5464 from ssahani/label

socket-util: introduce address_label_valid

7 years agoMerge pull request #5484 from dvdhrm/convertible
Lennart Poettering [Tue, 28 Feb 2017 14:11:36 +0000 (15:11 +0100)] 
Merge pull request #5484 from dvdhrm/convertible

hostname: support 'convertible' chassis

7 years agohwbd: update once again for 233
Lennart Poettering [Tue, 28 Feb 2017 14:07:49 +0000 (15:07 +0100)] 
hwbd: update once again for 233

7 years agoMerge pull request #5438 from ssahani/vxlan-address
Lennart Poettering [Tue, 28 Feb 2017 11:32:18 +0000 (12:32 +0100)] 
Merge pull request #5438 from ssahani/vxlan-address

networkd: add symlinks for Makefile (netdev and wait-online) , vxlan enhancements.

7 years agonetworkd: use address_label_valid for label validation 5464/head
Susant Sahani [Tue, 28 Feb 2017 11:24:33 +0000 (16:54 +0530)] 
networkd: use address_label_valid for label validation

7 years agosocket-util: introduce address_label_valid
Susant Sahani [Tue, 28 Feb 2017 11:23:58 +0000 (16:53 +0530)] 
socket-util: introduce address_label_valid

7 years agohostname: detect convertible dmi chassis type 5484/head
David Herrmann [Tue, 28 Feb 2017 10:58:14 +0000 (11:58 +0100)] 
hostname: detect convertible dmi chassis type

Detect the 'Convertible' dmi chassis type properly. Use the new
'convertible' chassis class of hostnamed, instead of returning the
generic 'computer' chassis class.

Based on a patch by Jani Nikula <jani.nikula@intel.com>.

7 years agohostname: add 'convertible' chassis type
David Herrmann [Tue, 28 Feb 2017 10:54:52 +0000 (11:54 +0100)] 
hostname: add 'convertible' chassis type

Add the 'convertible' type to the set of allowed chassis. This applies
to all devices that can be transformed by the user from laptop style to
tablet style.

This does not add any auto-detection, yet. It only makes 'set-chassis'
accept 'convertible' as valid input.

7 years agoFix MIPS N64 and N32 LIB_ARCH_TUPLE (#5469)
YunQiang Su [Tue, 28 Feb 2017 10:35:40 +0000 (18:35 +0800)] 
Fix MIPS N64 and N32 LIB_ARCH_TUPLE (#5469)

* Fix MIPS N64 and N32 LIB_ARCH_TUPLE

For mips, we have 3 major ABIs, they are N64, N32 and O32.
Both N32 and N64 defined __mips64__, and only N64 defined __LP64__.

7 years agonetworkd: fix assertion crash for tunnel, log error instead (#5465)
Susant Sahani [Tue, 28 Feb 2017 09:32:22 +0000 (15:02 +0530)] 
networkd: fix assertion crash for tunnel, log error instead (#5465)

GRE6 and IP6TNL address should be a IPv6.

fix :

```
Assertion 't->family == AF_INET6' failed at src/network/netdev/tunnel.c:170,
function netdev_ip6gre_fill_message_create(). Aborting.
```

7 years agohwdb: release PageUp on Acer Aspire 7750G (#5476) 5217/head
xTibor [Mon, 27 Feb 2017 19:55:43 +0000 (20:55 +0100)] 
hwdb: release PageUp on Acer Aspire 7750G (#5476)

7 years agobuild-sys: add LIB_ARCH_TUPLE for tilegx-linux-gnu (#5474)
Martin Pitt [Mon, 27 Feb 2017 19:54:11 +0000 (20:54 +0100)] 
build-sys: add LIB_ARCH_TUPLE for tilegx-linux-gnu (#5474)

Fix build failure on the tilegx architecture.

https://bugs.debian.org/856306

7 years agosd-boot: stub: check LoadOptions contains data (#5467)
Mikko Ylinen [Mon, 27 Feb 2017 19:03:07 +0000 (21:03 +0200)] 
sd-boot: stub: check LoadOptions contains data (#5467)

With some UEFI shells LoadOptionsSize is reported being > 0
but the corresponding LoadOptions does not contain any data
(the first element has value 0).

When that happens, the stub feature that allows .cmdline to be
replaced by what's in LoadOptions ends up copying nothing/random
data to the kernel cmdline resulting in different kinds of boot
problems.

To fix this, add a check to see if LoadOptions contains data
before replacing the .cmdline.

Signed-off-by: Mikko Ylinen <mikko.ylinen@linux.intel.com>
7 years agoman: fix typo (#5468)
AsciiWolf [Mon, 27 Feb 2017 12:59:11 +0000 (13:59 +0100)] 
man: fix typo (#5468)

7 years agoman: systemctl list-timers: Provide sample output and document it. (#5463) 5447/head
Mark Stosberg [Mon, 27 Feb 2017 01:03:30 +0000 (20:03 -0500)] 
man: systemctl list-timers: Provide sample output and document it. (#5463)

As with `systemctl list-sockets` and `systemctl status`, we provide a sample
output for `systemctl list-timers` and document what the columns mean.

7 years agocoredumpctl,man: mark truncated messages as such in output
Zbigniew Jędrzejewski-Szmek [Sat, 25 Feb 2017 22:29:14 +0000 (17:29 -0500)] 
coredumpctl,man: mark truncated messages as such in output

Unit systemd-coredump@1-3854-0.service is failed/failed, not counting it.
TIME                            PID   UID   GID SIG COREFILE  EXE
Fri 2017-02-24 11:11:00 EST   10002  1000  1000   6 none      /home/zbyszek/src/systemd-work/.libs/lt-Sat 2017-02-25 00:49:32 EST   26921     0     0  11 error     /usr/libexec/fprintd
Sat 2017-02-25 11:56:30 EST   30703  1000  1000   - -         /usr/bin/python3.5
Sat 2017-02-25 13:16:54 EST    3275  1000  1000  11 present   /usr/bin/bash
Sat 2017-02-25 17:25:40 EST    4049  1000  1000  11 truncated /usr/bin/bash

For info and gdb output, the filename is marked in red and "(truncated)" is
appended. (Red is necessary because the annotation is hard to see when running
under a pager.)

Fixed #3883.

7 years agocoredumpctl: add debug information which services count towards the warning
Zbigniew Jędrzejewski-Szmek [Sat, 25 Feb 2017 22:14:00 +0000 (17:14 -0500)] 
coredumpctl: add debug information which services count towards the warning

A few times I have seen the hint unexpectedly. Add this so debug info
so it's easier to see what's happening.

...
Unit systemd-coredump@0-3119-0.service is failed/failed, not counting it.
Unit systemd-coredump@1-3854-0.service is activating/start-pre, counting it.
...
-- Notice: 1 systemd-coredump@.service unit is running, output may be incomplete.

7 years agocoredump: when storing an incomplete coredump, add COREDUMP_TRUNCATED=yes
Zbigniew Jędrzejewski-Szmek [Sat, 25 Feb 2017 21:38:00 +0000 (16:38 -0500)] 
coredump: when storing an incomplete coredump, add COREDUMP_TRUNCATED=yes

We logged about this, but did not attach information directly to the log
entry. It *would* be nice to log the full untruncated size, but afaict, to do
this, we would have to read the full data from the kernel. Doing this just to
log that information seems a bit excessive, in particular when the limit could
be set quite low. So for now let's just add a boolean field.

7 years agocoredump: do not try to access unitialized CONTEXT_COMM field
Zbigniew Jędrzejewski-Szmek [Sat, 25 Feb 2017 19:00:39 +0000 (14:00 -0500)] 
coredump: do not try to access unitialized CONTEXT_COMM field

Most of the fields in the context array come from the kernel (passed
through argv), but two are special: comm and exe. We allocate them
ourselves. We forgot to initialize context[CONTEXT_COMM] with the value
we allocated (introduced in 9aa820231414baa28e6bf02a033932cb69ff6b8b).
To simplify things, just set context[CONTEXT_COMM] and context[CONTEXT_EXE],
and free those two fields at the end.

Fixes #5442.

7 years agobuild-sys: make "incomatible pointer types" warnings fatal (#5459)
Martin Pitt [Sun, 26 Feb 2017 20:28:43 +0000 (21:28 +0100)] 
build-sys: make "incomatible pointer types" warnings fatal (#5459)

This isn't something that can be safely ignored, and easy to miss. This
prevents errors like issue #5452.

7 years agogpt-auto-generator: fix warning when compiling w/o efi (#5456)
Zbigniew Jędrzejewski-Szmek [Sun, 26 Feb 2017 07:24:39 +0000 (02:24 -0500)] 
gpt-auto-generator: fix warning when compiling w/o efi (#5456)

Fixes #5452.

7 years agoREADME: document dependency on kernel crypto/hash API (#5457)
Mike Gilbert [Sun, 26 Feb 2017 03:42:27 +0000 (22:42 -0500)] 
README: document dependency on kernel crypto/hash API (#5457)

The hmac and sha256 algorithms are used in sd-id128.

Closes: https://github.com/systemd/systemd/issues/5454
Closes: https://github.com/systemd/systemd/issues/5455
7 years agocoredump: slight simplification
Zbigniew Jędrzejewski-Szmek [Sat, 25 Feb 2017 14:35:09 +0000 (09:35 -0500)] 
coredump: slight simplification

7 years agoNEWS: fix typo (#5453)
Thomas H. P. Andersen [Sat, 25 Feb 2017 14:19:26 +0000 (15:19 +0100)] 
NEWS: fix typo (#5453)

7 years agoMerge pull request #5449 from keszybz/blkd-error-handling
Martin Pitt [Sat, 25 Feb 2017 11:25:27 +0000 (12:25 +0100)] 
Merge pull request #5449 from keszybz/blkd-error-handling

blkid error handling

7 years agoMerge pull request #5429 from GiedriusS/master
Zbigniew Jędrzejewski-Szmek [Sat, 25 Feb 2017 02:35:38 +0000 (21:35 -0500)] 
Merge pull request #5429 from GiedriusS/master

coredumpctl: implement --since/--until (-S/-U) for info/list verbs

7 years agoMerge pull request #5444 from poettering/cgroups-revert-no-error
Zbigniew Jędrzejewski-Szmek [Fri, 24 Feb 2017 23:48:57 +0000 (18:48 -0500)] 
Merge pull request #5444 from poettering/cgroups-revert-no-error

Revert "core: simplify cg_[all_]unified()" and more.

7 years agoshell-completion: include the new coredumpctl options 5429/head
Giedrius Statkevičius [Fri, 24 Feb 2017 19:30:59 +0000 (21:30 +0200)] 
shell-completion: include the new coredumpctl options

7 years agoman/coredumpctl: document the new options -S/-U
Giedrius Statkevičius [Fri, 24 Feb 2017 19:30:41 +0000 (21:30 +0200)] 
man/coredumpctl: document the new options -S/-U

7 years agocoredumpctl: implement --since/--until (-S/-U) for info/list verbs
Giedrius Statkevičius [Fri, 24 Feb 2017 19:29:40 +0000 (21:29 +0200)] 
coredumpctl: implement --since/--until (-S/-U) for info/list verbs

Implement --since/--until (-S/-U) in the same fashion as journalctl.
This lets the user filter the results a bit so it would be easier to
find relevant info in case there were many core dumps.

7 years agonetworkd: add symlinks to the Makefile for dir netdev and wait-online 5438/head
Susant Sahani [Thu, 23 Feb 2017 11:11:47 +0000 (16:41 +0530)] 
networkd: add symlinks to the Makefile for dir netdev and wait-online

7 years agonetworkd: add support for vxlan Remote and Local.
Susant Sahani [Fri, 24 Feb 2017 19:01:47 +0000 (00:31 +0530)] 
networkd: add support for vxlan Remote and Local.

This patch add supports to configure IFLA_VXLAN_LOCAL
and IFLA_VXLAN_GROUP.

The "Group" is renamed to "Remote" which is a multicast address.`

```
Description=vxlan-test
Name=vxlan1
Kind=vxlan

[VXLAN]
Id=33
Local=2001:db8:2f4:4bff:fa71:1a56
Remote=FF02:0:0:0:0:0:1:9
```

output
```
ip -d link show vxlan1
16: vxlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1430 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether fe:b4:97:03:f8:e5 brd ff:ff:ff:ff:ff:ff promiscuity 0
    vxlan id 33 group ff02::1:9 local 2001:db8:02f4:4bff:fa71:1a56 dev enp0s3 srcport 0 0 dstport 8472 ageing 300 noudpcsum noudp6zerocsumtx noudp6zerocsumrx addrgenmode none numtxqueues 1 numrxqueues 1 gso_max_size 65536 gso_max_segs 65535

```

7 years agoFix missing space in comments (#5439)
AsciiWolf [Fri, 24 Feb 2017 17:14:02 +0000 (18:14 +0100)] 
Fix missing space in comments (#5439)

7 years agocgroup: rework cg_all_unified() 5444/head
Lennart Poettering [Fri, 24 Feb 2017 17:05:31 +0000 (18:05 +0100)] 
cgroup: rework cg_all_unified()

Let's just check the unified level, directly. There's really no value in
wrapping cg_unified_controllers() with this, i.e. potentially do string
comparison when there's no reason to.

Also, this makes the clal more alike cg_hybrid_unified().

7 years agocgroup: rename cg_update_unified() → cg_unified_update()
Lennart Poettering [Fri, 24 Feb 2017 17:03:09 +0000 (18:03 +0100)] 
cgroup: rename cg_update_unified() → cg_unified_update()

We usually put the noun first, the verb (i.e. method) secont, for
example in cg_unified_flush(), let's follow the logic here...

7 years agocgroup: rename cg_unified() → cg_unified_controller()
Lennart Poettering [Fri, 24 Feb 2017 17:00:04 +0000 (18:00 +0100)] 
cgroup: rename cg_unified() → cg_unified_controller()

cg_unified() is a bit generic a name, let's make clear that it checks
whether a specified controller is in unified mode.

7 years agocgroup: change cg_unified() to possibly return errors again
Lennart Poettering [Fri, 24 Feb 2017 16:52:58 +0000 (17:52 +0100)] 
cgroup: change cg_unified() to possibly return errors again

We use our cgroup APIs in various contexts, including from our libraries
sd-login, sd-bus. As we don#t control those environments we can't rely
that the unified cgroup setup logic succeeds, and hence really shouldn't
assert on it.

This more or less reverts 415fc41ceaeada2e32639f24f134b1c248b9e43f.

7 years agocgroup-util: check unified_cache before invoking streq()
Lennart Poettering [Fri, 24 Feb 2017 14:53:17 +0000 (15:53 +0100)] 
cgroup-util: check unified_cache before invoking streq()

Just a minor optimization.

7 years agosd-netlink: fix type for IFLA_VXLAN_LOCAL
Susant Sahani [Thu, 23 Feb 2017 18:03:55 +0000 (23:33 +0530)] 
sd-netlink: fix type for IFLA_VXLAN_LOCAL

7 years agotest: add support for in_addr_is_multicast tests
Susant Sahani [Thu, 23 Feb 2017 17:59:31 +0000 (23:29 +0530)] 
test: add support for in_addr_is_multicast tests

7 years agosocket-util: introduce in_addr_is_multicast
Susant Sahani [Thu, 23 Feb 2017 17:58:12 +0000 (23:28 +0530)] 
socket-util: introduce in_addr_is_multicast

This patch add support to test whether a internet
address is multicast or not.

7 years agoMerge pull request #4670 from htejun/systemd-controller-on-unified-v2
Lennart Poettering [Thu, 23 Feb 2017 15:23:02 +0000 (16:23 +0100)] 
Merge pull request #4670 from htejun/systemd-controller-on-unified-v2

Systemd controller on unified v2

7 years agoMerge pull request #5434 from poettering/udev-log-revert
Evgeny Vereshchagin [Thu, 23 Feb 2017 12:06:03 +0000 (15:06 +0300)] 
Merge pull request #5434 from poettering/udev-log-revert

Udev log revert

7 years agojournal: avoid duplicated call to get cgroup path (#5404)
Namhyung Kim [Thu, 23 Feb 2017 12:04:57 +0000 (21:04 +0900)] 
journal: avoid duplicated call to get cgroup path (#5404)

The cg_pid_get_path_shifted() is called twice during
server_dispatch_message().  We can get rid of the second by passing the
path to dispatch_message_real().

7 years agoRevert "udev: Introduce UDEV_PROPAGATE_LOG macro (#5302)" 5434/head
Lennart Poettering [Thu, 23 Feb 2017 11:36:07 +0000 (12:36 +0100)] 
Revert "udev: Introduce UDEV_PROPAGATE_LOG macro (#5302)"

This reverts commit c22569eeeafa94cf510267071f5b75c4ab714e09.

Let's revert this for now, since it apparently doesn't fix the problem
at hand.

7 years agoRevert "Makefile.am: add a `\` (#5422)"
Lennart Poettering [Thu, 23 Feb 2017 11:36:04 +0000 (12:36 +0100)] 
Revert "Makefile.am: add a `\` (#5422)"

This reverts commit 00d1e0c9def4557c74f46cc2fe3a7ebc32a1dc8a.

7 years agotest-cgroup-util: add a "test" to print out cg_is_*_wanted() values 4670/head
Zbigniew Jędrzejewski-Szmek [Thu, 23 Feb 2017 00:57:11 +0000 (19:57 -0500)] 
test-cgroup-util: add a "test" to print out cg_is_*_wanted() values

This isn't terribly useful because /sys/fs/cgroup will usually be mounted.
But it at least allows checking if the values make sense in this case.

7 years agocgroup-util: fix the case of default=unified, unified-cgroup-hierarchy=0
Zbigniew Jędrzejewski-Szmek [Thu, 23 Feb 2017 00:55:31 +0000 (19:55 -0500)] 
cgroup-util: fix the case of default=unified, unified-cgroup-hierarchy=0

We should mount the hybrid hierarchy if the user disabled the unified
hierarchy on the kernel command line.

7 years agoMerge pull request #5424 from segfault-cc/master
Peter Hutterer [Thu, 23 Feb 2017 00:02:17 +0000 (10:02 +1000)] 
Merge pull request #5424 from segfault-cc/master

Added hwdb rule for E5570 laptop (PointingStick)

7 years agoman: journalctl: update --new-id128 format count (#5423)
Lucas Werkmeister [Wed, 22 Feb 2017 18:58:01 +0000 (19:58 +0100)] 
man: journalctl: update --new-id128 format count (#5423)

The Python format was added in d489071fb3.

7 years agocgroup-util: cache all cg_is_*_wanted answers, disable /sys/fs/cgroups/unified on...
Zbigniew Jędrzejewski-Szmek [Wed, 22 Feb 2017 17:57:43 +0000 (12:57 -0500)] 
cgroup-util: cache all cg_is_*_wanted answers, disable /sys/fs/cgroups/unified on unified

If we encounter an error in proc cmdline parsing, just treat that as permanent,
i.e. the same as if the option was not specified. Realistically, it is better
to use the same condition for all related mounts, then to have e.g.
/sys/fs/cgroup mounted and /sys/fs/cgroup/unified not. If we find something is
mounted and base our answer on that, cache that result too.

Fix the conditions so that if "unified" is used, make sure any "hybrid" mounts
are not mounted.

7 years agoMerge pull request #5421 from ssahani/net7
Zbigniew Jędrzejewski-Szmek [Wed, 22 Feb 2017 16:56:16 +0000 (11:56 -0500)] 
Merge pull request #5421 from ssahani/net7

networkd: Do not set config to NULL immediately.

7 years agoman: update descriptions of argument-less kernel cmdline args
Zbigniew Jędrzejewski-Szmek [Mon, 20 Feb 2017 01:02:12 +0000 (20:02 -0500)] 
man: update descriptions of argument-less kernel cmdline args

This updates the man page for the changes introduced in 1d84ad944520fc3e062ef518c4db4e1d3a1866af.
"=" is kep if the option is predominantly used with an argument, and dropped
otherwise.

v2:
 - update also description of log_color
 - drop '=' in all cases where it is optional
   (previous rule of dropping it only in some cases was just too arbitrary.)

7 years agoman: describe the cgroup hierarchy kernel commandline options
Zbigniew Jędrzejewski-Szmek [Mon, 20 Feb 2017 00:33:48 +0000 (19:33 -0500)] 
man: describe the cgroup hierarchy kernel commandline options

Fixes #4827.

v2:
- update for the inverted interpration of systemd.legacy_systemd_cgroup_controller

7 years agocore/mount-setup: if unified hierarchy is not supported, fall back to legacy
Zbigniew Jędrzejewski-Szmek [Sun, 19 Feb 2017 20:59:21 +0000 (15:59 -0500)] 
core/mount-setup: if unified hierarchy is not supported, fall back to legacy

We need this to gracefully support older or strangely configured kernels.

v2:
- do not install a callback handler, just embed the right conditions into
  cg_is_*_wanted()

v3:
- fix bug in cg_is_legacy_wanted()

7 years agoRename cg_is_unified_systemd_controller_wanted to cg_is_hybrid_wanted
Zbigniew Jędrzejewski-Szmek [Sun, 19 Feb 2017 20:36:56 +0000 (15:36 -0500)] 
Rename cg_is_unified_systemd_controller_wanted to cg_is_hybrid_wanted

Less typing and doesn't make the table so incredibly wide.

7 years agobuild-sys: default to hybrid cgroup hierarchy
Zbigniew Jędrzejewski-Szmek [Sun, 19 Feb 2017 05:09:31 +0000 (00:09 -0500)] 
build-sys: default to hybrid cgroup hierarchy

It is expected that general-purpose distributions might want to override this.
This commit is made separate from grandparent to make it easy to revert if
needed.

v2:
- use hybrid as the default
  (We tested that the default of unified seems boot correctly everywhere and behave
   correctly in general, but it is incompatible with docker/lxc and probably some
   other tools, so for now we default to hybrid. The new "hybrid" mode should work
   be OK for those tools.)

Fixes #4669.

7 years agoAdded hwdb rule for E5570 laptop (PointingStick) 5424/head
Vitaly Sulimov [Wed, 22 Feb 2017 09:57:21 +0000 (12:57 +0300)] 
Added hwdb rule for E5570 laptop (PointingStick)
Trackpoint sensivity is very high by default
https://bugs.freedesktop.org/show_bug.cgi?id=99860

7 years agonetworkd: address config add error checking 5421/head
Susant Sahani [Wed, 22 Feb 2017 05:41:28 +0000 (11:11 +0530)] 
networkd: address config add error checking

We not looking for hashmap_put return error code.

7 years agonetworkd: Do not set config to NULL immediately.
Susant Sahani [Wed, 22 Feb 2017 05:25:03 +0000 (10:55 +0530)] 
networkd: Do not set config to NULL immediately.

fd45e52 sets
n to NULL which leads to crash.

fixes: #5418

7 years agoMakefile.am: add a `\` (#5422)
Susant Sahani [Wed, 22 Feb 2017 04:04:02 +0000 (09:34 +0530)] 
Makefile.am: add a `\` (#5422)

fixes: #5419

7 years agoMerge pull request #5409 from keszybz/test-env-util-memleak
Evgeny Vereshchagin [Wed, 22 Feb 2017 01:02:57 +0000 (04:02 +0300)] 
Merge pull request #5409 from keszybz/test-env-util-memleak

test-env-util: fix typo leading to memleak

7 years agoNEWS: add a comment about udev's MemoryDenyWriteExecute= setting (#5414)
Lennart Poettering [Wed, 22 Feb 2017 00:36:12 +0000 (01:36 +0100)] 
NEWS: add a comment about udev's MemoryDenyWriteExecute= setting (#5414)

Apparently if people are adventurous enought to run Go programs in udev
rules they might run into problems with MemoryDenyWriteExecute=.

I am pretty sure the best way out is for the toolchain generating
programs incompatible with W^X to be fixed, but this still deserves
documentation.

This was forgotten for the 232 release, hence add it now, retroactively.

See: #5400

7 years agoudev: Introduce UDEV_PROPAGATE_LOG macro (#5302)
Susant Sahani [Tue, 21 Feb 2017 23:16:13 +0000 (04:46 +0530)] 
udev: Introduce UDEV_PROPAGATE_LOG macro (#5302)

As per commit 25e773e "udev: switch to systemd logging functions"
Now log_set_max_level() in udev_new() overwites system wide log level.

Propagate the udev.conf setting to log_set_max_level()
only if udev_new() is called from within udevd or one of its helpers.

Introduce a UDEV_PROPAGATE_LOG macro that we set with -D on
the gcc command line for all udev binaries we build, but not
for any others. The log_set_max_level() call is guarded by an
ifdef check for that macro, so that it only effects the various
udev binaries.

closes: #4525

7 years agocoredump: fix assign in while loop (#5417)
Thomas H. P. Andersen [Tue, 21 Feb 2017 23:14:54 +0000 (00:14 +0100)] 
coredump: fix assign in while loop (#5417)

From: #5393

7 years agoMerge pull request #5411 from poettering/various-pre-v233-fixes
Zbigniew Jędrzejewski-Szmek [Tue, 21 Feb 2017 22:35:01 +0000 (17:35 -0500)] 
Merge pull request #5411 from poettering/various-pre-v233-fixes

Various pre v233 fixes.

7 years agoudev-builtin-blkid: use -errno not -1 as error code 5449/head
Zbigniew Jędrzejewski-Szmek [Tue, 21 Feb 2017 21:42:46 +0000 (16:42 -0500)] 
udev-builtin-blkid: use -errno not -1 as error code

The code that calls this function doesn't care, but it looks bad.

7 years agotree-wide: simplify handling of blkid errors
Zbigniew Jędrzejewski-Szmek [Tue, 21 Feb 2017 21:41:33 +0000 (16:41 -0500)] 
tree-wide: simplify handling of blkid errors

7 years agoRevert "basic/strv: allow NULLs to be inserted into strv" 5411/head
Lennart Poettering [Tue, 21 Feb 2017 17:11:12 +0000 (18:11 +0100)] 
Revert "basic/strv: allow NULLs to be inserted into strv"

This reverts commit 18f71a3c8174774c5386c4aba94d54f3b5c36a84.

According to @keszybz we don't need this anymore, hence drop it:

https://github.com/systemd/systemd/pull/5131/commits/18f71a3c8174774c5386c4aba94d54f3b5c36a84#r102232368

7 years agolog: never log into foreign fd #2 in PID 1 or its pre-execve() children
Lennart Poettering [Tue, 21 Feb 2017 16:57:55 +0000 (17:57 +0100)] 
log: never log into foreign fd #2 in PID 1 or its pre-execve() children

Fixes: #5401
7 years agoman: document that ProtectKernelTunables= and ProtectControlGroups= implies MountAPIVFS=
Lennart Poettering [Tue, 21 Feb 2017 16:48:59 +0000 (17:48 +0100)] 
man: document that ProtectKernelTunables= and ProtectControlGroups= implies MountAPIVFS=

See: #5384

7 years agobootctl: create loader.conf only if it doesn't exist yet
Lennart Poettering [Tue, 21 Feb 2017 16:44:35 +0000 (17:44 +0100)] 
bootctl: create loader.conf only if it doesn't exist yet

If the snippet aleady exists, don't do anything, as the file was already
installed then.

(This also reworks the code to create the file atomically)

Fixes: #5396
7 years agobootctl: rework file copy routines to reuse copy_bytes() from copy.c
Lennart Poettering [Tue, 21 Feb 2017 16:13:36 +0000 (17:13 +0100)] 
bootctl: rework file copy routines to reuse copy_bytes() from copy.c

Also, make sure to reuse temporary file handling used elsewhere.

7 years agocopy: a plain unlink() works here too
Lennart Poettering [Tue, 21 Feb 2017 16:13:28 +0000 (17:13 +0100)] 
copy: a plain unlink() works here too

7 years agosd-netlink: don't give up on netlink on ENOBUFS
Lennart Poettering [Tue, 21 Feb 2017 15:25:02 +0000 (16:25 +0100)] 
sd-netlink: don't give up on netlink on ENOBUFS

If our netlink input buffer overruns the kernel will send us ENOBUFS on
the next recvmsg(). Don't consider this a complete failure resulting in
closing of the netlink socket. Instead, simply continue (after debug
logging).

Of course, ideally we'd have a better strategy for this, and would have
a way to resync if this happens (as well as a scheme for cancelling all
ongoing asynchronous transactions), but for now let's at least not choke
fatally, and simply accept that we lost some messages and continue.

Note that if we lose messages when synchronously waiting for an
operation to complete, we'll still propagate the ENOBUFS up, to make the
individual transaction fail.

See: #5398

(This bug does not properly fix the issue, hence we should leave the bug
open.)

7 years agodissect: generate friendly error messages for more error conditions
Lennart Poettering [Tue, 21 Feb 2017 15:18:03 +0000 (16:18 +0100)] 
dissect: generate friendly error messages for more error conditions

Fixes: #5408
7 years agoFix check for signal in set (#5416)
stuart-mclaren [Tue, 21 Feb 2017 20:39:52 +0000 (20:39 +0000)] 
Fix check for signal in set (#5416)

IN_SET(SIGCONT, SIGKILL) will always evaluate to false.
The signal needs to be included as the first argument.

Fixup for 26f417d3e8dd2522adfdc4c8fed4c36fa40f48fc.

7 years agoNEWS: document ExecStartPost change in NEWS (#5415)
Lennart Poettering [Tue, 21 Feb 2017 20:00:09 +0000 (21:00 +0100)] 
NEWS: document ExecStartPost change in NEWS (#5415)

Follow up for #4843.

Taking @joukewitteveen's suggestion into account:
https://github.com/systemd/systemd/pull/4843#issuecomment-280306811

7 years agoMerge pull request #5412 from AsciiWolf/https-urls-2
Zbigniew Jędrzejewski-Szmek [Tue, 21 Feb 2017 19:47:40 +0000 (14:47 -0500)] 
Merge pull request #5412 from AsciiWolf/https-urls-2

More https:// in URLs fixes.

7 years agoNEWS, README: use www prefix in freedesktop.org URLs 5412/head
AsciiWolf [Tue, 21 Feb 2017 17:26:23 +0000 (18:26 +0100)] 
NEWS, README: use www prefix in freedesktop.org URLs

7 years agocatalog: use https:// in URLs
AsciiWolf [Tue, 21 Feb 2017 17:21:13 +0000 (18:21 +0100)] 
catalog: use https:// in URLs

7 years agodocs: use https:// in URLs
AsciiWolf [Tue, 21 Feb 2017 17:18:24 +0000 (18:18 +0100)] 
docs: use https:// in URLs

7 years agobasic/env-util: drop leftover comment 5409/head
Zbigniew Jędrzejewski-Szmek [Tue, 21 Feb 2017 15:49:22 +0000 (10:49 -0500)] 
basic/env-util: drop leftover comment

7 years agoMerge pull request #5410 from AsciiWolf/https-urls
Zbigniew Jędrzejewski-Szmek [Tue, 21 Feb 2017 16:27:10 +0000 (11:27 -0500)] 
Merge pull request #5410 from AsciiWolf/https-urls

Use https:// in URLs when possible.

7 years agobasic/fileio: use IN_SET
Zbigniew Jędrzejewski-Szmek [Tue, 21 Feb 2017 16:15:27 +0000 (11:15 -0500)] 
basic/fileio: use IN_SET

7 years agobasic/fileio: fix memleak when discarding an invalid variable
Zbigniew Jędrzejewski-Szmek [Tue, 21 Feb 2017 16:15:19 +0000 (11:15 -0500)] 
basic/fileio: fix memleak when discarding an invalid variable

Fixes #5405.

7 years agomount-tools: silence gcc warning about uninit var
Zbigniew Jędrzejewski-Szmek [Tue, 21 Feb 2017 15:59:48 +0000 (10:59 -0500)] 
mount-tools: silence gcc warning about uninit var

7 years agotest-env-util: fix typo leading to memleak
Zbigniew Jędrzejewski-Szmek [Tue, 21 Feb 2017 14:58:50 +0000 (09:58 -0500)] 
test-env-util: fix typo leading to memleak

Partially fixes #5405.

7 years agoman: use https:// in URLs 5410/head
AsciiWolf [Tue, 21 Feb 2017 15:28:04 +0000 (16:28 +0100)] 
man: use https:// in URLs

7 years agoNEWS: use https:// in URLs
AsciiWolf [Tue, 21 Feb 2017 15:03:04 +0000 (16:03 +0100)] 
NEWS: use https:// in URLs