systemd.git
6 years agoudevadm: missing initialization of descriptor
Yu Watanabe [Tue, 17 Sep 2019 15:52:07 +0000 (00:52 +0900)]
udevadm: missing initialization of descriptor

(cherry picked from commit 2f5b282aab78bd2378df428c57c5fd1cc09e9f4f)
(cherry picked from commit 477bf86c911a9fdc57341cbf2acf70ae1965edfd)

Gbp-Pq: Name udevadm-missing-initialization-of-descriptor.patch

6 years agonetworkd: unbreak routing_policy_rule_compare_func()
Zbigniew Jędrzejewski-Szmek [Tue, 17 Sep 2019 17:27:58 +0000 (19:27 +0200)]
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)
(cherry picked from commit 19ac31c989d9facbd90c497f3708ee4d88686de8)

Gbp-Pq: Name networkd-unbreak-routing_policy_rule_compare_func.patch

6 years agocore: coldplug possible nop_job
ypf791 [Fri, 19 Jul 2019 10:28:04 +0000 (18:28 +0800)]
core: coldplug possible nop_job

(cherry picked from commit b49e14d5f3081dfcd363d8199a14c0924ae9152f)
(cherry picked from commit a20a2157a85dd277c5dc1398fd75f565ca941933)

Gbp-Pq: Name core-coldplug-possible-nop_job.patch

6 years agotty-ask-pwd-agent: fix message forwarded to wall(1)
Franck Bui [Mon, 16 Sep 2019 20:03:43 +0000 (22:03 +0200)]
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)
(cherry picked from commit eb552417420fa9680b508519e926b140d5a0be25)

Gbp-Pq: Name tty-ask-pwd-agent-fix-message-forwarded-to-wall-1.patch

6 years agocore: Fix setting StatusUnitFormat from config files
Maciej Stanczew [Mon, 16 Sep 2019 00:09:35 +0000 (02:09 +0200)]
core: Fix setting StatusUnitFormat from config files

(cherry picked from commit 6327aa9f6c5701e44541e685c6bf44d3a8c40f50)
(cherry picked from commit 1a3c53c06c878d44d8d0a87244261df55dfbb837)

Gbp-Pq: Name core-Fix-setting-StatusUnitFormat-from-config-files.patch

6 years agonetwork DHCP4: Don't mislead the logs.
Susant Sahani [Mon, 16 Sep 2019 18:46:39 +0000 (20:46 +0200)]
network DHCP4: Don't mislead the logs.

The debug log making sense to the end user as an error.

(cherry picked from commit 61cda4d7964ff00dfa6260f84219720d9b97671a)
(cherry picked from commit 91db81e4dda8d322a4a771fc4f173ce2f147dc88)

Gbp-Pq: Name network-DHCP4-Dont-mislead-the-logs.patch

6 years agoUpdate m4 for selective utmp support. modified: tmpfiles.d/systemd.conf.m4
Donald A. Cupp Jr [Thu, 5 Sep 2019 22:03:54 +0000 (15:03 -0700)]
Update m4 for selective utmp support. modified: tmpfiles.d/systemd.conf.m4

(cherry picked from commit d34a58222de4c2ee93c68411b4f9042f08e5132f)
(cherry picked from commit 6af590838b17e9ca38cde05ecfe6da3faa51704f)

Gbp-Pq: Name Update-m4-for-selective-utmp-support.patch

6 years agocore: restore initialization of u->source_mtime
Franck Bui [Thu, 5 Sep 2019 14:53:50 +0000 (16:53 +0200)]
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)
(cherry picked from commit 6823c907cfda84958fe223ba1a14a48fcd829458)

Gbp-Pq: Name core-restore-initialization-of-u-source_mtime.patch

6 years agomount-setup: relabel items mentioned directly in relabel-extra.d
Benjamin Gilbert [Wed, 11 Sep 2019 03:23:59 +0000 (23:23 -0400)]
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)
(cherry picked from commit 29308bcc1326521081f4d7369945d325c2d41faa)

Gbp-Pq: Name mount-setup-relabel-items-mentioned-directly-in-relabel-e.patch

6 years agoCall getgroups() to know size of supplementary groups array to allocate
Renaud Métrich [Fri, 13 Sep 2019 09:18:18 +0000 (11:18 +0200)]
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)
(cherry picked from commit 8ca1e561657575a619a071ab0c22f474094ef21d)

Gbp-Pq: Name Call-getgroups-to-know-size-of-supplementary-groups-array.patch

6 years agotest: add test cases for empty string match
Yu Watanabe [Wed, 11 Sep 2019 00:06:15 +0000 (09:06 +0900)]
test: add test cases for empty string match

(cherry picked from commit 48d26c90852c22ec94be961f5fbdcf462bb9a6e8)
(cherry picked from commit 5d84a7ad1c2d8d96a3ffb5c275e8704de361b7fc)

Gbp-Pq: Name test-add-test-cases-for-empty-string-match.patch

6 years agoudev: fix multi match
Yu Watanabe [Tue, 10 Sep 2019 23:50:21 +0000 (08:50 +0900)]
udev: fix multi match

Fixes #13518.

(cherry picked from commit 067cc51f2e6eb94305556597f0254f115857ff49)
(cherry picked from commit 1536348cc863f12312d8f7e7ea1826e54561c18f)

Gbp-Pq: Name udev-fix-multi-match.patch

6 years agoman: move TimeoutCleanSec= entry from .service to .exec
Yu Watanabe [Fri, 13 Sep 2019 08:12:59 +0000 (17:12 +0900)]
man: move TimeoutCleanSec= entry from .service to .exec

Follow-up for 12213aed128456af33ff6131a14b637318227346.

Closes #13546.

(cherry picked from commit bd9014c360f86aefcf4d417d50372a5fc29af7ce)
(cherry picked from commit 3ccafef0ad693d991212b6cc934e6aa1ddae37f7)

Gbp-Pq: Name man-move-TimeoutCleanSec-entry-from-.service-to-.exec.patch

6 years agozsh: update bootctl completions
Ronan Pigott [Thu, 12 Sep 2019 17:13:13 +0000 (10:13 -0700)]
zsh: update bootctl completions

(cherry picked from commit 4f6c7276372a458e81402ba38bfae2e3ba3f1154)
(cherry picked from commit 8c0c30a820fa90fcbf4deeb283ffaffbf136a142)

Gbp-Pq: Name zsh-update-bootctl-completions.patch

6 years agoresolved: fix abort when recv() returns 0
Zbigniew Jędrzejewski-Szmek [Thu, 12 Sep 2019 12:52:08 +0000 (14:52 +0200)]
resolved: fix abort when recv() returns 0

https://bugzilla.redhat.com/show_bug.cgi?id=1703598
(cherry picked from commit f731fd5be61858b724e0f13b3ff1131c1977654a)
(cherry picked from commit 0556c247a24027f10b23445741e75ca913e29f06)

Gbp-Pq: Name resolved-fix-abort-when-recv-returns-0.patch

6 years agoman: remove repeated words
Zbigniew Jędrzejewski-Szmek [Sat, 7 Sep 2019 13:16:35 +0000 (15:16 +0200)]
man: remove repeated words

https://github.com/systemd/systemd/commit/b5328434c91b10ad49647e2352e62b1fbdce329d#commitcomment-34989175
(cherry picked from commit ff7cfff0c446ce8ba901f8fc531171fb727a9a5d)
(cherry picked from commit 9a25d7552094a0233ea4745ac127926887bbd906)

Gbp-Pq: Name man-remove-repeated-words.patch

6 years agohwdb: Also mark lis3lv02d sensors in "HP" laptops as being in the base
Bastien Nocera [Thu, 12 Sep 2019 17:02:35 +0000 (19:02 +0200)]
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)
(cherry picked from commit be3be29347817b5f8dfd4f6741a49b07acf630ea)

Gbp-Pq: Name hwdb-Also-mark-lis3lv02d-sensors-in-HP-laptops-as-being-i.patch

6 years agoudev: also logs file permission
Yu Watanabe [Sun, 8 Sep 2019 16:29:27 +0000 (01:29 +0900)]
udev: also logs file permission

(cherry picked from commit 20eef7c55cfdd83f953c6a332aaad0caba4fb60f)
(cherry picked from commit 4b92ffccaa865382f18d0e98cecec1ab1085759e)

Gbp-Pq: Name udev-also-logs-file-permission.patch

6 years agoudev: add missing flag for OPTIONS=static_node
Yu Watanabe [Sun, 8 Sep 2019 16:27:56 +0000 (01:27 +0900)]
udev: add missing flag for OPTIONS=static_node

Fixes RHBZ#1740664.

(cherry picked from commit 5abba26e2f9eb9336e701228220f0ef62c95f316)
(cherry picked from commit 75a2845e5a193aeb120dbccd0da0f174230b6d71)

Gbp-Pq: Name udev-add-missing-flag-for-OPTIONS-static_node.patch

6 years agonetwork: do not abort execution when a config file cannot be loaded
Yu Watanabe [Wed, 11 Sep 2019 09:24:41 +0000 (18:24 +0900)]
network: do not abort execution when a config file cannot be loaded

Closes #13516.

(cherry picked from commit be7110826eb4d7d0fafee4790562e0dedb9d817b)
(cherry picked from commit 19e9fc4262f9063f4986d7336e3921095d6e51ed)

Gbp-Pq: Name network-do-not-abort-execution-when-a-config-file-cannot-.patch

6 years agofileio: update warning message
Yu Watanabe [Wed, 11 Sep 2019 09:11:19 +0000 (18:11 +0900)]
fileio: update warning message

(cherry picked from commit 0f93577647cef5f683d83e89cc63f6124885e708)
(cherry picked from commit 3e1267cf50716ce4f737e6c07294b571a634a512)

Gbp-Pq: Name fileio-update-warning-message.patch

6 years agopstore: fix use after free
Michael Olbrich [Fri, 6 Sep 2019 13:04:01 +0000 (15:04 +0200)]
pstore: fix use after free

The memory is still needed in the sd_journal_sendv() after the 'if' block.

(cherry picked from commit 1e19f5ac0d680a63eccae7ef1fc6ce225dca0bbf)
(cherry picked from commit 1b3156edd291e0882d80a695d035dd30521345d1)

Gbp-Pq: Name pstore-fix-use-after-free.patch

6 years agojournal: Make the output of --update-catalog deterministic
Daniel Edgecumbe [Thu, 5 Sep 2019 14:34:52 +0000 (15:34 +0100)]
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)
(cherry picked from commit f500d2fa81292046e5360b49b38a46f34ca1f397)

Gbp-Pq: Name journal-Make-the-output-of-update-catalog-deterministic.patch

6 years agotravis: protect the systemd organization on Fuzzit from forks
Evgeny Vereshchagin [Fri, 6 Sep 2019 01:44:52 +0000 (01:44 +0000)]
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 inadvertently consuming our CPUs along the way.
Let's prevent this by bailing out early if the script is run outside of
the systemd repository.

(cherry picked from commit 64d0f7042dfbaa306e16996d2fbb331ee7d59dc8)

Gbp-Pq: Name travis-protect-the-systemd-organization-on-Fuzzit-from-fo.patch

6 years agohwdb: Mark lis3lv02d sensors in HP laptops as being in the base
Hans de Goede [Thu, 5 Sep 2019 12:16:12 +0000 (14:16 +0200)]
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.

(cherry picked from commit 4247938ee13e23eae1afcecbe646de5283b7afc2)

Gbp-Pq: Name hwdb-Mark-lis3lv02d-sensors-in-HP-laptops-as-being-in-the.patch

6 years agopo: update Japanese translation
Yu Watanabe [Wed, 4 Sep 2019 00:16:40 +0000 (09:16 +0900)]
po: update Japanese translation

(cherry picked from commit 379158684abd981cc760342aad61b1c813b71eb2)

Gbp-Pq: Name po-update-Japanese-translation.patch

6 years agodocs: fix push recipe in RELEASE.md
Zbigniew Jędrzejewski-Szmek [Tue, 3 Sep 2019 09:34:09 +0000 (11:34 +0200)]
docs: fix push recipe in RELEASE.md

(cherry picked from commit 31e1bbd1cab7f27c60493938a0fd5d9f51ce7cd8)

Gbp-Pq: Name docs-fix-push-recipe-in-RELEASE.md.patch

6 years agoman/systemctl.xml: fix missing "not"
Carlo Teubner [Wed, 4 Sep 2019 17:58:56 +0000 (18:58 +0100)]
man/systemctl.xml: fix missing "not"

(cherry picked from commit f06530d86ba7688067fc2758b5e54599bda1e4a0)

Gbp-Pq: Name man-systemctl.xml-fix-missing-not.patch

6 years agodocs: fix typo in boot loader doc
nikolas [Wed, 4 Sep 2019 16:21:14 +0000 (12:21 -0400)]
docs: fix typo in boot loader doc

(cherry picked from commit 22aba2b96970972e1eaccb91c3e041fdfa6cae87)

Gbp-Pq: Name docs-fix-typo-in-boot-loader-doc.patch

6 years agopstore: fix typo in error message - directoy -> directory
nikolas [Wed, 4 Sep 2019 16:07:06 +0000 (12:07 -0400)]
pstore: fix typo in error message - directoy -> directory

(cherry picked from commit 000e08ca70da3f05b6e71f4ef3a1c3373e1d1b0e)

Gbp-Pq: Name pstore-fix-typo-in-error-message-directoy-directory.patch

6 years agoFix typo in comment: overide -> override
nikolas [Wed, 4 Sep 2019 16:03:56 +0000 (12:03 -0400)]
Fix typo in comment: overide -> override

(cherry picked from commit f7f9c69ac58748e37629015ab288d40b1966ac88)

Gbp-Pq: Name Fix-typo-in-comment-overide-override.patch

6 years agopo: update Polish translation
Piotr Drąg [Tue, 3 Sep 2019 17:05:27 +0000 (19:05 +0200)]
po: update Polish translation

(cherry picked from commit ca8ba8f8c066a47f5c9d033b291f0d6720c658cd)

Gbp-Pq: Name po-update-Polish-translation.patch

6 years agosystemd (243-8) unstable; urgency=medium
Michael Biebl [Tue, 19 Nov 2019 08:17:12 +0000 (08:17 +0000)]
systemd (243-8) unstable; urgency=medium

  * udevadm: ignore EROFS and return earlier.
    Fixes failures of "udevadm trigger" in containers with a readonly /sys.
    (Closes: #944860)
  * udev: silence warning about PROGRAM+= or IMPORT+= rules (Closes: #944917)
  * man: add entry about SpeedMeter= (Closes: #944597)
  * udev: drop SystemCallArchitectures=native from systemd-udevd.service.
    We can't really control what helper programs are run from other udev
    rules. E.g. running i386 binaries under amd64 is a valid use case and
    should not trigger a SIGSYS failure. (Closes: #869719)

[dgit import unpatched systemd 243-8]

6 years agoImport systemd_243-8.debian.tar.xz
Michael Biebl [Tue, 19 Nov 2019 08:17:12 +0000 (08:17 +0000)]
Import systemd_243-8.debian.tar.xz

[dgit import tarball systemd 243-8 systemd_243-8.debian.tar.xz]

6 years agoImport systemd_243.orig.tar.gz
Michael Biebl [Wed, 4 Sep 2019 23:21:49 +0000 (00:21 +0100)]
Import systemd_243.orig.tar.gz

[dgit import orig systemd_243.orig.tar.gz]