1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-08 05:57:26 +03:00

41585 Commits

Author SHA1 Message Date
Philip Withnall
a0577353f1 man: Add a missing space in machinectl(1)
Signed-off-by: Philip Withnall <withnall@endlessm.com>
(cherry picked from commit abdc57dfe149bfba79af094fd623eb9929eff5e3)
2019-10-10 14:44:15 +02:00
Filipe Brandenburger
693e983988 log: Add missing "%" in "%m" log format strings
These were clearly intended to be "%m" to display the human readable version
of the error stored in errno.

(cherry picked from commit 28b77ab246b88d05076080bbd69ca3c353fa0f27)
2019-10-10 14:44:09 +02:00
Zbigniew Jędrzejewski-Szmek
ea7151b8c4 pid1: do not warn if /run/systemd/relabel-extra.d/ doesn't exist
After all, that is the expected state.

(cherry picked from commit 90b059b608d6c53c8efb23b8791190dffadd1a17)
2019-10-10 14:42:18 +02:00
Michael Biebl
b90549290e man: fix typo
(cherry picked from commit decef551afaff9fb72f3cde499c9c1bcd23e5874)
2019-10-10 14:39:14 +02:00
Yu Watanabe
fab6f010ac dhcp6: use unaligned_read_be32()
Closes #13591.

(cherry picked from commit 0eb5e6d3f08c6b3a41cfa7ac02bcc6302259ed4a)
v243.2
2019-09-21 23:07:00 +02:00
Yu Watanabe
f2d9af4322 dhcp6: add missing option length check
Closes #13578.

(cherry picked from commit 6ffe71d0e22326f8ea5775c188ae0e13573cd123)
2019-09-21 23:07:00 +02:00
Yu Watanabe
ccf797511e ndisc: make first solicit delayed randomly
Closes #13460.

(cherry picked from commit 9973e6c43abb9d3d73fcfee83c886dbd32e700ca)
2019-09-21 23:07:00 +02:00
Yu Watanabe
f2275b6e12 dhcp6: read OPTION_INFORMATION_REFRESH_TIME option
Fixes #13460.

(cherry picked from commit fcb51238e0523d64a698b8738a15bbc1aea9febe)
2019-09-21 23:07:00 +02:00
AsciiWolf
6dfbe58ee7 l10n: update Czech Translation
(cherry picked from commit 1697a28567628ba0c2cb69ab36a7c80e66c01aa0)
2019-09-21 23:07:00 +02:00
Georg Müller
d4cd0e9d32 sd-radv: if lifetime < SD_RADV_DEFAULT_MAX_TIMEOUT_USEC, adjust timeout (#13491)
The RFC states that lifetime (AdvDefaultLifetime) must be at least
MaxRtrAdvInterval (which more or less corresponds to SD_RADV_DEFAULT_MAX_TIMEOUT_USEC
in systemd).

To fulfill this limit, virtually lower MaxRtrAdvInterval and MinRtrAdvInterval
accordingly.

Also check that min is not lower than 3s and max is not lower than 4s.

(cherry picked from commit ef90b6a4fb9509f61b9b917bbe4db7343afe1853)
2019-09-21 23:07:00 +02:00
AsciiWolf
dbefe59259 polkit: fix typo
(cherry picked from commit 984b96aa7a793f74747b0349f0ed68e992ae17b2)
2019-09-21 23:06:59 +02:00
Yu Watanabe
a321507476 sd-netlink: fix invalid assertion
It is natural that n_attiributes is less than type. But in that case,
the message does not contain any message about the type. So, we should
not abort execution with assertion, but just return -ENODATA.

(cherry picked from commit 48fb0d1301c78112360df943f2b6ebeb545b8510)
2019-09-21 23:06:58 +02:00
Yu Watanabe
45dca7fe86 network: do not enter failed state if device's sysfs entry does not exist yet
(cherry picked from commit 4d59e14f321d50cbdec1a2ef702e2d258e377356)
2019-09-21 23:06:58 +02:00
Yu Watanabe
dd83d58796 network: add missing link->network checks
When the function is called, no network file may be assigned to the
link.

(cherry picked from commit b1b0b42e48303134731e017a108c6c334ef5f4c8)
2019-09-21 23:06:58 +02:00
Michal Sekletar
b294305888 path: stop watching path specs once we triggered the target unit
We start watching them again once we get a notification that triggered
unit entered inactive or failed state.

Fixes: #10503
(cherry picked from commit 8fca6944c2ee20c63d62154c8badddc77170b176)
2019-09-21 23:06:58 +02:00
matthiasroos
2cd636c437 hwdb: add Medion Akoya E2292 (#13498)
Fixes #13480.

(cherry picked from commit 358e50fa7fab98509f2ef96cd8d6d7d1af6ed59a)
2019-09-21 23:06:56 +02:00
Rafael Fontenelle
d133bdd1fa po: update Brazilian Portuguese translation
(cherry picked from commit bf55a2df4da0234932c0949801579a9a9dca72bc)
2019-09-21 23:06:56 +02:00
Piotr Drąg
530e09b594 po: update Polish translation
(cherry picked from commit 9870c55ef5df8f079cd972b409ec59414869a256)
2019-09-21 23:06:55 +02:00
Zbigniew Jędrzejewski-Szmek
0c5c3e34c1 polkit: change "revert settings" to "reset settings"
"reset" is more understandable. The verb is "revert", but it might actually be
better to have a description which uses different words instead of duplicating
the name of the command.

379158684a (commitcomment-34992552)
(cherry picked from commit ea2552639b22004c89df26f2374e3d3f1d2acace)
2019-09-21 23:06:53 +02:00
Zbigniew Jędrzejewski-Szmek
73e0f372d8 man: fix description of ARPIntervalSec= units
https://bugzilla.redhat.com/show_bug.cgi?id=1751363
(cherry picked from commit 06c52cc2b7c6cf2729e130f2a23c5a7ce62e27b9)
2019-09-21 23:06:52 +02:00
baybal
5412cc54a1 hwdb: axis override for Dell 9360 touchpad
and possibly other XPS models sharing the touchpad (#13472)

(cherry picked from commit 26fe3af8ae7d52847eb3f2267eaa3df3af90d811)
2019-09-21 23:06:52 +02:00
Frantisek Sumsal
9d4e658529 test: drop the missed || exit 1 expression
...as we've already done in the rest of the testsuite, see
cc469c3dfc398210f38f819d367e68646c71d8da

(cherry picked from commit 67c434b03f8a24f5350f017dfb4b2464406046db)
2019-09-21 23:06:49 +02:00
Yu Watanabe
7ed7ea82f6 udevadm: use usec_add()
Also fixes description of event source.

(cherry picked from commit f6e8ba816577a1a26037a8aeae23fda36d74f0ac)
2019-09-21 23:03:43 +02:00
Yu Watanabe
477bf86c91 udevadm: missing initialization of descriptor
(cherry picked from commit 2f5b282aab78bd2378df428c57c5fd1cc09e9f4f)
2019-09-21 23:03:35 +02:00
Zbigniew Jędrzejewski-Szmek
19ac31c989 networkd: unbreak routing_policy_rule_compare_func()
!r is the same r == 0, so this was short-circuiting the comparison when
streq(a->iff, b->iff) or streq(a->off, b->off). Before the parent commit which
moved those comparisons to the end, this was short-circuiting quite a bit
of the comparison function.

(cherry picked from commit 314ed4f9948bb73300862935546a63294bba1d5c)
2019-09-21 23:03:19 +02:00
ypf791
a20a2157a8 core: coldplug possible nop_job
(cherry picked from commit b49e14d5f3081dfcd363d8199a14c0924ae9152f)
2019-09-21 23:01:49 +02:00
Franck Bui
eb55241742 tty-ask-pwd-agent: fix message forwarded to wall(1)
Commit a1c111c2d12429d2 wrongly replaced '!' with ':' when the message is
forwarded to wall(1).

Indeed in this case we are not requesting the user for providing a password but
instead we are simply displaying a message to suggest starting
tty-ask-password-agent for providing the password.

(cherry picked from commit 65943cc3507bf54390d598e06df60771e913fb72)
2019-09-21 23:01:36 +02:00
Maciej Stanczew
1a3c53c06c core: Fix setting StatusUnitFormat from config files
(cherry picked from commit 6327aa9f6c5701e44541e685c6bf44d3a8c40f50)
2019-09-21 23:00:59 +02:00
Susant Sahani
91db81e4dd network DHCP4: Dont mislead the logs.
The debug log making sense to the end user as an error.

(cherry picked from commit 61cda4d7964ff00dfa6260f84219720d9b97671a)
2019-09-21 23:00:52 +02:00
Donald A. Cupp Jr
6af590838b Update m4 for selective utmp support.
modified:   tmpfiles.d/systemd.conf.m4

(cherry picked from commit d34a58222de4c2ee93c68411b4f9042f08e5132f)
2019-09-21 23:00:46 +02:00
Franck Bui
6823c907cf core: restore initialization of u->source_mtime
During the rework of unit file loading, commit e8630e695232bdfc dropped the
initialization u->source_mtime. This had the bad side effect that generated
units always needed daemon reloading.

(cherry picked from commit 5a1c1b534fe13e60ef9bce0dc680ad6f2a0c577f)
2019-09-21 23:00:29 +02:00
Benjamin Gilbert
29308bcc13 mount-setup: relabel items mentioned directly in relabel-extra.d
relabel_extra() relabels the descendants of directories listed in
relabel-extra.d, but doesn't relabel the files or directories
explicitly named there.  This makes it impossible to use
relabel-extra.d to relabel the root of a filesystem.  Fix by
relabeling the named items too.

(cherry picked from commit 71de68476c1897b8624538ce32218891251fa5f6)
2019-09-21 22:59:54 +02:00
Renaud Métrich
8ca1e56165 Call getgroups() to know size of supplementary groups array to allocate
Resolves RHBZ #1743230 - journalctl dumps core when stack limit is reduced to 256 KB

(cherry picked from commit f5e0b942af1e86993c21f4e5c84342bb10403dac)
2019-09-21 22:59:31 +02:00
Yu Watanabe
5d84a7ad1c test: add test cases for empty string match
(cherry picked from commit 48d26c90852c22ec94be961f5fbdcf462bb9a6e8)
2019-09-21 22:58:46 +02:00
Yu Watanabe
1536348cc8 udev: fix multi match
Fixes #13518.

(cherry picked from commit 067cc51f2e6eb94305556597f0254f115857ff49)
2019-09-21 22:58:22 +02:00
Yu Watanabe
3ccafef0ad man: move TimeoutCleanSec= entry from .service to .exec
Follow-up for 12213aed128456af33ff6131a14b637318227346.

Closes #13546.

(cherry picked from commit bd9014c360f86aefcf4d417d50372a5fc29af7ce)
2019-09-21 22:58:15 +02:00
Ronan Pigott
8c0c30a820 zsh: udpate bootctl completions
(cherry picked from commit 4f6c7276372a458e81402ba38bfae2e3ba3f1154)
2019-09-21 22:58:07 +02:00
Zbigniew Jędrzejewski-Szmek
0556c247a2 resolved: fix abort when recv() returns 0
https://bugzilla.redhat.com/show_bug.cgi?id=1703598
(cherry picked from commit f731fd5be61858b724e0f13b3ff1131c1977654a)
2019-09-21 22:57:43 +02:00
Zbigniew Jędrzejewski-Szmek
9a25d75520 man: remove repeated words
b5328434c9 (commitcomment-34989175)
(cherry picked from commit ff7cfff0c446ce8ba901f8fc531171fb727a9a5d)
2019-09-21 22:57:26 +02:00
Bastien Nocera
be3be29347 hwdb: Also mark lis3lv02d sensors in "HP" laptops as being in the base
We matched "*Hewlett-Packard*" laptops but not "*HP*" laptops, which
caused a regression for the HP Elite Book 850 G3.

Fixes: 4247938ee13e23eae1afcecbe646de5283b7afc2

Closes: #13543
(cherry picked from commit d7cf4984b0e3255ef9d6872c96a210271b0c949a)
2019-09-21 22:56:33 +02:00
Yu Watanabe
4b92ffccaa udev: also logs file permission
(cherry picked from commit 20eef7c55cfdd83f953c6a332aaad0caba4fb60f)
2019-09-21 22:56:16 +02:00
Yu Watanabe
75a2845e5a udev: add missing flag for OPTIONS=static_node
Fixes RHBZ#1740664.

(cherry picked from commit 5abba26e2f9eb9336e701228220f0ef62c95f316)
2019-09-21 22:55:40 +02:00
Yu Watanabe
19e9fc4262 network: do not abort execution when a config file cannot be loaded
Closes #13516.

(cherry picked from commit be7110826eb4d7d0fafee4790562e0dedb9d817b)
2019-09-21 22:55:28 +02:00
Yu Watanabe
3e1267cf50 fileio: update warning message
(cherry picked from commit 0f93577647cef5f683d83e89cc63f6124885e708)
2019-09-21 22:55:18 +02:00
Michael Olbrich
1b3156edd2 pstore: fix use after free
The memory is still needed in the sd_journal_sendv() after the 'if' block.

(cherry picked from commit 1e19f5ac0d680a63eccae7ef1fc6ce225dca0bbf)
2019-09-21 22:54:23 +02:00
Daniel Edgecumbe
f500d2fa81 journal: Make the output of --update-catalog deterministic
The use of an unordered hashmap means that the output of
'journalctl --update-catalog' differs between runs despite there being no
changes in the input files.

By changing all instances of Hashmap to OrderedHashmap we fix this, and now
the catalog is reproducible.

Motivation: https://reproducible-builds.org

Signed-off-by: Daniel Edgecumbe <git@esotericnonsense.com>
(cherry picked from commit a95686bb5d615a73a14d451a25225a566f9af570)
2019-09-21 22:53:07 +02:00
Evgeny Vereshchagin
64d0f7042d travis: protect the systemd organization on Fuzzit from forks
Now that v243 is out, the script has been pulled by forks that are
activated on Travis CI. As a result, all those forks have started to send
their fuzzers to Fuzzit inadvertantly consuming our CPUs along the way.
Let's prevent this by bailing out early if the script is run outside of
the systemd repository.
v243.1
2019-09-06 02:07:37 +00:00
Hans de Goede
4247938ee1 hwdb: Mark lis3lv02d sensors in HP laptops as being in the base
The lis3lv02d sensor used in many HP laptops is (almost) always intented
primarily for freefall detection / HDD protection and (almost) always
is located in the base of a classic clamshell laptop

Before we had the ACCEL_LOCATION udev property the issues this caused
with screen-rotation were fixed by applying a mount-matrix which
translates base-coordinates to display-coordinates assuming the display
is at an angle of exact 90 degrees to the base (swap Y and Z axis).

The comment calls this translate "from "can play neverball" to
"matches Windows 8 orientation"" but what it really does is translate
base accel-axis to display accel-axis. Thus allows rotating the screen
if you put the laptop on its side, but no-one normally does that with
a 2Kg clamshell laptop.

The obviously correct thing to do on classic clamshell laptops (not 2-in-1s)
is to disable automatic screen rotation. This commit marks the accelerometer
in these laptops as being part of the base, which will make iio-sensor-proxy
disable automatic screen rotation.

This commit also removes the orientation-matrix since the unmodified coordinates
coming from the sensor are oriented correctly for a sensor in the base.

Also see the "Bad accelerometer values cause incorrect screen rotation"
systemd-devel mail-thread from September 2019.
2019-09-05 17:04:36 +02:00
Yu Watanabe
379158684a po: update Japanese translation 2019-09-05 13:42:54 +02:00
Zbigniew Jędrzejewski-Szmek
31e1bbd1ca docs: fix push recipe in RELEASE.md 2019-09-05 13:40:31 +02:00