]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
5 years agoMerge pull request #12626 from keszybz/oompolicy-check
Lennart Poettering [Tue, 21 May 2019 16:29:01 +0000 (18:29 +0200)] 
Merge pull request #12626 from keszybz/oompolicy-check

Make the check if oom-killer fired more robust

5 years agonetworkctl: Add support to display min and max MTU 12629/head
Susant Sahani [Tue, 21 May 2019 12:14:36 +0000 (17:44 +0530)] 
networkctl: Add support to display min and max MTU

(networkctl)⚡ % ./networkctl status enp0s31f6                                                                                                                          ~/tt/networkctl/build
● 4: enp0s31f6
       Link File: /usr/lib/systemd/network/99-default.link
    Network File: n/a
            Type: ether
           State: n/a (unmanaged)
            Path: pci-0000:00:1f.6
          Driver: e1000e
          Vendor: Intel Corporation
           Model: Ethernet Connection (2) I219-LM
      HW Address: 8c:16:45:6c:83:b9 (LCFC(HeFei) Electronics Technology co., ltd)
             MTU: 1500
     Minimum MTU: 68
     Maximum MTU: 9000

5 years agosd-netlink: Add netlink property IFLA_MIN_MTU and IFLA_MAX_MTU,
Susant Sahani [Tue, 21 May 2019 12:13:56 +0000 (17:43 +0530)] 
sd-netlink: Add netlink property IFLA_MIN_MTU and IFLA_MAX_MTU,

5 years agonetworkctl: Display MTU
Susant Sahani [Tue, 21 May 2019 11:59:18 +0000 (17:29 +0530)] 
networkctl: Display MTU

Now the MTU is not displayed. with this patch it's fixed.

(networkctl)⚡ % ./networkctl status enp0s31f6                                                                                                                          ~/tt/networkctl/build
WARNING: systemd-networkd is not running, output will be incomplete.

● 4: enp0s31f6
       Link File: /usr/lib/systemd/network/99-default.link
    Network File: n/a
            Type: ether
           State: n/a (unmanaged)
            Path: pci-0000:00:1f.6
          Driver: e1000e
          Vendor: Intel Corporation
           Model: Ethernet Connection (2) I219-LM
      HW Address: 8c:16:45:6c:83:b9 (LCFC(HeFei) Electronics Technology co., ltd)
             MTU: 1500

5 years agoshared/cgroup-show: fix off-by-one in column counting
Zbigniew Jędrzejewski-Szmek [Mon, 13 May 2019 22:05:32 +0000 (00:05 +0200)] 
shared/cgroup-show: fix off-by-one in column counting

We'd get one column too many, and the trailing ellipsis would end up in
the next row.

5 years agotest-utf8: add function headers and rename tests after functions they test
Zbigniew Jędrzejewski-Szmek [Mon, 13 May 2019 22:04:39 +0000 (00:04 +0200)] 
test-utf8: add function headers and rename tests after functions they test

5 years agoIntroduce sc_arg_max() helper
Zbigniew Jędrzejewski-Szmek [Sat, 11 May 2019 07:51:33 +0000 (09:51 +0200)] 
Introduce sc_arg_max() helper

Just a cast and an assert.

5 years agocgtop,test: use consistent capitalization for CGroup
Zbigniew Jędrzejewski-Szmek [Sat, 11 May 2019 07:01:44 +0000 (09:01 +0200)] 
cgtop,test: use consistent capitalization for CGroup

5 years agoanalyze: also print unix time in "timestamp" 12597/head
Zbigniew Jędrzejewski-Szmek [Tue, 21 May 2019 07:50:05 +0000 (09:50 +0200)] 
analyze: also print unix time in "timestamp"

5 years agoanalyze: give a hint about calendar/timestamp/timespan use
Zbigniew Jędrzejewski-Szmek [Fri, 17 May 2019 08:00:52 +0000 (10:00 +0200)] 
analyze: give a hint about calendar/timestamp/timespan use

This should help clear up the confusion in
https://bugzilla.redhat.com/show_bug.cgi?id=1711065.

5 years agobasic/time-util: make output argument optional
Zbigniew Jędrzejewski-Szmek [Tue, 21 May 2019 07:53:49 +0000 (09:53 +0200)] 
basic/time-util: make output argument optional

5 years agoMerge pull request #12510 from keszybz/test-directives
Yu Watanabe [Mon, 20 May 2019 23:35:10 +0000 (08:35 +0900)] 
Merge pull request #12510 from keszybz/test-directives

test: run check-directives.sh as part of the test suite

5 years agoMerge pull request #12519 from keszybz/man-on-demand
Yu Watanabe [Mon, 20 May 2019 23:25:26 +0000 (08:25 +0900)] 
Merge pull request #12519 from keszybz/man-on-demand

Build man pages on demand only

5 years agomeson-vcs-tag: enhance version info generation
Joe Lin [Fri, 10 May 2019 08:58:08 +0000 (08:58 +0000)] 
meson-vcs-tag: enhance version info generation

When build from release tarball and where there is parent .git dir,
this situtaion will get wrong version info. (build with buildroot)

The systemd running show wrong version in dmesg log:
systemd[1]: systemd 2019.02-1086-gf5f17c4 running in system mode.
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Shoule be:
systemd[1]: systemd 241 running in system mode. (-PAM -AUDIT -SEL
            ^^^^^^^^^^^

5 years agoman: systemd-nspawn: Update syntax to launch an image
Kashyap Chamarthy [Mon, 20 May 2019 15:08:04 +0000 (17:08 +0200)] 
man: systemd-nspawn: Update syntax to launch an image

To access a shell on a disk image, the man page on Fedora-29 says to
run: `systemd-nspawn -M Fedora-Cloud-Base-28-1.1.x86_64.raw`.  Let's
try.

List existing images:

    $> machinectl list-images | awk '{print $1,$2}';
    NAME TYPE
    Fedora-Cloud-Base-30… raw

    1 images

Now invoke `systemd-nspawn` as noted in the man page:

    $> systemd-nspawn -M Fedora-Cloud-Base-30-1.2.x86_64.raw
    No image for machine 'Fedora-Cloud-Base-30-1.2.x86_64.raw'.

Removing the ".raw" extension launches the image and gives a shell.
Update the man page to reflect that.

Frantisek Sumsal on #systemd (Freenode) noted the reason: "In older
versions systemd -M accepted both image-name.raw and image-name as a
valid image names, however, on Fedora 29 (systemd-239) with all the
BTRFS stuff around it accepts only -M image-name (without the
extension)"

    - - -

While at it, update the fedora_{latest_version, cloud_release}
variables.

Signed-off-by: Kashyap Chamarthy <kchamart@redhat.com>
5 years agoMerge pull request #12612 from keszybz/bootctl-column
Yu Watanabe [Mon, 20 May 2019 22:45:12 +0000 (07:45 +0900)] 
Merge pull request #12612 from keszybz/bootctl-column

Rename TEST-31-OOMPOLICY to avoid conflict and look in $BOOT for kernels

5 years agosysctl: bump pid range only on 64-bit systems
Yu Watanabe [Sun, 19 May 2019 13:55:35 +0000 (22:55 +0900)] 
sysctl: bump pid range only on 64-bit systems

Closes #12604.

5 years agojson: fix minor memory leak on error path
Lennart Poettering [Mon, 20 May 2019 14:15:40 +0000 (16:15 +0200)] 
json: fix minor memory leak on error path

5 years agocore: do an extra check if oom was triggered when handling sigchild 12626/head
Zbigniew Jędrzejewski-Szmek [Sun, 19 May 2019 13:52:02 +0000 (15:52 +0200)] 
core: do an extra check if oom was triggered when handling sigchild

Should fix #12425.

5 years agocore/service: drop {}
Zbigniew Jędrzejewski-Szmek [Sun, 19 May 2019 11:44:41 +0000 (13:44 +0200)] 
core/service: drop {}

5 years agosmall fixes: make get_process_state() static and fix typo
Topi Miettinen [Mon, 20 May 2019 11:37:03 +0000 (14:37 +0300)] 
small fixes: make get_process_state() static and fix typo

5 years agoMerge pull request #12602 from keszybz/two-man-page-tweaks
Lennart Poettering [Mon, 20 May 2019 14:22:57 +0000 (16:22 +0200)] 
Merge pull request #12602 from keszybz/two-man-page-tweaks

Two man page tweaks

5 years agotravis: use variable to avoid one call 12510/head
Zbigniew Jędrzejewski-Szmek [Mon, 20 May 2019 13:48:05 +0000 (15:48 +0200)] 
travis: use variable to avoid one call

5 years agotests: install perl for CI
Zbigniew Jędrzejewski-Szmek [Fri, 10 May 2019 08:33:37 +0000 (10:33 +0200)] 
tests: install perl for CI

It is useful for various tests (test-directives, test-udev, …).

5 years agotest: run check-directives.sh as part of the test suite
Zbigniew Jędrzejewski-Szmek [Tue, 7 May 2019 18:46:36 +0000 (20:46 +0200)] 
test: run check-directives.sh as part of the test suite

5 years agoMerge pull request #12603 from ssahani/ndisc-blacklist
Yu Watanabe [Sun, 19 May 2019 14:19:27 +0000 (23:19 +0900)] 
Merge pull request #12603 from ssahani/ndisc-blacklist

networkd: Ability to selectively ignore IPv6 prefixes supplied via ro…

5 years agoefivars: allow plus in the entry name
Yu Watanabe [Sat, 18 May 2019 21:18:00 +0000 (06:18 +0900)] 
efivars: allow plus in the entry name

Closes #12572.

5 years agonetworkd: Ability to selectively ignore IPv6 prefixes supplied via router advertisement 12603/head
Susant Sahani [Fri, 17 May 2019 16:21:20 +0000 (21:51 +0530)] 
networkd: Ability to selectively ignore IPv6 prefixes supplied via router advertisement

Closes https://github.com/systemd/systemd/issues/10647

5 years agoTEST-32-OOMPOLICY: drop unneeded headers 12612/head
Zbigniew Jędrzejewski-Szmek [Sun, 19 May 2019 11:03:21 +0000 (13:03 +0200)] 
TEST-32-OOMPOLICY: drop unneeded headers

5 years agotest: rename TEST-31-OOMPOLICY to TEST-32-OOMPOLICY
Zbigniew Jędrzejewski-Szmek [Sun, 19 May 2019 11:00:00 +0000 (13:00 +0200)] 
test: rename TEST-31-OOMPOLICY to TEST-32-OOMPOLICY

TEST-31-DEVICE-ENUMERATION got merged first.

5 years agotest: search $BOOT for kernel+initrd
Zbigniew Jędrzejewski-Szmek [Sun, 19 May 2019 10:05:21 +0000 (12:05 +0200)] 
test: search $BOOT for kernel+initrd

$BOOT is the preferred location for kernel images. If $BOOT does not
exist, -x will print the path to ESP, so well fall back to previous
behaviour.

5 years agobootctl: do not allow -x and -p to be used together
Zbigniew Jędrzejewski-Szmek [Sun, 19 May 2019 10:01:32 +0000 (12:01 +0200)] 
bootctl: do not allow -x and -p to be used together

-x already prints the path to ESP in some circumstances, and allowing
both to be printed seems confusing.

5 years agobootctl: add -x shortcut for --print-boot-path
Zbigniew Jędrzejewski-Szmek [Sun, 19 May 2019 09:55:36 +0000 (11:55 +0200)] 
bootctl: add -x shortcut for --print-boot-path

It's a quite useful option, let's match -p.

5 years agotests: catch broken fuzz targets as early as possible
Evgeny Vereshchagin [Thu, 16 May 2019 03:48:06 +0000 (05:48 +0200)] 
tests: catch broken fuzz targets as early as possible

See https://github.com/google/oss-fuzz/pull/2419.

5 years agobootclt: add missing column
Zbigniew Jędrzejewski-Szmek [Sun, 19 May 2019 09:31:19 +0000 (11:31 +0200)] 
bootclt: add missing column

This got broken somehow in 44e6a5ef825.

5 years agoMerge pull request #12577 from yuwata/test-network-issue-12344
Yu Watanabe [Sun, 19 May 2019 00:26:14 +0000 (09:26 +0900)] 
Merge pull request #12577 from yuwata/test-network-issue-12344

test-network: fix test_bond_operstate

5 years agonetwork: tighten the condition whether link has carrier 12577/head
Yu Watanabe [Fri, 17 May 2019 00:14:59 +0000 (09:14 +0900)] 
network: tighten the condition whether link has carrier

ip command requires that IFF_RUNNING is set for that the link has
carrier.

5 years agotest-network: wait for bond interface to be no-carrier operational state
Yu Watanabe [Wed, 15 May 2019 09:46:41 +0000 (18:46 +0900)] 
test-network: wait for bond interface to be no-carrier operational state

5 years agotest-network: enable universal_newline= flag for subprocess.check_output()
Yu Watanabe [Sat, 18 May 2019 20:39:15 +0000 (05:39 +0900)] 
test-network: enable universal_newline= flag for subprocess.check_output()

5 years agotest-network: remove unnecessary links
Yu Watanabe [Fri, 17 May 2019 06:54:50 +0000 (15:54 +0900)] 
test-network: remove unnecessary links

5 years agotest-network: fix underlying device name
Yu Watanabe [Thu, 16 May 2019 23:40:55 +0000 (08:40 +0900)] 
test-network: fix underlying device name

5 years agotest-network: use check_operstate() helper function where applicable
Yu Watanabe [Wed, 15 May 2019 09:40:49 +0000 (18:40 +0900)] 
test-network: use check_operstate() helper function where applicable

5 years agotest-network: add get_operstate() and check_operstate() helper functions
Yu Watanabe [Wed, 15 May 2019 09:25:30 +0000 (18:25 +0900)] 
test-network: add get_operstate() and check_operstate() helper functions

5 years agotimer: simplify computation of unit activation time
David Tardon [Thu, 16 May 2019 14:10:10 +0000 (16:10 +0200)] 
timer: simplify computation of unit activation time

5 years agonetwork: set_put() here does not returns -EEXIST
Yu Watanabe [Sat, 18 May 2019 03:46:02 +0000 (12:46 +0900)] 
network: set_put() here does not returns -EEXIST

5 years agonetwork: use in6_addr_hash_ops
Yu Watanabe [Sat, 18 May 2019 03:29:40 +0000 (12:29 +0900)] 
network: use in6_addr_hash_ops

5 years agoutil: introduce in6_addr_hash_ops
Yu Watanabe [Sat, 18 May 2019 03:26:59 +0000 (12:26 +0900)] 
util: introduce in6_addr_hash_ops

5 years agoman: move Blacklist= in [DHCP] section
Yu Watanabe [Sat, 18 May 2019 03:23:01 +0000 (12:23 +0900)] 
man: move Blacklist= in [DHCP] section

5 years agoMerge pull request #12586 from ssahani/route-properties
Yu Watanabe [Sat, 18 May 2019 01:31:37 +0000 (10:31 +0900)] 
Merge pull request #12586 from ssahani/route-properties

Route properties

5 years agonetworkd: route add MPLS TTL propagate 12586/head
Susant Sahani [Thu, 16 May 2019 09:49:08 +0000 (15:19 +0530)] 
networkd: route add MPLS TTL propagate

5 years agoMerge pull request #12593 from AdrianBunk/master
Yu Watanabe [Sat, 18 May 2019 01:25:59 +0000 (10:25 +0900)] 
Merge pull request #12593 from AdrianBunk/master

Small changes from Yocto/musl builds

5 years agonetworkd: FOU netdev add support to configure peer port
Susant Sahani [Thu, 16 May 2019 06:46:19 +0000 (12:16 +0530)] 
networkd: FOU netdev add support to configure peer port

5 years agoman: rework forward/reverse table in systemd.unit(5) 12602/head
Zbigniew Jędrzejewski-Szmek [Fri, 17 May 2019 13:40:44 +0000 (15:40 +0200)] 
man: rework forward/reverse table in systemd.unit(5)

Fixes #12600.

5 years agoman: add missing =
Zbigniew Jędrzejewski-Szmek [Fri, 17 May 2019 13:14:49 +0000 (15:14 +0200)] 
man: add missing =

Fixes #12598.

5 years agoshared/varlink: add missing setting of output_buffer_allocated
Zbigniew Jędrzejewski-Szmek [Fri, 17 May 2019 11:35:18 +0000 (13:35 +0200)] 
shared/varlink: add missing setting of output_buffer_allocated

Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14708,
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14735,
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14725,
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=14720,
and probably others.

5 years agoshared/logs-show: show audit logs in blue 12601/head
Zbigniew Jędrzejewski-Szmek [Fri, 17 May 2019 13:03:49 +0000 (15:03 +0200)] 
shared/logs-show: show audit logs in blue

Audit logs always have _TRANSPORT=audit and no PRIORITY= field set.  This means
that they are shown in the default foreground color. There can be quite a lot
of them, and they often repeat the same information that is already logged by
applications, leading to a "wall of text" effect. Let's mark them with a
different color. This splits the logs visually into "normal logs" and "audit
logs".

5 years agoterminal-util: define yellow as "Khaki3"
Zbigniew Jędrzejewski-Szmek [Fri, 17 May 2019 12:51:42 +0000 (14:51 +0200)] 
terminal-util: define yellow as "Khaki3"

Previously used "highlight yellow" was not visible on urxvt, because it
was too light. This color is shown as bold black by urxvt, but at least
it is readable. On other terminals it is shown as various hues of yellow,
pleasant on the eyes and not too bright. The color shown on linux console
could be called orange rather than yellow, but it is still readable.

(I also tried non-highlight "yellow", but it is not as readable.)

This is a follow-up for bb40c12569d017f75774ff9f4b6fb0ac64f9eee0.

5 years agosd-netlink: add route netlink properties
Susant Sahani [Thu, 16 May 2019 09:48:35 +0000 (15:18 +0530)] 
sd-netlink: add route netlink properties

5 years agoshared/calendarspec: make output arg optional
Zbigniew Jędrzejewski-Szmek [Fri, 17 May 2019 07:54:24 +0000 (09:54 +0200)] 
shared/calendarspec: make output arg optional

5 years agoanalyze: add 'timestamp' verb
Zbigniew Jędrzejewski-Szmek [Fri, 17 May 2019 07:39:22 +0000 (09:39 +0200)] 
analyze: add 'timestamp' verb

We had 'calendar' and 'timespan', but the third one was missing.
Also consistently order the verbs as calendar/timestamp/timespan in help.

The output from 'timespan' is highlighted more.

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

5 years agosemaphore: switch to Debian experimental packaging branch
Martin Pitt [Thu, 16 May 2019 20:26:21 +0000 (22:26 +0200)] 
semaphore: switch to Debian experimental packaging branch

Debian unstable is frozen for the Debian 9 release, current development
happens in experimental. After the release, this can be switched back to
master, and the branch set through the `$BRANCH` env variable in the
semaphore config.

5 years agofs-util.h: add missing sys/stat include 12593/head
Andrej Valek [Thu, 18 Apr 2019 08:47:11 +0000 (10:47 +0200)] 
fs-util.h: add missing sys/stat include

fix error:
| error: passing argument 5 of 'chase_symlinks_and_stat' from incompatible pointer type [-Werror=incompatible-pointer-types]

5 years agoReplace the legacy ULONG_LONG_MAX with the C99 ULLONG_MAX
Adrian Bunk [Thu, 16 May 2019 19:20:07 +0000 (22:20 +0300)] 
Replace the legacy ULONG_LONG_MAX with the C99 ULLONG_MAX

5 years agosocket-util.h: include string.h
Chen Qi [Mon, 25 Feb 2019 08:37:19 +0000 (16:37 +0800)] 
socket-util.h: include string.h

Fix the following compile error:
src/basic/socket-util.h:187:30: error: implicit declaration of function 'strnlen'; did you mean 'strlen'? [-Werror=implicit-function-declaration]

5 years agosrc/udev/udev-event.c must #include <sys/wait.h>
Adrian Bunk [Thu, 16 May 2019 19:09:46 +0000 (22:09 +0300)] 
src/udev/udev-event.c must #include <sys/wait.h>

Fixes the following build failure with musl:
../git/src/udev/udev-event.c: In function 'spawn_wait':
../git/src/udev/udev-event.c:600:53: error: 'WEXITED' undeclared (first use in this function); did you mean 'WIFEXITED'?
         r = sd_event_add_child(e, NULL, spawn->pid, WEXITED, on_spawn_sigchld, spawn);
                                                     ^~~~~~~

This looks like a bug in udev-event.c that could also have broken
the compilation after some future glibc header reshuffle.

5 years agomeson: stop creating .wants directories for {multi-user,getty}.target (#12569)
Michael Biebl [Fri, 17 May 2019 06:02:46 +0000 (08:02 +0200)] 
meson: stop creating .wants directories for {multi-user,getty}.target (#12569)

Since preset is supposed to be used to enable the services, there is no
need to pre-create those directories either.

Follow-up for #12164

5 years agoanalyze: drop redundant call to calendar_spec_normalize()
Zbigniew Jędrzejewski-Szmek [Thu, 16 May 2019 21:14:41 +0000 (23:14 +0200)] 
analyze: drop redundant call to calendar_spec_normalize()

calendar_spec_from_string() already does that.

5 years agoudevd: change the default value of udev.children-max (again)
Franck Bui [Mon, 6 May 2019 13:49:23 +0000 (15:49 +0200)] 
udevd: change the default value of udev.children-max (again)

Follow-up for faae64fa3dc22738b3af669579a33055b9d71432, which increased the
default number of udev workers per cpu regardless of how big the system is.

It's not really clear from the commit message if the new number of workers
improved the overall time for the boot process or only reduced the number of
times the max number of children limit was reached (and in this case
5406c36844b3 commit might have been more appropriate in the first place).

But systems with ~1000 CPUs are not rare these days and the worker numbers get
quite large with CPU factor of 8. Spawning more than 2000 workers can't be
healthy on any system, no matter how big.

Indeed the main mistake is the belief that udev is CPU-intensive, and thus the
number of allowed workers has to increase with the number of CPUs. It is not,
at probably has never been. It's I/O bound, and sometimes, bound by resources
such as locks.

This is an argument to:

 - scale only weakly with the number of CPUs, and the rationale to switch back
   to a scale factor C=2 but with a higher offset number which should affect
   systems with a small number of CPUs only. With this patch applied the offset
   is increased from O=8 to O=16.

 - put an absolute maximum limit to make sure no more than 2048 workers are
   spawned no matter how big the system is.

This still provides more workers for the laptop cases (where the number of CPUs
is limited), while avoiding sky-rocketing numbers for big systems.

Note that on most desktop systems, the memory limit will kick in. The following
table collects numbers about children-max. For each scenario, the first column
is the "cpu_limit" limit, and the second number is the minimum amount of memory
for the "cpu_limit" limit to become relevant (with less RAM, memory will limit
the number of children thus "mem_limit" will become the active limit).

       |    > v240    |    < v240     |  this patch   |
 CPUs  | C = 8, O = 8 | C = 2, O = 8  | C = 2, O = 16 |
-------------------------------------------------------
   1   |   16      2  |   10    1.3   |   18       2  |
   2   |   24      3  |   12    1.5   |   20       2  |
   4   |   40      5  |   16      2   |   24       3  |
   8   |   72      9  |   24      3   |   32       4  |
  16   |  136     17  |   40      5   |   48       5  |
  64   |  520     65  |  136     17   |  144      18  |
1024   | 8200   1025  | 2056    263   | 2048     256  |
2048   |16392   2049  | 4104    513   | 2048     256  |

This patch is mainly based on Martin Wilck's analyze and comments.

5 years agoMerge pull request #12515 from evverx/fix-fuzzers-in-local-mode
Zbigniew Jędrzejewski-Szmek [Thu, 16 May 2019 21:04:45 +0000 (23:04 +0200)] 
Merge pull request #12515 from evverx/fix-fuzzers-in-local-mode

travis: make sure the fuzzers can be built in "local" mode

5 years agoMerge pull request #12535 from poettering/color-grey
Zbigniew Jędrzejewski-Szmek [Thu, 16 May 2019 19:15:06 +0000 (21:15 +0200)] 
Merge pull request #12535 from poettering/color-grey

redefine how we select the ANSI color grey

5 years agodocs: add comment about high 32bit range and signed uids
Lennart Poettering [Mon, 13 May 2019 13:23:47 +0000 (15:23 +0200)] 
docs: add comment about high 32bit range and signed uids

5 years agorandom-util: add a longer comment explaining our RDRAND use
Lennart Poettering [Tue, 14 May 2019 13:11:40 +0000 (15:11 +0200)] 
random-util: add a longer comment explaining our RDRAND use

5 years agotests: make docker-run and helper.py happy by not using colons in filenames
Evgeny Vereshchagin [Thu, 16 May 2019 15:53:57 +0000 (17:53 +0200)] 
tests: make docker-run and helper.py happy by not using colons in filenames

This should address https://github.com/google/oss-fuzz/issues/2428

5 years agojournalctl: return a non-zero EC when --grep returns no matches
Frantisek Sumsal [Wed, 15 May 2019 17:28:09 +0000 (19:28 +0200)] 
journalctl: return a non-zero EC when --grep returns no matches

When journalctl is compiled with PCRE2 support, let's return a non-zero
exit code when --grep is used and no match for given pattern is found.
This should allow users to use journalctl --grep in scripts instead of
piping journalctl into grep

Fixes #8152

5 years agovarlink: initialize Varlink with 0
Yu Watanabe [Thu, 16 May 2019 03:35:10 +0000 (12:35 +0900)] 
varlink: initialize Varlink with 0

Closes oss-fuzz#14688.

5 years agoMerge pull request #12378 from rbalint/vt-kbd-reset-check
Lennart Poettering [Thu, 16 May 2019 14:39:38 +0000 (16:39 +0200)] 
Merge pull request #12378 from rbalint/vt-kbd-reset-check

VT kbd reset check

5 years agoMerge pull request #12574 from yuwata/network-mtu-issue-12552
Yu Watanabe [Thu, 16 May 2019 06:25:48 +0000 (08:25 +0200)] 
Merge pull request #12574 from yuwata/network-mtu-issue-12552

network: do not always bump MTU with additional 4bytes

5 years agonetwork: do not use ordered_set_printf() for DOMAINS= or ROUTE_DOMAINS=
Yu Watanabe [Sun, 12 May 2019 20:40:31 +0000 (05:40 +0900)] 
network: do not use ordered_set_printf() for DOMAINS= or ROUTE_DOMAINS=

This partially reverts 5e2a51d588dde4b52c6017ea80b75c16e6e23431.

Fixes #12531.

5 years agoMerge pull request #12549 from yuwata/network-sittun-disable-link-local-addressing...
Yu Watanabe [Thu, 16 May 2019 03:11:05 +0000 (05:11 +0200)] 
Merge pull request #12549 from yuwata/network-sittun-disable-link-local-addressing-12547

network: disable LinkLocalAddressing on sit devices

5 years agoMerge pull request #12576 from ssahani/fou
Yu Watanabe [Thu, 16 May 2019 03:10:35 +0000 (05:10 +0200)] 
Merge pull request #12576 from ssahani/fou

 networkd: FOU tunnel support Local and Peer tunnel addresses

5 years agoMerge pull request #12578 from ssahani/ipvtap
Yu Watanabe [Thu, 16 May 2019 03:01:35 +0000 (05:01 +0200)] 
Merge pull request #12578 from ssahani/ipvtap

networkd: introduce netdev ipvtap

5 years agotest-network: adjust mtu 12574/head
Yu Watanabe [Thu, 16 May 2019 02:49:13 +0000 (11:49 +0900)] 
test-network: adjust mtu

5 years agonetwork: bump MTU bytes only when MTUByte= is not set
Yu Watanabe [Thu, 16 May 2019 02:42:46 +0000 (11:42 +0900)] 
network: bump MTU bytes only when MTUByte= is not set

5 years agonetwork: honor MTUBytes= setting
Yu Watanabe [Wed, 15 May 2019 07:02:06 +0000 (16:02 +0900)] 
network: honor MTUBytes= setting

Closes #12552.

5 years agotest-network: check tunnel netdevs become operstate 'routable' 12549/head
Yu Watanabe [Sun, 12 May 2019 21:55:16 +0000 (06:55 +0900)] 
test-network: check tunnel netdevs become operstate 'routable'

5 years agonetworkd: FOU tunnel support Local and Peer tunnel addresses 12576/head
Susant Sahani [Wed, 15 May 2019 09:17:18 +0000 (14:47 +0530)] 
networkd: FOU tunnel support Local and Peer tunnel addresses

5 years agosd-netlink: Add Fou properties FOU_ATTR_LOCAL_V4/FOU_ATTR_PEER_V4
Susant Sahani [Wed, 15 May 2019 09:16:01 +0000 (14:46 +0530)] 
sd-netlink: Add Fou properties FOU_ATTR_LOCAL_V4/FOU_ATTR_PEER_V4

FOU_ATTR_LOCAL_V6
FOU_ATTR_PEER_V6
FOU_ATTR_PEER_PORT
FOU_ATTR_IFINDEX

5 years agolinux: update headers from current kernel master
Yu Watanabe [Thu, 16 May 2019 01:19:08 +0000 (10:19 +0900)] 
linux: update headers from current kernel master

5 years agotest-network: add a basic test for ipvtap 12578/head
Yu Watanabe [Thu, 16 May 2019 00:48:34 +0000 (09:48 +0900)] 
test-network: add a basic test for ipvtap

5 years agonetworkd: introduce netdev ipvtap
Susant Sahani [Wed, 15 May 2019 10:12:30 +0000 (15:42 +0530)] 
networkd: introduce netdev ipvtap

This patch adds netdev ipvtap that is based on the
IP-VLAN network interface, called ipvtap. An ipvtap device can be created
in the same way as an ipvlan device, using 'kind ipvtap', and then accessed
using the tap user space interface.

5 years agonetwork: disable link local addressing on ipip, gre, sit, and vti netdevs
Yu Watanabe [Sun, 12 May 2019 21:51:54 +0000 (06:51 +0900)] 
network: disable link local addressing on ipip, gre, sit, and vti netdevs

Closes #12547.

5 years agowait-online: ignore -ENODATA on updating link information
Yu Watanabe [Wed, 15 May 2019 04:15:16 +0000 (13:15 +0900)] 
wait-online: ignore -ENODATA on updating link information

When netdev is not created yet, the -ENODATA is returned.

5 years agonetwork: link_check_ready() returns earlier if routes are not configured yet
Yu Watanabe [Sun, 12 May 2019 21:48:31 +0000 (06:48 +0900)] 
network: link_check_ready() returns earlier if routes are not configured yet

link_request_set_routes() calls link_check_ready(), so it is not
necessary to continue that here.

5 years agoMerge pull request #12496 from yuwata/network-on-device-default-route
Yu Watanabe [Wed, 15 May 2019 20:46:25 +0000 (22:46 +0200)] 
Merge pull request #12496 from yuwata/network-on-device-default-route

network: add DefaultRouteOnDevice= setting in [Network] section

5 years agoAdd check to switch VTs only between K_XLATE or K_UNICODE 12378/head
Balint Reczey [Wed, 24 Apr 2019 15:24:02 +0000 (17:24 +0200)] 
Add check to switch VTs only between K_XLATE or K_UNICODE

Switching to K_UNICODE from other than L_XLATE can make the keyboard
unusable and possibly leak keypresses from X.

BugLink: https://launchpad.net/bugs/1803993
5 years agoanalyze: fix help message
Yu Watanabe [Wed, 15 May 2019 08:49:15 +0000 (17:49 +0900)] 
analyze: fix help message

5 years agoman: note that journal does not validate syslog fields
Jan Synacek [Tue, 14 May 2019 08:45:08 +0000 (10:45 +0200)] 
man: note that journal does not validate syslog fields

5 years agoMerge pull request #12565 from zachsmith/fix-log-message-typos
Lennart Poettering [Wed, 15 May 2019 08:50:03 +0000 (10:50 +0200)] 
Merge pull request #12565 from zachsmith/fix-log-message-typos

systemd-sleep: Fix typos in log messages

5 years agoask-password: prevent buffer overrow when reading from keyring
Thadeu Lima de Souza Cascardo [Mon, 13 May 2019 19:58:01 +0000 (16:58 -0300)] 
ask-password: prevent buffer overrow when reading from keyring

When we read from keyring, a temporary buffer is allocated in order to
determine the size needed for the entire data. However, when zeroing that area,
we use the data size returned by the read instead of the lesser size allocate
for the buffer.

That will cause memory corruption that causes systemd-cryptsetup to crash
either when a single large password is used or when multiple passwords have
already been pushed to the keyring.

Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
5 years agotest-network: add a test for IPv4LLRoute= 12496/head
Yu Watanabe [Wed, 15 May 2019 03:43:36 +0000 (12:43 +0900)] 
test-network: add a test for IPv4LLRoute=