platform/upstream/systemd.git
8 years agobasic: fix for IPv6 status (#4224)
Susant Sahani [Tue, 27 Sep 2016 13:55:13 +0000 (19:25 +0530)]
basic: fix for IPv6 status (#4224)

Even if
```
   cat /proc/sys/net/ipv6/conf/all/disable_ipv6
1
```

is disabled

cat /proc/net/sockstat6

```
TCP6: inuse 2
UDP6: inuse 1
UDPLITE6: inuse 0
RAW6: inuse 0
FRAG6: inuse 0 memory 0
 ```

Looking for /proc/net/if_inet6 is the right choice.

8 years agoudev/path_id: introduce support for NVMe devices (#4169)
Keith Busch [Mon, 26 Sep 2016 19:01:07 +0000 (13:01 -0600)]
udev/path_id: introduce support for NVMe devices (#4169)

This appends the nvme name and namespace identifier attribute the the
PCI path for by-path links. Symlinks like the following are now present:

lrwxrwxrwx. 1 root root 13 Sep 16 12:12 pci-0000:01:00.0-nvme-1 -> ../../nvme0n1
lrwxrwxrwx. 1 root root 15 Sep 16 12:12 pci-0000:01:00.0-nvme-1-part1 -> ../../nvme0n1p1

Cc: Michal Sekletar <sekletar.m@gmail.com>
Signed-off-by: Keith Busch <keith.busch@intel.com>
8 years agocore: Fix USB functionfs activation and clarify its documentation (#4188)
Paweł Szewczyk [Mon, 26 Sep 2016 16:45:47 +0000 (18:45 +0200)]
core: Fix USB functionfs activation and clarify its documentation (#4188)

There was no certainty about how the path in service file should look
like for usb functionfs activation. Because of this it was treated
differently in different places, which made this feature unusable.

This patch fixes the path to be the *mount directory* of functionfs, not
ep0 file path and clarifies in the documentation that ListenUSBFunction should be
the location of functionfs mount point, not ep0 file itself.

8 years agomachinectl: prefer user@ to --uid=user for shell (#4006)
Zbigniew Jędrzejewski-Szmek [Mon, 26 Sep 2016 15:45:31 +0000 (11:45 -0400)]
machinectl: prefer user@ to --uid=user for shell (#4006)

It seems to me that the explicit positional argument should have higher
priority than "an option".

8 years agojournald,ratelimit: fix wrong calculation of burst_modulate() (#4218)
HATAYAMA Daisuke [Mon, 26 Sep 2016 15:36:20 +0000 (00:36 +0900)]
journald,ratelimit: fix wrong calculation of burst_modulate() (#4218)

This patch fixes wrong calculation of burst_modulate(), which now calculates
the values smaller than really expected ones if available disk space is
strictly more than 1MB.

In particular, if available disk space is strictly more than 1MB and strictly
less than 16MB, the resulted value becomes smaller than its original one.

>>> (math.log2(1*1024**2)-16) / 4
1.0
>>> (math.log2(16*1024**2)-16) / 4
2.0
>>> (math.log2(256*1024**2)-16) / 4
3.0
→ This matches the comment in the function.

8 years agocoredump: initialize coredump_size in submit_coredump() (#4219)
Matej Habrnal [Mon, 26 Sep 2016 15:28:58 +0000 (17:28 +0200)]
coredump: initialize coredump_size in submit_coredump() (#4219)

If ulimit is smaller than page_size(), function save_external_coredump()
returns -EBADSLT and this causes skipping whole core dumping part in
submit_coredump(). Initializing coredump_size to UINT64_MAX prevents
evaluating a condition with uninitialized varialbe which leads to
calling allocate_journal_field() with coredump_fd = -1 which causes
aborting.

Signed-off-by: Matej Habrnal <mhabrnal@redhat.com>
8 years agotreewide: fix typos (#4217)
Torstein Husebø [Mon, 26 Sep 2016 09:32:47 +0000 (11:32 +0200)]
treewide: fix typos (#4217)

8 years agoMerge pull request #4194 from bboozzoo/bboozzoo/nss-rootlib
Zbigniew Jędrzejewski-Szmek [Sat, 24 Sep 2016 15:40:15 +0000 (11:40 -0400)]
Merge pull request #4194 from bboozzoo/bboozzoo/nss-rootlib

8 years agoMerge pull request #4182 from jkoelker/routetable
Zbigniew Jędrzejewski-Szmek [Sat, 24 Sep 2016 14:56:13 +0000 (10:56 -0400)]
Merge pull request #4182 from jkoelker/routetable

8 years agonetworkd: do not drop config for pending interfaces (#4187)
Martin Pitt [Sat, 24 Sep 2016 14:07:45 +0000 (16:07 +0200)]
networkd: do not drop config for pending interfaces (#4187)

While an interface is still being processed by udev, it is in state "pending",
instead of "unmanaged". We must not flush device configuration then.

Further fixes commit 3104883ddc24 after commit c436d55397.

Fixes #4186

8 years agobuild-sys: get rid of move-to-rootlibdir
Maciek Borzecki [Sat, 24 Sep 2016 12:17:30 +0000 (14:17 +0200)]
build-sys: get rid of move-to-rootlibdir

Replace move-to-rootlibdir calls in post-install hooks with explicitly
used ${rootlibdir} where needed.

Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
8 years agokernel-install: allow plugins to terminate the procedure (#4174)
Zbigniew Jędrzejewski-Szmek [Sat, 24 Sep 2016 13:03:54 +0000 (09:03 -0400)]
kernel-install: allow plugins to terminate the procedure (#4174)

Replaces #4103.

8 years agoMerge pull request #4207 from fbuihuu/fix-journal-hmac-calculation
Zbigniew Jędrzejewski-Szmek [Sat, 24 Sep 2016 12:57:49 +0000 (08:57 -0400)]
Merge pull request #4207 from fbuihuu/fix-journal-hmac-calculation

Fix journal hmac calculation.

8 years agosysctl: configure kernel parameters in the order they occur in each sysctl configurat...
HATAYAMA Daisuke [Sat, 24 Sep 2016 12:56:07 +0000 (21:56 +0900)]
sysctl: configure kernel parameters in the order they occur in each sysctl configuration files (#4205)

Currently, systemd-sysctl command configures kernel parameters in each sysctl
configuration files in random order due to characteristics of iterator of
Hashmap.

However, kernel parameters need to be configured in the order they occur in
each sysctl configuration files.

- For example, consider fs.suid_coredump and kernel.core_pattern. If
  fs.suid_coredump=2 is configured before kernel.core_pattern= whose default
  value is "core", then kernel outputs the following message:

      Unsafe core_pattern used with suid_dumpable=2. Pipe handler or fully qualified core dump path required.

  Note that the security issue mentioned in this message has already been fixed
  on recent kernels, so this is just a warning message on such kernels. But
  it's still confusing to users that this message is output on some boot and
  not output on another boot.

- I don't know but there could be other kernel parameters that are significant
  in the order they are configured.

- The legacy sysctl command configures kernel parameters in the order they
  occur in each sysctl configuration files. Although I didn't find any official
  specification explaining this behavior of sysctl command, I don't think there
  is any meaningful reason to change this behavior, in particular, to the
  random one.

This commit does the change by simply using OrderedHashmap instead of Hashmap.

8 years agonspawn: decouple --boot from CLONE_NEWIPC (#4180)
Luca Bruno [Sat, 24 Sep 2016 12:30:42 +0000 (12:30 +0000)]
nspawn: decouple --boot from CLONE_NEWIPC (#4180)

This commit is a minor tweak after the split of `--share-system`, decoupling the `--boot`
option from IPC namespacing.

Historically there has been a single `--share-system` option for sharing IPC/PID/UTS with the
host, which was incompatible with boot/pid1 mode. After the split, it is now possible to express
the requirements with better granularity.

For reference, this is a followup to #4023 which contains references to previous discussions.
I realized too late that CLONE_NEWIPC is not strictly needed for boot mode.

8 years agojournal: fix HMAC calculation when appending a data object
Franck Bui [Fri, 23 Sep 2016 11:33:01 +0000 (13:33 +0200)]
journal: fix HMAC calculation when appending a data object

Since commit 5996c7c295e073ce21d41305169132c8aa993ad0 (v190 !), the
calculation of the HMAC is broken because the hash for a data object
including a field is done in the wrong order: the field object is
hashed before the data object is.

However during verification, the hash is done in the opposite order as
objects are scanned sequentially.

8 years agojournal: warn when we fail to append a tag to a journal
Franck Bui [Fri, 23 Sep 2016 10:12:13 +0000 (12:12 +0200)]
journal: warn when we fail to append a tag to a journal

We shouldn't silently fail when appending the tag to a journal file
since FSS protection will simply be disabled in this case.

8 years agol10n: update Czech translation (#4203)
AsciiWolf [Fri, 23 Sep 2016 05:11:26 +0000 (07:11 +0200)]
l10n: update Czech translation (#4203)

8 years agomachine: Disable more output when quiet flag is set (#4196)
Wilhelm Schuster [Thu, 22 Sep 2016 19:49:22 +0000 (21:49 +0200)]
machine: Disable more output when quiet flag is set (#4196)

8 years agol10n: add Czech Translation (#4195)
Daniel Maixner [Wed, 21 Sep 2016 12:42:35 +0000 (14:42 +0200)]
l10n: add Czech Translation (#4195)

8 years agonss: install nss modules to ${rootlibdir}
Maciek Borzecki [Tue, 20 Sep 2016 19:24:45 +0000 (21:24 +0200)]
nss: install nss modules to ${rootlibdir}

NSS modules (libnss_*.so.*) need to be installed into
${rootlibdir} (typically /lib) in order to be used. Previously, the
modules were installed into ${libdir}, thus usually ending up in
/usr/lib, even on systems where split usr is enabled, or ${libdir} is
passed explicitly.

Signed-off-by: Maciek Borzecki <maciek.borzecki@gmail.com>
8 years agonspawn: fix comment typo in setup_timezone example (#4183)
Michael Pope [Tue, 20 Sep 2016 05:30:48 +0000 (22:30 -0700)]
nspawn: fix comment typo in setup_timezone example (#4183)

8 years agonetworkd: Allow specifying RouteTable for RAs
Jason Kölker [Mon, 19 Sep 2016 02:59:11 +0000 (02:59 +0000)]
networkd: Allow specifying RouteTable for RAs

8 years agonetworkd: Allow specifying RouteTable for DHCP
Jason Kölker [Mon, 19 Sep 2016 02:26:12 +0000 (02:26 +0000)]
networkd: Allow specifying RouteTable for DHCP

8 years agojournal: fix typo in comment (#4176)
Felix Zhang [Sun, 18 Sep 2016 09:14:50 +0000 (17:14 +0800)]
journal: fix typo in comment (#4176)

8 years agoRevert "kernel-install: Add KERNEL_INSTALL_NOOP (#4103)"
Martin Pitt [Sat, 17 Sep 2016 14:39:00 +0000 (16:39 +0200)]
Revert "kernel-install: Add KERNEL_INSTALL_NOOP (#4103)"

Further discussion showed that this better gets addressed at the packaging
level.

This reverts commit 34210af7c63640fca1fd4a09fc23b01a8cd70bf3.

8 years agoMerge pull request #4123 from keszybz/network-file-dropins
Martin Pitt [Sat, 17 Sep 2016 08:00:19 +0000 (10:00 +0200)]
Merge pull request #4123 from keszybz/network-file-dropins

Network file dropins

8 years agonspawn: clarify log warning for /etc/localtime not being a symbolic link (#4163)
Michael Pope [Sat, 17 Sep 2016 07:59:28 +0000 (00:59 -0700)]
nspawn: clarify log warning for /etc/localtime not being a symbolic link (#4163)

8 years agonetworkd: change message about missing Kind
Zbigniew Jędrzejewski-Szmek [Sat, 10 Sep 2016 16:44:50 +0000 (17:44 +0100)]
networkd: change message about missing Kind

If Kind is not specied, the message about "Invalid Kind" was misleading.
If Kind was specified in an invalid way, we get a message in the parsing
phase anyway. Reword the message to cover both cases better.

8 years agoman: mention that netdev,network files support dropins
Zbigniew Jędrzejewski-Szmek [Sat, 10 Sep 2016 13:34:07 +0000 (14:34 +0100)]
man: mention that netdev,network files support dropins

Also update the description of drop-ins in systemd.unit(5) to say that .d
directories, not .conf files, are in /etc/system/system, /run/systemd/system,
etc.

8 years agonetworkd: support drop-in dirs for .network files
Zbigniew Jędrzejewski-Szmek [Sat, 10 Sep 2016 13:32:19 +0000 (14:32 +0100)]
networkd: support drop-in dirs for .network files

8 years agoshared/conf-parser: add config_parse_many which takes strv with dirs
Zbigniew Jędrzejewski-Szmek [Sat, 10 Sep 2016 11:19:41 +0000 (12:19 +0100)]
shared/conf-parser: add config_parse_many which takes strv with dirs

This way we don't have to create a nulstr just to unpack it in a moment.

8 years agotree-wide: rename config_parse_many to …_nulstr
Zbigniew Jędrzejewski-Szmek [Sat, 10 Sep 2016 10:02:40 +0000 (11:02 +0100)]
tree-wide: rename config_parse_many to …_nulstr

In preparation for adding a version which takes a strv.

8 years agonetworkd: support drop-in directories for .network files
Jean-Sébastien Bour [Sat, 9 Jul 2016 14:55:26 +0000 (16:55 +0200)]
networkd: support drop-in directories for .network files

Fixes #3655.

[zj: Fix the tests.]

8 years agonetworkd-test: add a helper function to always clean up temporary config files
Zbigniew Jędrzejewski-Szmek [Wed, 14 Sep 2016 10:52:40 +0000 (06:52 -0400)]
networkd-test: add a helper function to always clean up temporary config files

8 years agoUpdated formatting for printing the key for FSS (#4165)
hi117 [Fri, 16 Sep 2016 14:14:55 +0000 (10:14 -0400)]
Updated formatting for printing the key for FSS (#4165)

The key used to be jammed next to the local file path. Based on the format string on line 1675, I determined that the order of arguments was written incorrectly, and updated the function based on that assumption.

Before:
```
Please write down the following secret verification key. It should be stored
at a safe location and should not be saved locally on disk.

        /var/log/journal/9b47c1a5b339412887a197b7654673a7/fss8f66d6-f0a998-f782d0-1fe522/18fdb8-35a4e900

The sealing key is automatically changed every 15min.
```

After:
```
Please write down the following secret verification key. It should be stored
at a safe location and should not be saved locally on disk.

        d53ed4-cc43d6-284e10-8f0324/18fdb8-35a4e900

The sealing key is automatically changed every 15min.
```

8 years agoman: Update example for downloading a Fedora image (#4166)
Stefan Schweter [Fri, 16 Sep 2016 12:22:12 +0000 (14:22 +0200)]
man: Update example for downloading a Fedora image (#4166)

8 years agoman: update url to openpgpkey rfc (#4156)
Stefan [Fri, 16 Sep 2016 02:55:22 +0000 (04:55 +0200)]
man: update url to openpgpkey rfc (#4156)

8 years agoMerge pull request #4131 from intelfx/update-done-timestamps-precision
Zbigniew Jędrzejewski-Szmek [Fri, 16 Sep 2016 02:53:00 +0000 (22:53 -0400)]
Merge pull request #4131 from intelfx/update-done-timestamps-precision

condition: ignore nanoseconds in timestamps for ConditionNeedsUpdate=

Fixes #4130.

8 years agologind: fix /run/user/$UID creation in apparmor-confined containers (#4154)
Tomáš Janoušek [Thu, 15 Sep 2016 23:26:31 +0000 (01:26 +0200)]
logind: fix /run/user/$UID creation in apparmor-confined containers (#4154)

When a docker container is confined with AppArmor [1] and happens to run
on top of a kernel that supports mount mediation [2], e.g. any Ubuntu
kernel, mount(2) returns EACCES instead of EPERM.  This then leads to:

    systemd-logind[33]: Failed to mount per-user tmpfs directory /run/user/1000: Permission denied
    login[42]: pam_systemd(login:session): Failed to create session: Access denied

and user sessions don't start.

This also applies to selinux that too returns EACCES on mount denial.

[1] https://github.com/docker/docker/blob/master/docs/security/apparmor.md#understand-the-policies
[2] http://bazaar.launchpad.net/~apparmor-dev/apparmor/master/view/head:/kernel-patches/4.7/0025-UBUNTU-SAUCE-apparmor-Add-the-ability-to-mediate-mou.patch

8 years agohwdb: Update database of Bluetooth company identifiers
Marcel Holtmann [Thu, 15 Sep 2016 20:09:35 +0000 (22:09 +0200)]
hwdb: Update database of Bluetooth company identifiers

8 years agotest-execute: fix %n typo (#4153)
Zbigniew Jędrzejewski-Szmek [Thu, 15 Sep 2016 12:21:42 +0000 (08:21 -0400)]
test-execute: fix %n typo (#4153)

8 years agoMerge pull request #4150 from ssahani/net1
Martin Pitt [Thu, 15 Sep 2016 10:20:09 +0000 (12:20 +0200)]
Merge pull request #4150 from ssahani/net1

networkd: trivial fixes

8 years agoUpdate systemctl.xml (#4151)
kristbaum [Thu, 15 Sep 2016 07:11:33 +0000 (09:11 +0200)]
Update systemctl.xml (#4151)

8 years agohwdb: add Lenovo *40 series resolution fixes (#4149)
Peter Hutterer [Thu, 15 Sep 2016 06:16:05 +0000 (16:16 +1000)]
hwdb: add Lenovo *40 series resolution fixes (#4149)

8 years agonetworkd: network fix log message
Susant Sahani [Thu, 15 Sep 2016 04:49:26 +0000 (10:19 +0530)]
networkd: network fix log message

8 years agonetworkd: netdev fixup copy paste error
Susant Sahani [Thu, 15 Sep 2016 04:48:59 +0000 (10:18 +0530)]
networkd: netdev fixup copy paste error

8 years agoTODO: update networkd TODO
Susant Sahani [Thu, 15 Sep 2016 04:48:22 +0000 (10:18 +0530)]
TODO: update networkd TODO

8 years agoupdate-done, condition: write the timestamp to the file as well and use it to prevent...
Ivan Shapovalov [Tue, 13 Sep 2016 00:04:35 +0000 (03:04 +0300)]
update-done, condition: write the timestamp to the file as well and use it to prevent false-positives

This fixes https://bugs.freedesktop.org/show_bug.cgi?id=90192 and #4130
for real. Also, remove timestamp check in update-done.c altogether since
the whole operation is idempotent.

8 years agotime-util: export timespec_load_nsec()
Ivan Shapovalov [Thu, 15 Sep 2016 02:19:31 +0000 (05:19 +0300)]
time-util: export timespec_load_nsec()

8 years agoshell-completion: add --wait to systemd-run completions (#4140)
Davide Cavalca [Wed, 14 Sep 2016 20:38:53 +0000 (13:38 -0700)]
shell-completion: add --wait to systemd-run completions (#4140)

8 years agogitignore: ignore image.raw from mkosi (#4141)
Davide Cavalca [Wed, 14 Sep 2016 17:15:21 +0000 (10:15 -0700)]
gitignore: ignore image.raw from mkosi (#4141)

8 years agonetworkd: add support to configure virtual CAN device (#4139)
Susant Sahani [Wed, 14 Sep 2016 16:15:16 +0000 (21:45 +0530)]
networkd: add support to configure virtual CAN device (#4139)

1. add support for kind vcan
2. fixup indention netlink-types.c, networkd-netdev.c

8 years agoMerge pull request #4133 from keszybz/strerror-removal
Martin Pitt [Wed, 14 Sep 2016 09:17:58 +0000 (11:17 +0200)]
Merge pull request #4133 from keszybz/strerror-removal

Strerror removal and other janitorial cleanups

8 years agokernel-install: Add KERNEL_INSTALL_NOOP (#4103)
Colin Walters [Wed, 14 Sep 2016 05:57:43 +0000 (01:57 -0400)]
kernel-install: Add KERNEL_INSTALL_NOOP (#4103)

Will be used by rpm-ostree (and likely lorax) to suppress
RPM->kernel->%posttrans->dracut runs, and basically everything
else this script is doing.

I'll also likely change the `kernel.spec` to respect this as well.

8 years agoNEWS: add a bunch of stuff for the 232 release (#4132)
Zbigniew Jędrzejewski-Szmek [Wed, 14 Sep 2016 05:40:02 +0000 (01:40 -0400)]
NEWS: add a bunch of stuff for the 232 release (#4132)

This does not include the description of the mixed v1/v2 mode, but
everything important apart from that should be covered.

8 years agoTODO: remove duplicated item
Zbigniew Jędrzejewski-Szmek [Mon, 12 Sep 2016 19:20:33 +0000 (20:20 +0100)]
TODO: remove duplicated item

8 years agoAlways use unicode ellipsis when ellipsizing
Zbigniew Jędrzejewski-Szmek [Mon, 12 Sep 2016 19:09:36 +0000 (20:09 +0100)]
Always use unicode ellipsis when ellipsizing

We were already unconditionally using the unicode character when the
input string was not pure ASCII, leading to different behaviour in
depending on the input string.

systemd[1]: Starting printit.service.
python3[19962]: foooooooooooooooooooooooooooooooooooo…oooo
python3[19964]: fooąęoooooooooooooooooooooooooooooooo…oooo
python3[19966]: fooąęoooooooooooooooooooooooooooooooo…ąęąę
python3[19968]: fooąęoooooooooooooooooąęąęąęąęąęąęąęą…ąęąę
systemd[1]: Started printit.service.

8 years agoTODO: remove strerror entry
Zbigniew Jędrzejewski-Szmek [Mon, 12 Sep 2016 18:56:50 +0000 (19:56 +0100)]
TODO: remove strerror entry

I believe the remaining call sites are legitimate uses which cannot be
easily replaced with %m.

8 years agotests: get rid of strerror
Zbigniew Jędrzejewski-Szmek [Mon, 12 Sep 2016 18:55:34 +0000 (19:55 +0100)]
tests: get rid of strerror

8 years agotree-wide: use %m in calls to sd_bus_error_set_errnof
Zbigniew Jędrzejewski-Szmek [Mon, 12 Sep 2016 18:54:35 +0000 (19:54 +0100)]
tree-wide: use %m in calls to sd_bus_error_set_errnof

sd_bus_error_set_errnof supports %m, so there's no need to call
strerror manually.

8 years agojournal-verify: get rid of strerror
Zbigniew Jędrzejewski-Szmek [Mon, 12 Sep 2016 18:41:33 +0000 (19:41 +0100)]
journal-verify: get rid of strerror

8 years agomicrohttpd-util: add the trailing newline automatically
Zbigniew Jędrzejewski-Szmek [Mon, 12 Sep 2016 18:33:37 +0000 (19:33 +0100)]
microhttpd-util: add the trailing newline automatically

It's prone to error and annoying to have to add it manually. It was
missing from a few places.

8 years agojournal-remote: implement %m support in mhd_respondf
Zbigniew Jędrzejewski-Szmek [Mon, 12 Sep 2016 18:24:45 +0000 (19:24 +0100)]
journal-remote: implement %m support in mhd_respondf

errno value is not protected (it is undefined after this function returns).
Various mhd_* functions are not documented to protect errno, so this could not
guaranteed anyway.

8 years agoudev: use get_proc_cmdline_key instead of FOREACH_WORD_QUOTED
Zbigniew Jędrzejewski-Szmek [Mon, 12 Sep 2016 18:03:35 +0000 (19:03 +0100)]
udev: use get_proc_cmdline_key instead of FOREACH_WORD_QUOTED

8 years agoman: "disabled on" does not sound right
Zbigniew Jędrzejewski-Szmek [Mon, 12 Sep 2016 17:46:19 +0000 (18:46 +0100)]
man: "disabled on" does not sound right

8 years agofileio: simplify mkostemp_safe() (#4090)
Topi Miettinen [Tue, 13 Sep 2016 06:20:38 +0000 (06:20 +0000)]
fileio: simplify mkostemp_safe() (#4090)

According to its manual page, flags given to mkostemp(3) shouldn't include
O_RDWR, O_CREAT or O_EXCL flags as these are always included. Beyond
those, the only flag that all callers (except a few tests where it
probably doesn't matter) use is O_CLOEXEC, so set that unconditionally.

8 years agoRelicense hwdb/parse_hwdb.py as MIT (#4129)
Zbigniew Jędrzejewski-Szmek [Tue, 13 Sep 2016 06:18:13 +0000 (07:18 +0100)]
Relicense hwdb/parse_hwdb.py as MIT (#4129)

This parser will also be used in libinput, which uses the MIT license, so
relicense this file to the more permissive license to make bidirectional code
flow easier. parse_hwdb.py is only useful during building of the project, and
is not part of the installation, so effectively both licenses are very similar.
In particular, the licensing of binary packages produced by systemd is not
influenced in any way, because the MIT licensed part is not installed.

8 years agohwdb: add Lenovo X1 Tablet pointing stick speed fix (#4128)
dwassenberg [Mon, 12 Sep 2016 12:29:55 +0000 (14:29 +0200)]
hwdb: add Lenovo X1 Tablet pointing stick speed fix (#4128)

Like many other recent thinkpads the factory default pointingstick
sensitivity on these devices is quite low, making the pointingstick
very slow in moving the cursor.

This extends the existing hwdb rules for tweaking the sensitivity to
also apply to the X1 Tablet models.

Signed-off-by: Dennis Wassenberg <dennis.wassenberg@secunet.com>
8 years agoshared/install: fix set-default with empty root (#4118)
Zbigniew Jędrzejewski-Szmek [Sat, 10 Sep 2016 11:07:51 +0000 (12:07 +0100)]
shared/install: fix set-default with empty root (#4118)

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

When root was empty or equal to "/", chroot_symlinks_same was called with
root==NULL, and strjoina returned "", so the code thought both paths are equal
even if they were not. Fix that by always providing a non-null first argument
to strjoina.

8 years agotest-fs-util: also empty TEMP and TMP env vars (#4121)
Marc-Antoine Perennou [Sat, 10 Sep 2016 07:38:04 +0000 (09:38 +0200)]
test-fs-util: also empty TEMP and TMP env vars (#4121)

A follow-up for #3818 (992e8f2).

8 years agoMerge pull request #4119 from keszybz/drop-more-kdbus
Evgeny Vereshchagin [Sat, 10 Sep 2016 06:26:43 +0000 (09:26 +0300)]
Merge pull request #4119 from keszybz/drop-more-kdbus

Drop more kdbus functionality

8 years agoservice: fixup ExecStop for socket-activated shutdown (#4120)
Kyle Russell [Sat, 10 Sep 2016 05:55:36 +0000 (01:55 -0400)]
service: fixup ExecStop for socket-activated shutdown (#4120)

Previous fix didn't consider handling multiple ExecStop commands.

8 years agoshared: recognize DNS names with more than one trailing dot as invalid (#4111)
Martin Pitt [Fri, 9 Sep 2016 15:11:54 +0000 (17:11 +0200)]
shared: recognize DNS names with more than one trailing dot as invalid (#4111)

One trailing dot is valid, but more than one isn't. This also fixes glibc's
posix/tst-getaddrinfo5 test.

Fixes #3978.

8 years agounit: sent change signal before removing the unit if necessary (#4106)
Michael Olbrich [Fri, 9 Sep 2016 15:05:06 +0000 (17:05 +0200)]
unit: sent change signal before removing the unit if necessary (#4106)

If the unit is in the dbus queue when it is removed then the last change
signal is never sent. Fix this by checking the dbus queue and explicitly
send the change signal before sending the remove signal.

8 years agopid1: drop kdbus_fd and all associated logic
Zbigniew Jędrzejewski-Szmek [Fri, 9 Sep 2016 14:16:26 +0000 (15:16 +0100)]
pid1: drop kdbus_fd and all associated logic

8 years agoman: drop kdbus descriptions from sd_b_negotiate_fds(3)
Zbigniew Jędrzejewski-Szmek [Fri, 9 Sep 2016 14:06:06 +0000 (15:06 +0100)]
man: drop kdbus descriptions from sd_b_negotiate_fds(3)

8 years agobuild-sys: drop last reference to --have-kdbus
Zbigniew Jędrzejewski-Szmek [Fri, 9 Sep 2016 14:03:11 +0000 (15:03 +0100)]
build-sys: drop last reference to --have-kdbus

8 years agoservice: Continue shutdown on socket activated unit on termination (#4108)
Kyle Russell [Fri, 9 Sep 2016 02:34:43 +0000 (22:34 -0400)]
service: Continue shutdown on socket activated unit on termination (#4108)

ENOTCONN may be a legitimate return code if the endpoint disappeared,
but the service should still attempt to shutdown cleanly.

8 years agoman: add missing <constant> tag (#4109)
Lucas Werkmeister [Thu, 8 Sep 2016 08:18:16 +0000 (10:18 +0200)]
man: add missing <constant> tag (#4109)

8 years agoMerge pull request #4087 from fsateler/detect-seccomp-filter
Evgeny Vereshchagin [Wed, 7 Sep 2016 03:44:06 +0000 (06:44 +0300)]
Merge pull request #4087 from fsateler/detect-seccomp-filter

seccomp: also detect if seccomp filtering is available

8 years agoREADME: document that CONFIG_SECCOMP_FILTER is required for SECCOMP support
Felipe Sateler [Mon, 5 Sep 2016 22:16:13 +0000 (19:16 -0300)]
README: document that CONFIG_SECCOMP_FILTER is required for SECCOMP support

8 years agonspawn: detect SECCOMP availability, skip audit filter if unavailable
Felipe Sateler [Tue, 6 Sep 2016 23:25:22 +0000 (20:25 -0300)]
nspawn: detect SECCOMP availability, skip audit filter if unavailable

Fail hard if SECCOMP was detected but could not be installed

8 years agoseccomp: also detect if seccomp filtering is enabled
Felipe Sateler [Wed, 31 Aug 2016 13:00:35 +0000 (10:00 -0300)]
seccomp: also detect if seccomp filtering is enabled

In https://github.com/systemd/systemd/pull/4004 , a runtime detection
method for seccomp was added. However, it does not detect the case
where CONFIG_SECCOMP=y but CONFIG_SECCOMP_FILTER=n. This is possible
if the architecture does not support filtering yet.
Add a check for that case too.

While at it, change get_proc_field usage to use PR_GET_SECCOMP prctl,
as that should save a few system calls and (unnecessary) allocations.
Previously, reading of /proc/self/stat was done as recommended by
prctl(2) as safer. However, given that we need to do the prctl call
anyway, lets skip opening, reading and parsing the file.

Code for checking inspired by
https://outflux.net/teach-seccomp/autodetect.html

8 years agoMerge pull request #4084 from ssahani/netfix
Daniel Mack [Fri, 2 Sep 2016 20:08:18 +0000 (22:08 +0200)]
Merge pull request #4084 from ssahani/netfix

fix #4080

8 years agofix #4080
Susant Sahani [Fri, 2 Sep 2016 10:36:58 +0000 (16:06 +0530)]
fix #4080

ethtool_sset_info  adding some extra space to it.

also fix valgrind warning
```
Unloaded link configuration context.
==31690==
==31690== HEAP SUMMARY:
==31690==     in use at exit: 8,192 bytes in 2 blocks
==31690==   total heap usage: 431 allocs, 429 frees, 321,164 bytes allocated
==31690==
==31690== 4,096 bytes in 1 blocks are still reachable in loss record 1 of 2
==31690==    at 0x4C2BBAD: malloc (vg_replace_malloc.c:299)
==31690==    by 0x166B32: mempool_alloc_tile (mempool.c:62)
==31690==    by 0x166BBC: mempool_alloc0_tile (mempool.c:81)
==31690==    by 0x15B8FC: hashmap_base_new (hashmap.c:732)
==31690==    by 0x15B9F7: internal_hashmap_new (hashmap.c:766)
==31690==    by 0x151291: conf_files_list_strv_internal (conf-files.c:103)
==31690==    by 0x1514BA: conf_files_list_strv (conf-files.c:135)
==31690==    by 0x13A1CF: link_config_load (link-config.c:227)
==31690==    by 0x135B68: builtin_net_setup_link_init
(udev-builtin-net_setup_link.c:77)
==31690==    by 0x1306B3: udev_builtin_init (udev-builtin.c:57)
==31690==    by 0x11E984: adm_builtin (udevadm-test-builtin.c:72)
==31690==    by 0x117B4D: run_command (udevadm.c:75)
```
Fixes #4080

8 years agoshell-completion: add systemd-resolve --status (#4085)
Marcos Mello [Fri, 2 Sep 2016 10:18:11 +0000 (07:18 -0300)]
shell-completion: add systemd-resolve --status (#4085)

From be371fe.

8 years agoMerge pull request #4075 from Noeljunior/master
Peter Hutterer [Thu, 1 Sep 2016 09:07:49 +0000 (19:07 +1000)]
Merge pull request #4075 from Noeljunior/master

hwdb: add axis corrections for the Lenovo Yoga 500-14ISK touchpad

8 years agosystemctl: usable status command for special units (#4072)
Cireo [Thu, 1 Sep 2016 09:04:36 +0000 (02:04 -0700)]
systemctl: usable status command for special units (#4072)

Prior to this commit, users could be given an unusable command to run if
they attempted to stop or start special services.  For example:

    $ systemctl stop -- -.mount
    Failed to stop -.mount: Operation refused, unit -.mount may be \
        requested by dependency only.
    See system logs and 'systemctl status -.mount' for details.

    $ systemctl status -.mount
    systemctl: invalid option -- '.'

This adds a '--' to the example command in these situations.

8 years agoMerge pull request #4071 from poettering/some-fixes-3
Martin Pitt [Thu, 1 Sep 2016 06:30:12 +0000 (08:30 +0200)]
Merge pull request #4071 from poettering/some-fixes-3

three trivial fixes

8 years agohwdb: add axis range corrections for Lenovo L430 (#4074)
Peter Hutterer [Thu, 1 Sep 2016 06:29:13 +0000 (16:29 +1000)]
hwdb: add axis range corrections for Lenovo L430 (#4074)

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

8 years agohwdb: add axis corrections for the Lenovo Yoga 500-14ISK touchpad
Noeljunior [Thu, 1 Sep 2016 02:02:10 +0000 (03:02 +0100)]
hwdb: add axis corrections for the Lenovo Yoga 500-14ISK touchpad

8 years agohostnamed: prefer more precise DMI info over ACPI OSPM info
Lennart Poettering [Wed, 31 Aug 2016 18:23:19 +0000 (20:23 +0200)]
hostnamed: prefer more precise DMI info over ACPI OSPM info

(also: add comments about the used numbers)

Fixes: #3930

8 years agoresolved: include d.f.ip6.arpa in default NTA list
Lennart Poettering [Wed, 31 Aug 2016 18:12:11 +0000 (20:12 +0200)]
resolved: include d.f.ip6.arpa in default NTA list

Fixes: #4049

8 years agosd-bus: bump message queue size
Lennart Poettering [Wed, 31 Aug 2016 18:09:31 +0000 (20:09 +0200)]
sd-bus: bump message queue size

Let's bump it further, as this the current limit turns out to be problematic
IRL. Let's bump it to more than twice what we know of is needed.

Fixes: #4068

8 years agomachinectl: split OS field in two; print ip addresses (#4058)
Seraphime Kirkovski [Wed, 31 Aug 2016 18:06:57 +0000 (21:06 +0300)]
machinectl: split OS field in two; print ip addresses (#4058)

This splits the OS field in two : one for the distribution name
and one for the the version id.
Dashes are written for missing fields.
This also prints ip addresses of known machines. The `--max-addresses`
option specifies how much ip addresses we want to see. The default is 1.
When more than one address is written for a machine, a `,` follows it.
If there are more ips than `--max-addresses`, `...` follows the last
address.

8 years agonetworkd: add options to bridge (#4051)
Tobias Jungel [Wed, 31 Aug 2016 18:06:23 +0000 (20:06 +0200)]
networkd: add options to bridge (#4051)

This patch allows to configure AgeingTimeSec, Priority and DefaultPVID for
bridge interfaces.

8 years agoinstall: fix disable when /etc/systemd/system is a symlink (#4063)
Lennart Poettering [Wed, 31 Aug 2016 11:02:02 +0000 (13:02 +0200)]
install: fix disable when /etc/systemd/system is a symlink (#4063)

8 years agonetworkd: do not drop config for unmanaged interfaces (#4033)
Lennart Poettering [Wed, 31 Aug 2016 10:36:55 +0000 (12:36 +0200)]
networkd: do not drop config for unmanaged interfaces (#4033)

Flushing foreign configuration for unmanaged interfaces is outright
evil, especially when it's a regular occurence with Wi-Fi.

Fixes: 3104883ddc24 "networkd: remove route if carrier is lost"
Ref: #3831

8 years agohwdb: 60-keyboard: remove line causing a syntax error (#3999)
Lennart Poettering [Wed, 31 Aug 2016 10:29:51 +0000 (12:29 +0200)]
hwdb: 60-keyboard: remove line causing a syntax error (#3999)