platform/upstream/systemd.git
8 years agotests: don't rely on underlying fs in udev-test, use tmpfs instead
Evgeny Vereshchagin [Tue, 5 Apr 2016 06:13:41 +0000 (06:13 +0000)]
tests: don't rely on underlying fs in udev-test, use tmpfs instead

Fixes: #457

8 years agoMerge pull request #2849 from keszybz/offline-updates
Lennart Poettering [Mon, 4 Apr 2016 11:28:35 +0000 (13:28 +0200)]
Merge pull request #2849 from keszybz/offline-updates

Offline updates man page

8 years agoMerge pull request #2949 from keszybz/news
Lennart Poettering [Mon, 4 Apr 2016 11:20:21 +0000 (13:20 +0200)]
Merge pull request #2949 from keszybz/news

NEWS: add some more items

8 years agorun: add colon before printing started units
Lennart Poettering [Mon, 4 Apr 2016 11:11:49 +0000 (13:11 +0200)]
run: add colon before printing started units

run: add colon before printing started units

8 years agoimport: Preserve xattrs in tar files
Mike Gilbert [Mon, 4 Apr 2016 11:08:26 +0000 (07:08 -0400)]
import: Preserve xattrs in tar files

Resolves #2908

8 years agobasic: fallback to fstatat if entry->d_type is DT_UNKNOWN
Evgeny Vereshchagin [Mon, 4 Apr 2016 11:07:56 +0000 (14:07 +0300)]
basic: fallback to fstatat if entry->d_type is DT_UNKNOWN

* tests-functions: improve FSTYPE-support

make clean setup FSTYPE=reiserfs is working fine now :)

* basic: fallback to fstatat if entry->d_type is DT_UNKNOWN

Fixes localectl on reiserfs:

-bash-4.3# mkdir -p /usr/lib/locale
-bash-4.3# stat -f /usr/lib/locale/
  File: "/usr/lib/locale/"
    ID: bdb0322715b5366e Namelen: 255     Type: reiserfs
Block size: 4096
Blocks: Total: 99835      Free: 60262      Available: 60262
Inodes: Total: 0          Free: 0
-bash-4.3# mkdir /usr/lib/locale/HeyHo
-bash-4.3# localectl list-locales --no-pager

-bash-4.3# mount -t tmpfs tmpfs /usr/lib/locale
-bash-4.3# mkdir /usr/lib/locale/HeyHo
-bash-4.3# localectl list-locales --no-pager
HeyHo

8 years agorun: add colon before printing started units
Iago López Galeiras [Mon, 4 Apr 2016 09:28:14 +0000 (11:28 +0200)]
run: add colon before printing started units

In 110ceee58e5bc796c03a7db2109f85a999d5bc2e we removed the period after
printing the started units. This makes copying the unit name easier but
results in improper English.

This adds a colon before printing the units, which makes the output
look better.

8 years agoNEWS: add some more items
Zbigniew Jędrzejewski-Szmek [Sun, 3 Apr 2016 17:16:06 +0000 (13:16 -0400)]
NEWS: add some more items

DUID support is mentioned without details since those are still
being worked out.

8 years agoMerge pull request #2931 from systemd/revert-2843-clock_boottime
Zbigniew Jędrzejewski-Szmek [Sun, 3 Apr 2016 00:55:24 +0000 (20:55 -0400)]
Merge pull request #2931 from systemd/revert-2843-clock_boottime

Revert "time-util: fall back to CLOCK_MONOTONIC if CLOCK_BOOTTIME unsupported"

8 years agoman/offline-updates: more links and support for multiple upgrade services
Zbigniew Jędrzejewski-Szmek [Wed, 16 Mar 2016 01:59:11 +0000 (21:59 -0400)]
man/offline-updates: more links and support for multiple upgrade services

Most of the changes are already implemented in dnf-system-upgrade.service
and packagekit-offline-update.service, so this update mostly changes the
documentation to match status quo.

8 years agocryptsetup: do not 'fail' if trying to detach a nonexistent device
Mantas Mikulėnas [Fri, 1 Apr 2016 18:51:20 +0000 (21:51 +0300)]
cryptsetup: do not 'fail' if trying to detach a nonexistent device

It could be that our .service is being stopped precisely because the
device already disappeared (e.g. due to a manual `cryptsetup close`, or
due to UDisks2 cleaning up).

8 years agoMerge pull request #2937 from thom311/master
Lennart Poettering [Fri, 1 Apr 2016 16:27:23 +0000 (18:27 +0200)]
Merge pull request #2937 from thom311/master

dhcp-identifier: handle too large duid_len argument in dhcp_validate_duid_len()

8 years agoMerge pull request #2939 from bjne/read_only_bindmount
Lennart Poettering [Fri, 1 Apr 2016 16:25:34 +0000 (18:25 +0200)]
Merge pull request #2939 from bjne/read_only_bindmount

dont create bind-mount target when it exists

8 years agoprevent systemd-nspawn from trying to create target
Bjørnar Ness [Fri, 1 Apr 2016 15:31:55 +0000 (17:31 +0200)]
prevent systemd-nspawn from trying to create target
for bind-mounts when they already exist. This allows
bind-mounting over read-only files.

8 years agodhcp-identifier: handle too long duid_len in dhcp_validate_duid_len()
Thomas Haller [Fri, 1 Apr 2016 12:42:22 +0000 (14:42 +0200)]
dhcp-identifier: handle too long duid_len in dhcp_validate_duid_len()

Callers of dhcp_validate_duid_len() know that they must not pass
a zero duid_len. Thus asserting against that is appropriate.
On the other hand, they are not aware of the maximum allowed length
of a duid, as that is the reason why they call dhcp_validate_duid_len()
in the first place. So dhcp_validate_duid_len() should just signal a
regular error.

Thereby, change assert_return() to an assert() as this is an internal
function.

8 years agoMerge pull request #2936 from martinpitt/master
Lennart Poettering [Fri, 1 Apr 2016 12:40:24 +0000 (14:40 +0200)]
Merge pull request #2936 from martinpitt/master

sd-dbus: Fix uint32 property reading

8 years agosystemctl: use correct printf macros for uint32
Martin Pitt [Fri, 1 Apr 2016 12:17:58 +0000 (14:17 +0200)]
systemctl: use correct printf macros for uint32

%u is a simple uint which might not be 32 bit on every platform. Use PRIu32
instead.

8 years agobus-util: Fix reading uint32 properties
Martin Pitt [Fri, 1 Apr 2016 12:16:14 +0000 (14:16 +0200)]
bus-util: Fix reading uint32 properties

Fix copy&paste bug in map_basic() to use the correct data type for
SD_BUS_TYPE_UINT32. Before we were copying the wrong 32 bits into the
destination pointer, resulting in complete garbage on big-endian systems.

Fixes #2927

8 years agoRevert "time-util: fall back to CLOCK_MONOTONIC if CLOCK_BOOTTIME unsupported"
Lennart Poettering [Fri, 1 Apr 2016 07:48:36 +0000 (09:48 +0200)]
Revert "time-util: fall back to CLOCK_MONOTONIC if CLOCK_BOOTTIME unsupported"

8 years agoMerge pull request #2915 from vinaykul/master
Zbigniew Jędrzejewski-Szmek [Thu, 31 Mar 2016 04:51:25 +0000 (00:51 -0400)]
Merge pull request #2915 from vinaykul/master

8 years agoDHCP DUID, IAID configuration options
Vinay Kulkarni [Wed, 30 Mar 2016 23:33:55 +0000 (16:33 -0700)]
DHCP DUID, IAID configuration options

8 years agoMerge pull request #2919 from ColdPie1/udev_get_parent_docs
Daniel Mack [Wed, 30 Mar 2016 16:58:12 +0000 (18:58 +0200)]
Merge pull request #2919 from ColdPie1/udev_get_parent_docs

man: Fix documented parameters for udev_device_get_ functions

8 years agoman: Fix documented parameters for udev_device_get_ functions
Andrew Eikum [Wed, 30 Mar 2016 15:10:36 +0000 (10:10 -0500)]
man: Fix documented parameters for udev_device_get_ functions

8 years agoMerge pull request #2915 from lnykryn/template
Zbigniew Jędrzejewski-Szmek [Wed, 30 Mar 2016 12:40:49 +0000 (08:40 -0400)]
Merge pull request #2915 from lnykryn/template

core: improve error message when starting template without instance

8 years agocore: improve error message when starting template without instance
Lukas Nykryn [Wed, 30 Mar 2016 11:49:50 +0000 (13:49 +0200)]
core: improve error message when starting template without instance

8 years agoMerge pull request #2898 from bengal/lldp-api
Zbigniew Jędrzejewski-Szmek [Wed, 30 Mar 2016 01:00:58 +0000 (21:00 -0400)]
Merge pull request #2898 from bengal/lldp-api

lldp: move public macros to sd-lldp.h and namespace them

8 years agoMerge pull request #2903 from keszybz/cgroup2-v3
Zbigniew Jędrzejewski-Szmek [Wed, 30 Mar 2016 00:25:00 +0000 (20:25 -0400)]
Merge pull request #2903 from keszybz/cgroup2-v3

core: cgroup2 support

8 years agoMerge pull request #2911 from evverx/shutdown-watchdog-infinity
Daniel Mack [Tue, 29 Mar 2016 14:06:30 +0000 (16:06 +0200)]
Merge pull request #2911 from evverx/shutdown-watchdog-infinity

core: ShutdownWatchdogSec=infinity disables the watchdog logic too

8 years agocore: ShutdownWatchdogSec=infinity disables the watchdog logic too
Evgeny Vereshchagin [Tue, 29 Mar 2016 11:04:04 +0000 (11:04 +0000)]
core: ShutdownWatchdogSec=infinity disables the watchdog logic too

This is a follow-up for 947292eef

8 years agoMerge pull request #2907 from evverx/runtime-watchdog-infinity
Daniel Mack [Tue, 29 Mar 2016 08:35:52 +0000 (10:35 +0200)]
Merge pull request #2907 from evverx/runtime-watchdog-infinity

core: RuntimeWatchdogSec=infinity disables the watchdog logic

8 years agoMerge pull request #2905 from keszybz/gcrypt-compilation
Daniel Mack [Tue, 29 Mar 2016 08:35:07 +0000 (10:35 +0200)]
Merge pull request #2905 from keszybz/gcrypt-compilation

build-sys: fix build with libgrcypt disabled

8 years agocore: RuntimeWatchdogSec=infinity disables the watchdog logic
Evgeny Vereshchagin [Mon, 28 Mar 2016 17:17:32 +0000 (17:17 +0000)]
core: RuntimeWatchdogSec=infinity disables the watchdog logic

8 years agoMerge pull request #2906 from Lu-Biao/shared
Zbigniew Jędrzejewski-Szmek [Mon, 28 Mar 2016 14:26:42 +0000 (10:26 -0400)]
Merge pull request #2906 from Lu-Biao/shared

shared: fix a misspelling of "journalctl"

8 years agoshared: fix a misspelling of "journalctl"
Biao Lu [Mon, 28 Mar 2016 17:46:04 +0000 (01:46 +0800)]
shared: fix a misspelling of "journalctl"

8 years agobuild-sys: fix build with libgrcypt disabled
Zbigniew Jędrzejewski-Szmek [Sun, 27 Mar 2016 21:33:54 +0000 (17:33 -0400)]
build-sys: fix build with libgrcypt disabled

- Move gcrypt.h include inside grcrypt-util.h.
- Allow gcrypt-util.[ch] to be compiled even without gcrypt.
This allows the logic in files using gcrypt to be simplified.

- Fix compilation of systemd-resolve without gcrypt.
systemd-resolved already supported that.

Fixes #2711.

8 years agocore: update invoke_sigchld_event() to handle NULL ->sigchld_event()
Tejun Heo [Fri, 25 Mar 2016 15:38:50 +0000 (11:38 -0400)]
core: update invoke_sigchld_event() to handle NULL ->sigchld_event()

After receiving SIGCHLD, one of the ways manager_dispatch_sigchld() maps the
now zombie $PID to its unit is through manager_get_unit_by_pid_cgroup() which
reads /proc/$PID/cgroup and looks up the unit associated with the cgroup path.

On non-unified cgroup hierarchies, a process is immediately migrated to the
root cgroup on death and the cgroup lookup would always have returned the unit
associated with it, making it rather pointless but safe.  On unified hierarchy,
a zombie remains associated with the cgroup that it was associated with at the
time of death and thus manager_get_unit_by_pid_cgroup() will look up the unit
properly.

However, by the time manager_dispatch_sigchld() is running, the original cgroup
may have become empty and it and its associated unit might already have been
removed.  If the cgroup path doesn't yield a match, manager_dispatch_sigchld()
keeps pruning the leaf component.  This means that the function may return a
slice unit for a pid and as a slice doesn't have ->sigchld_event() handler,
calling invoke_sigchld_event() on it causes a segfault.

This patch updates invoke_sigchld_event() so that it skips calling if the
handler is not set.

8 years agocore: update populated event handling in unified hierarchy
Tejun Heo [Fri, 25 Mar 2016 15:38:50 +0000 (11:38 -0400)]
core: update populated event handling in unified hierarchy

Earlier during the development of unified hierarchy, the populated event was
reported through by the dedicated "cgroup.populated" file; however, the
interface was updated so that it's reported through the "populated" field of
"cgroup.events" file.  Update populated event handling logic accordingly.

8 years agocgroup2: use new fstype for unified hierarchy
Alban Crequy [Mon, 7 Dec 2015 00:10:50 +0000 (01:10 +0100)]
cgroup2: use new fstype for unified hierarchy

Since Linux v4.4-rc1, __DEVEL__sane_behavior does not exist anymore and
is replaced by a new fstype "cgroup2".

With this patch, systemd no longer supports the old (unstable) way of
doing unified hierarchy with __DEVEL__sane_behavior and systemd now
requires Linux v4.4 for unified hierarchy.

Non-unified hierarchy is still the default and is unchanged by this
patch.

https://github.com/torvalds/linux/commit/67e9c74b8a873408c27ac9a8e4c1d1c8d72c93ff

8 years agoMerge pull request #2887 from martinpitt/master
Zbigniew Jędrzejewski-Szmek [Fri, 25 Mar 2016 21:06:50 +0000 (17:06 -0400)]
Merge pull request #2887 from martinpitt/master

Fix logind crash if shutdown is called from a non-tty

8 years agolldp: move public macros to sd-lldp.h and namespace them
Beniamino Galvani [Wed, 23 Mar 2016 17:47:26 +0000 (18:47 +0100)]
lldp: move public macros to sd-lldp.h and namespace them

lldp.h contains definitions of LLDP types, subtypes and capabilities which
should be exposed in public headers. Get rid of the file and move those
definitions to sd-lldp.h with the SD_ prefix.

8 years agoMerge pull request #2892 from yuwata/localectl
Daniel Mack [Thu, 24 Mar 2016 09:37:19 +0000 (10:37 +0100)]
Merge pull request #2892 from yuwata/localectl

localectl: remove an unnecessary line break from and align the output of status command

8 years agologind: fix crash when shutdown is not issued from a tty
Martin Pitt [Wed, 23 Mar 2016 07:46:58 +0000 (08:46 +0100)]
logind: fix crash when shutdown is not issued from a tty

It's possible that sd_bus_creds_get_tty() fails and thus
scheduled_shutdown_tty is NULL in method_schedule_shutdown().

Fix logind_wall_tty_filter() to get along with that, by showing the message on
all TTYs, instead of crashing in strcmp().

https://launchpad.net/bugs/1553040

8 years agocore: fix "stoppping" typo
Martin Pitt [Wed, 23 Mar 2016 07:46:39 +0000 (08:46 +0100)]
core: fix "stoppping" typo

8 years agolocalectl: align output of 'localectl status' command
Yu Watanabe [Thu, 24 Mar 2016 01:58:38 +0000 (10:58 +0900)]
localectl: align output of 'localectl status' command

If kernel command line options for locale are given,
the output of 'localectl status' command is not aligned,
for example,
=============
Warning: Settings on kernel command line override system locale settings in /etc/locale.conf.
  Command Line: LANG=C
   System Locale: LANG=C
       VC Keymap: n/a
      X11 Layout: n/a
=============
This commit fixes the alignment.

8 years agolocalectl: remove unnecessary line break
Yu Watanabe [Thu, 24 Mar 2016 01:44:36 +0000 (10:44 +0900)]
localectl: remove unnecessary line break

If /etc/locale.conf is empty or does not exist, the output of
'localectl status' command includes an unnecessary line break
as follows:
=======================
   System Locale: n/a

       VC Keymap: n/a
      X11 Layout: n/a
=======================
This commit removes the line break after the system locale.

8 years agoMerge pull request #2885 from gbrikis/master
Daniel Mack [Wed, 23 Mar 2016 18:48:26 +0000 (19:48 +0100)]
Merge pull request #2885 from gbrikis/master

core: Fix path for opening ffs endpoint ep0

8 years agoMerge pull request #2888 from kinvolk/iaguis/remove-dots
Daniel Mack [Wed, 23 Mar 2016 17:06:07 +0000 (18:06 +0100)]
Merge pull request #2888 from kinvolk/iaguis/remove-dots

run: remove period when printing started units

8 years agocore: Fix path for opening ffs endpoint ep0
Georgia Brikis [Tue, 22 Mar 2016 11:08:42 +0000 (12:08 +0100)]
core: Fix path for opening ffs endpoint ep0

usbffs_address_create() expects an absolute path to the file that is
supposed to be opened. The path specified only leads to the directory
containing the endpoint ep0 not the endpoint itself. This commit adds
the endpoints name to the path.

8 years agorun: remove period when printing started units
Iago López Galeiras [Wed, 23 Mar 2016 14:45:32 +0000 (15:45 +0100)]
run: remove period when printing started units

If you start a unit with systemd-run you usually need its name to
inspect it or stop it. Removing the period makes copying the unit name
easier.

8 years agoMerge pull request #2886 from fbuihuu/systemctl-list-units-inactive-state
Daniel Mack [Wed, 23 Mar 2016 12:08:04 +0000 (13:08 +0100)]
Merge pull request #2886 from fbuihuu/systemctl-list-units-inactive-state

systemctl: no need to pass --all if inactive is explicitly requested …

8 years agoMerge pull request #2883 from keszybz/allow-boms
Daniel Mack [Wed, 23 Mar 2016 12:00:33 +0000 (13:00 +0100)]
Merge pull request #2883 from keszybz/allow-boms

Ignore BOM in config files

8 years agosystemctl: no need to pass --all if inactive is explicitly requested in list-units
Franck Bui [Wed, 23 Mar 2016 06:47:00 +0000 (07:47 +0100)]
systemctl: no need to pass --all if inactive is explicitly requested in list-units

If list-units command is explicitly asked to show inactive units
by using '--state=inactive' option, there's no need to force the user
to pass '--all' option to include inactive units in the search in
this case.

8 years agoIgnore BOM in config files
Zbigniew Jędrzejewski-Szmek [Tue, 22 Mar 2016 03:34:13 +0000 (23:34 -0400)]
Ignore BOM in config files

Fixes #2823.

Also remove unnecessary feof check.

8 years agoMerge pull request #2844 from yarda/uaccess-3dprinters
Zbigniew Jędrzejewski-Szmek [Tue, 22 Mar 2016 15:00:20 +0000 (11:00 -0400)]
Merge pull request #2844 from yarda/uaccess-3dprinters

Add support for 3D printers to uaccess (ID_3DPRINTER).

8 years agoAdded support for 3D printers to uaccess (ID_MAKER_TOOL)
Jaroslav Škarvada [Tue, 15 Mar 2016 13:25:51 +0000 (14:25 +0100)]
Added support for 3D printers to uaccess (ID_MAKER_TOOL)

This is to support 3D printers, CNCs, laser cutters, 3D scanners, etc.

8 years agoMerge pull request #2880 from keszybz/more-tests
Daniel Mack [Tue, 22 Mar 2016 09:23:12 +0000 (10:23 +0100)]
Merge pull request #2880 from keszybz/more-tests

Add some simple tests for env_value_is_valid and env_assignment_is_valid

8 years agoMerge pull request #2879 from ronnychevalier/rc/test_execute_fix
Zbigniew Jędrzejewski-Szmek [Tue, 22 Mar 2016 03:38:28 +0000 (23:38 -0400)]
Merge pull request #2879 from ronnychevalier/rc/test_execute_fix

test-execute: fix execution of AmbientCapabilities tests

8 years agoMerge pull request #2882 from systemd/revert-2818-master
Zbigniew Jędrzejewski-Szmek [Tue, 22 Mar 2016 02:30:53 +0000 (22:30 -0400)]
Merge pull request #2882 from systemd/revert-2818-master

Revert "DHCP DUID and IAID configurability"

8 years agoRevert "DHCP DUID and IAID configurability"
Zbigniew Jędrzejewski-Szmek [Mon, 21 Mar 2016 22:24:24 +0000 (18:24 -0400)]
Revert "DHCP DUID and IAID configurability"

8 years agotest-env-util: test env_{value,assignment}_is_valid
Zbigniew Jędrzejewski-Szmek [Mon, 21 Mar 2016 20:45:37 +0000 (16:45 -0400)]
test-env-util: test env_{value,assignment}_is_valid

Just to make sure everything works as expected in relation
to https://bugzilla.redhat.com/show_bug.cgi?id=1312384.

8 years agotests: rename test-env-replace to test-env-util
Zbigniew Jędrzejewski-Szmek [Mon, 21 Mar 2016 20:17:18 +0000 (16:17 -0400)]
tests: rename test-env-replace to test-env-util

8 years agotest-execute: fix execution of AmbientCapabilities tests
Ronny Chevalier [Mon, 21 Mar 2016 17:40:07 +0000 (18:40 +0100)]
test-execute: fix execution of AmbientCapabilities tests

Wrong tests were executed

8 years agoMerge pull request #2878 from martinpitt/master
Daniel Mack [Mon, 21 Mar 2016 15:47:31 +0000 (16:47 +0100)]
Merge pull request #2878 from martinpitt/master

test-copy: use correct data type for max_bytes

8 years agotest-copy: use correct data type for max_bytes
Martin Pitt [Mon, 21 Mar 2016 13:55:30 +0000 (14:55 +0100)]
test-copy: use correct data type for max_bytes

copy_bytes() and the comparisons in test_copy_bytes_regular_file() expect an
uint64_t, not a size_t. On 32 bit architectures the latter is 32 bit, leading
to truncation errors.

Fixes regression from commit 7a827fcb.

8 years agoMerge pull request #2760 from ronnychevalier/rc/core_no_new_privileges_seccompv3
Daniel Mack [Mon, 21 Mar 2016 11:57:43 +0000 (12:57 +0100)]
Merge pull request #2760 from ronnychevalier/rc/core_no_new_privileges_seccompv3

core: set NoNewPrivileges for seccomp if we don't have CAP_SYS_ADMIN

8 years agoMerge pull request #2826 from thom311/master
Daniel Mack [Mon, 21 Mar 2016 11:44:38 +0000 (12:44 +0100)]
Merge pull request #2826 from thom311/master

lldp: fix starting ttl timer for lldp neighbor

8 years agoMerge pull request #2875 from evverx/nspawn-template-bash-completion
Daniel Mack [Mon, 21 Mar 2016 10:45:23 +0000 (11:45 +0100)]
Merge pull request #2875 from evverx/nspawn-template-bash-completion

bash completion: add --template to nspawn

8 years agobash completion: add --template to nspawn
Evgeny Vereshchagin [Sun, 20 Mar 2016 17:55:58 +0000 (17:55 +0000)]
bash completion: add --template to nspawn

8 years agoman: fix typo in systemd-sysv-generator
Michael Biebl [Sun, 20 Mar 2016 01:24:30 +0000 (02:24 +0100)]
man: fix typo in systemd-sysv-generator

8 years agoMerge pull request #2865 from utezduyar/journald-upload
Daniel Mack [Fri, 18 Mar 2016 12:48:00 +0000 (13:48 +0100)]
Merge pull request #2865 from utezduyar/journald-upload

journal-upload: remove microhttpd dependency

8 years agoMerge pull request #2862 from evverx/nspawn-expose-ports-error
Daniel Mack [Fri, 18 Mar 2016 11:00:29 +0000 (12:00 +0100)]
Merge pull request #2862 from evverx/nspawn-expose-ports-error

nspawn: don't run nspawn --port=... without libiptc support

8 years agojournal-upload: remove microhttpd dependency
Umut Tezduyar Lindskog [Fri, 18 Mar 2016 10:34:51 +0000 (11:34 +0100)]
journal-upload: remove microhttpd dependency

journal-upload doesn't really need microhttpd to run.
Without the dependency, we can cross compile systemd
without microhttpd and get the uploader part of the
remote logging.

Change-Id: I28dfa5ad2aae94e50de1d32713e1827623c3fd1d

8 years agohwdb: Update database of Bluetooth company identifiers
Marcel Holtmann [Fri, 18 Mar 2016 00:05:51 +0000 (01:05 +0100)]
hwdb: Update database of Bluetooth company identifiers

8 years agonspawn: don't run nspawn --port=... without libiptc support
Evgeny Vereshchagin [Thu, 17 Mar 2016 21:06:17 +0000 (21:06 +0000)]
nspawn: don't run nspawn --port=... without libiptc support

We get
$ systemd-nspawn --image /dev/loop1 --port 8080:80 -n -b 3
--port= is not supported, compiled without libiptc support.

instead of a ping-nc-iptables debugging session

8 years agoMerge pull request #2839 from keszybz/use-sendfile-smarter
Daniel Mack [Thu, 17 Mar 2016 19:33:41 +0000 (20:33 +0100)]
Merge pull request #2839 from keszybz/use-sendfile-smarter

Use sendfile smarter

8 years agoMerge pull request #2854 from keszybz/log-colors
Daniel Mack [Thu, 17 Mar 2016 19:30:16 +0000 (20:30 +0100)]
Merge pull request #2854 from keszybz/log-colors

systemd: obey systemd.log_color config

8 years agoMerge pull request #2856 from msekletar/merge-instance
Daniel Mack [Thu, 17 Mar 2016 19:24:39 +0000 (20:24 +0100)]
Merge pull request #2856 from msekletar/merge-instance

core: look for instance when processing template name

8 years agobasic/missing: move syscall definitions to basic/missing_syscall.h
Zbigniew Jędrzejewski-Szmek [Thu, 17 Mar 2016 17:26:13 +0000 (13:26 -0400)]
basic/missing: move syscall definitions to basic/missing_syscall.h

We have a bunch of syscall wrapper definitions and it's easier to
see that they follow the same pattern if they are not interspersed
with other defines.

Change the wrappers to be uniform:
- if __NR_XXX is not defined, do not bother to call the syscall,
  and return -1/ENOSYS immediately.
- do not check __NR_XXX defines if we detect the symbol as defined,
  since we don't need them anyway
- reindent stuff for readability

New file basic/missing_syscall.h is included at the end of missing.h
because it might make use of some of the definitions in missing.h.

8 years agobasic/copy: use copy_file_range()
Zbigniew Jędrzejewski-Szmek [Tue, 15 Mar 2016 23:26:34 +0000 (19:26 -0400)]
basic/copy: use copy_file_range()

For btrfs, c_f_r() is like BTRFS_IOC_CLONE which we already used, but also
works when max_bytes is set. We do call copy_bytes in coredump code with
max_bytes set, and for large files, so we might see some benefit from using
c_f_r() on btrfs.

For other filesystems, c_f_r() falls back to do_splice_direct(), the same as
sendfile, which we already call, so there shouldn't be much difference.

Tested with test-copy and systemd-coredump on Linux 4.3 (w/o c_f_r)
and 4.5 (w/ c_f_r).

8 years agobasic/missing: add copy_file_range
Zbigniew Jędrzejewski-Szmek [Tue, 15 Mar 2016 23:26:30 +0000 (19:26 -0400)]
basic/missing: add copy_file_range

syscall numbers based on:
https://fedora.juszkiewicz.com.pl/syscalls.html

8 years agoMerge pull request #2858 from keszybz/fbdev-uaccess
David Herrmann [Thu, 17 Mar 2016 15:59:46 +0000 (16:59 +0100)]
Merge pull request #2858 from keszybz/fbdev-uaccess

rules: allow users to access frame buffer devices

8 years agoMerge pull request #2848 from keszybz/clang-warnings
Daniel Mack [Thu, 17 Mar 2016 15:41:20 +0000 (16:41 +0100)]
Merge pull request #2848 from keszybz/clang-warnings

Clang warnings

8 years agoMerge pull request #2859 from msekletar/ldconfig-after-localfs
Zbigniew Jędrzejewski-Szmek [Thu, 17 Mar 2016 15:16:23 +0000 (11:16 -0400)]
Merge pull request #2859 from msekletar/ldconfig-after-localfs

units: run ldconfig.service after we have mounted all local file systems

8 years agounits: run ldconfig.service after we have mounted all local file systems
Michal Sekletar [Thu, 17 Mar 2016 13:12:32 +0000 (14:12 +0100)]
units: run ldconfig.service after we have mounted all local file systems

Also drop ConditionNeedsUpdate=|/etc. Regardless if system is updated
online or offline, updating dynamic loader cache should always be
responsibility of packaging tools/scripts.

8 years agosystemd: obey systemd.log_color config
Zbigniew Jędrzejewski-Szmek [Wed, 16 Mar 2016 13:27:37 +0000 (09:27 -0400)]
systemd: obey systemd.log_color config

Fixes #2845.

8 years agorules: allow users to access frame buffer devices
Zbigniew Jędrzejewski-Szmek [Thu, 17 Mar 2016 12:40:39 +0000 (08:40 -0400)]
rules: allow users to access frame buffer devices

For example it allows weston to be started unprivileged.

Related discussion:
https://bugs.freedesktop.org/show_bug.cgi?id=73782
https://lists.freedesktop.org/archives/wayland-devel/2015-May/022005.html
https://bugzilla.redhat.com/show_bug.cgi?id=1226680

8 years agocore: look for instance when processing template name
Michal Sekletar [Wed, 16 Mar 2016 13:52:44 +0000 (14:52 +0100)]
core: look for instance when processing template name

If first attempt to merge units failed and we are trying to do
merge the other way around and at the same time we are working with
template name, then other unit can't possibly be template, because it is
not possible to have template unit running, only instances of the
template. Thus we need to look for already active instance instead.

8 years agoMerge pull request #2855 from tklauser/master
Zbigniew Jędrzejewski-Szmek [Wed, 16 Mar 2016 13:51:25 +0000 (09:51 -0400)]
Merge pull request #2855 from tklauser/master

nspawn: Fix two misspellings of "hierarchy" in error messages

8 years agonspawn: Fix two misspellings of "hierarchy" in error messages
Tobias Klauser [Wed, 16 Mar 2016 13:34:00 +0000 (14:34 +0100)]
nspawn: Fix two misspellings of "hierarchy" in error messages

8 years agoMerge pull request #2851 from eliasp/patch-1
Martin Pitt [Wed, 16 Mar 2016 09:35:30 +0000 (10:35 +0100)]
Merge pull request #2851 from eliasp/patch-1

Reference correct `machinectl` command in 219 NEWS

8 years agoReference correct `machinectl` command in 219 NEWS
Elias Probst [Wed, 16 Mar 2016 08:23:31 +0000 (09:23 +0100)]
Reference correct `machinectl` command in 219 NEWS

NEWS for `219` references `machinectl list-images` to describe the introduced clone feature - this looks like a copy'n'paste problem.
Use `machinectl clone` instead.

8 years agoMerge pull request #2797 from evverx/selinux-use-raw
Zbigniew Jędrzejewski-Szmek [Wed, 16 Mar 2016 05:13:29 +0000 (01:13 -0400)]
Merge pull request #2797 from evverx/selinux-use-raw

selinux: use *_raw API from libselinux

8 years agoman: import "Implementing Offline System Updates"
Zbigniew Jędrzejewski-Szmek [Tue, 28 Jul 2015 12:16:11 +0000 (08:16 -0400)]
man: import "Implementing Offline System Updates"

This imports most of http://www.freedesktop.org/wiki/Software/systemd/SystemUpdates/
to turn it into a man page. Similarly for the man page about generators,
this will make it easier to keep up-to-date, keep a history of changes,
and make it more discoverable for end-users.

8 years agoMerge pull request #2842 from petrosagg/nspawn-doc-fix
Zbigniew Jędrzejewski-Szmek [Wed, 16 Mar 2016 00:21:54 +0000 (20:21 -0400)]
Merge pull request #2842 from petrosagg/nspawn-doc-fix

man: document missing KillSignal= .nspawn option

8 years agoMerge pull request #2843 from NetworkManager/clock_boottime
Zbigniew Jędrzejewski-Szmek [Wed, 16 Mar 2016 00:18:00 +0000 (20:18 -0400)]
Merge pull request #2843 from NetworkManager/clock_boottime

time-util: fall back to CLOCK_MONOTONIC if CLOCK_BOOTTIME unsupported

8 years agoMerge pull request #2847 from whot/hwdb-updates
Zbigniew Jędrzejewski-Szmek [Tue, 15 Mar 2016 23:43:55 +0000 (19:43 -0400)]
Merge pull request #2847 from whot/hwdb-updates

hwdb: correct resolution for Asus x550cc

8 years agobasic/log: remove unused return value
Zbigniew Jędrzejewski-Szmek [Tue, 15 Mar 2016 23:27:36 +0000 (19:27 -0400)]
basic/log: remove unused return value

8 years agobasic/c-rbtree: remove unused function
Zbigniew Jędrzejewski-Szmek [Tue, 15 Mar 2016 23:27:34 +0000 (19:27 -0400)]
basic/c-rbtree: remove unused function

8 years agobasic/macros: clang 3.5 doesn't support alloc_size
Zbigniew Jędrzejewski-Szmek [Tue, 15 Mar 2016 23:27:28 +0000 (19:27 -0400)]
basic/macros: clang 3.5 doesn't support alloc_size

The attribute was removed in commit c047507 in the clang repository as it
was never properly implemented anyway. Avoid using the attribute with
clang because it generates a ton of annoying warnings.

8 years agotest-copy: test with different max_bytes values
Zbigniew Jędrzejewski-Szmek [Tue, 15 Mar 2016 17:55:50 +0000 (13:55 -0400)]
test-copy: test with different max_bytes values