]> git.proxmox.com Git - systemd.git/log
systemd.git
5 years agoRelease version 241-6 to unstable
Michael Biebl [Mon, 8 Jul 2019 09:28:49 +0000 (11:28 +0200)]
Release version 241-6 to unstable

5 years agonetwork: Behave more gracefully when IPv6 has been disabled
Michael Biebl [Thu, 27 Jun 2019 13:54:06 +0000 (15:54 +0200)]
network: Behave more gracefully when IPv6 has been disabled

Ignore any configured IPv6 settings when IPv6 has been disabled in the
kernel via sysctl. Instead of failing completely, continue and log a
warning instead.

Closes: #929469
5 years agoClarify documentation regarding %h/%u/%U specifiers
Michael Biebl [Thu, 27 Jun 2019 13:18:41 +0000 (15:18 +0200)]
Clarify documentation regarding %h/%u/%U specifiers

Make it clear, that setting "User=" has no effect on those specifiers.
Also ensure that "%h" is actually resolved to "/root" for the system
manager instance as documented in the systemd.unit man page.

Closes: #927911
5 years agoask-password: Prevent buffer overflow when reading from keyring
Michael Biebl [Thu, 27 Jun 2019 13:04:49 +0000 (15:04 +0200)]
ask-password: Prevent buffer overflow when reading from keyring

Fixes a possible 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

Closes: #929726
5 years agoRelease version 241-5 to unstable
Michael Biebl [Fri, 24 May 2019 20:59:25 +0000 (22:59 +0200)]
Release version 241-5 to unstable

5 years agoRevert "Add check to switch VTs only between K_XLATE or K_UNICODE"
Michael Biebl [Fri, 24 May 2019 20:42:51 +0000 (22:42 +0200)]
Revert "Add check to switch VTs only between K_XLATE or K_UNICODE"

This change left the keyboard in an unusable state when exiting an X
session.

This reverts commit 5a564c6ef3906c0f3885a3a2aafce772393f760a.

Closes: #929229
5 years agoRelease version 241-4 to unstable
Michael Biebl [Fri, 17 May 2019 19:17:15 +0000 (21:17 +0200)]
Release version 241-4 to unstable

5 years agoDocument that DRM render nodes are now owned by group "render"
Michael Biebl [Fri, 17 May 2019 17:42:45 +0000 (19:42 +0200)]
Document that DRM render nodes are now owned by group "render"

Closes: #926886
5 years agoAdd check to switch VTs only between K_XLATE or K_UNICODE
Michael Biebl [Fri, 17 May 2019 15:52:24 +0000 (17:52 +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.

CVE-2018-20839
Closes: #929116
5 years agorandom-util: Eat up bad RDRAND values seen on AMD CPUs
Michael Biebl [Tue, 14 May 2019 11:13:19 +0000 (13:13 +0200)]
random-util: Eat up bad RDRAND values seen on AMD CPUs

Some AMD CPUs return bogus data via RDRAND after a suspend/resume cycle
while still reporting success via the carry flag.
Filter out invalid data like -1 (and also 0, just to be sure).

Closes: #921267
5 years agoRevert "debian/extra/checkout-upstream: Support submodules"
Michael Biebl [Fri, 17 May 2019 17:50:48 +0000 (19:50 +0200)]
Revert "debian/extra/checkout-upstream: Support submodules"

Upstream CI was switched to use the experimental branch, so let's
revert this commit in master to keep the changes for buster minimal.

This reverts commit 3b8093812487236908d9032b4fffeb2b45788526.

Gbp-Dch: Ignore

5 years agoRevert "Build manpages in .deb variant."
Michael Biebl [Fri, 17 May 2019 10:46:49 +0000 (12:46 +0200)]
Revert "Build manpages in .deb variant."

Upstream CI was switched to use the experimental branch, so let's revert
this commit in master to keep the changes for buster minimal.

This reverts commit 0a67c4bc158dc6af83173558c79790bfa41f30ca.

Gbp-Dch: Ignore

5 years agoBuild manpages in .deb variant.
Dimitri John Ledkov [Fri, 10 May 2019 10:30:15 +0000 (11:30 +0100)]
Build manpages in .deb variant.

Upstream snapshots are switching to building manpages off by default.

Fixes: https://github.com/systemd/systemd/pull/12519
Gbp-Dch: Ignore

5 years agosystemctl: Restore "systemctl reboot ARG" functionality
Michael Biebl [Thu, 9 May 2019 18:13:57 +0000 (20:13 +0200)]
systemctl: Restore "systemctl reboot ARG" functionality

Fixes a regression introduced in v240.

Closes: #928659
5 years agojournal-remote: Do not request Content-Length if Transfer-Encoding is chunked
Michael Biebl [Wed, 24 Apr 2019 10:10:57 +0000 (12:10 +0200)]
journal-remote: Do not request Content-Length if Transfer-Encoding is chunked

Closes: #927008
5 years agodebian/extra/checkout-upstream: Support submodules
Martin Pitt [Fri, 12 Apr 2019 06:24:53 +0000 (08:24 +0200)]
debian/extra/checkout-upstream: Support submodules

See https://github.com/systemd/systemd/pull/12151

5 years agoRelease version 241-3 to unstable
Michael Biebl [Mon, 8 Apr 2019 11:04:26 +0000 (13:04 +0200)]
Release version 241-3 to unstable

urgency=high for the security fix.

5 years agopam-systemd: Use secure_getenv() rather than getenv()
Michael Biebl [Mon, 8 Apr 2019 10:58:57 +0000 (12:58 +0200)]
pam-systemd: Use secure_getenv() rather than getenv()

Fixes a vulnerability in the systemd PAM module which insecurely uses
the environment and lacks seat verification permitting spoofing an
active session to PolicyKit.

CVE-2019-3842

5 years agoboot-and-service autopkgtest: Ensure graphical.target gets booted
Martin Pitt [Wed, 3 Apr 2019 21:48:58 +0000 (23:48 +0200)]
boot-and-service autopkgtest: Ensure graphical.target gets booted

Follow-up to commit fbdd60c51. LXC's debian template sets
multi-user.target by default, so gdm never gets started.

Gbp-Dch: Ignore

5 years agonetwork: Fix routing policy rule issue
Michael Biebl [Wed, 3 Apr 2019 17:32:01 +0000 (19:32 +0200)]
network: Fix routing policy rule issue

When multiple links request a routing policy, make sure they are all
applied correctly.

Closes: #924406
5 years agoEnable boot-and-service autopkgtest in containers
Martin Pitt [Sun, 31 Mar 2019 20:52:16 +0000 (22:52 +0200)]
Enable boot-and-service autopkgtest in containers

- Skip tests which can't work in containers.
- Add missing rsyslog test dependency.
- e2scrub_reap.service fails in containers, ignore (filed as #926138)
- Relax pgrep pattern for gdm, as there's no wayland session in
  containers.

5 years agoEnable udev autopkgtest in containers
Martin Pitt [Sun, 31 Mar 2019 19:48:42 +0000 (21:48 +0200)]
Enable udev autopkgtest in containers

This test doesn't actually need udev.service (which is disabled in
containers) and works fine in LXC.

5 years agoRevert "Drop systemd-timesyncd.service.d/disable-with-time-daemon.conf"
Michael Biebl [Sun, 10 Mar 2019 21:42:43 +0000 (22:42 +0100)]
Revert "Drop systemd-timesyncd.service.d/disable-with-time-daemon.conf"

Apparently Conflicts= are not a reliable mechanism to ensure alternative
NTP implementations take precedence over systemd-timesyncd.

This reverts commit b2ced9989344a22e58cd59427bf1ba6a8bfa9827.

Closes: #902026
5 years ago networkd: Clarify that IPv6 RA uses our own stack, no the kernel's
Michael Biebl [Thu, 28 Mar 2019 20:27:52 +0000 (21:27 +0100)]
 networkd: Clarify that IPv6 RA uses our own stack, no the kernel's

Closes: #815582
5 years agobash-completion: Use default completion for redirect operators
Michael Biebl [Thu, 28 Mar 2019 20:25:22 +0000 (21:25 +0100)]
bash-completion: Use default completion for redirect operators

Closes: #924541
5 years agoudev: Run programs in the specified order
Michael Biebl [Thu, 28 Mar 2019 20:17:48 +0000 (21:17 +0100)]
udev: Run programs in the specified order

Closes: #925190
5 years agoProperly remove duplicate directories from systemd package
Michael Biebl [Wed, 20 Mar 2019 22:39:12 +0000 (23:39 +0100)]
Properly remove duplicate directories from systemd package

When removing duplicate directories from the systemd package, sort the
list of directories in reverse order so we properly delete nested
directories.

Running debdiff shows the following result:

Files in first .deb but not in second
-------------------------------------
drwxr-xr-x  root/root   /etc/udev/
drwxr-xr-x  root/root   /usr/lib/systemd/tests/
drwxr-xr-x  root/root   /usr/lib/systemd/tests/testdata/

Those empty directories clearly do not belong into systemd package.

5 years agoDrop systemd-shim alternative from libpam-systemd
Michael Biebl [Wed, 20 Mar 2019 22:52:16 +0000 (23:52 +0100)]
Drop systemd-shim alternative from libpam-systemd

A fixed systemd-shim package which works with newer versions of systemd
is unlikely to happen given that the systemd-shim package has been
removed from the archive. Drop the alternative dependency from
libpam-systemd accordingly.

5 years agoRelease version 241-2 to unstable
Michael Biebl [Fri, 15 Mar 2019 17:43:46 +0000 (18:43 +0100)]
Release version 241-2 to unstable

5 years agoRevert "debian/tests/boot-smoke: Create "render" system group"
Martin Pitt [Thu, 14 Mar 2019 20:50:00 +0000 (21:50 +0100)]
Revert "debian/tests/boot-smoke: Create "render" system group"

This reverts commit 2ab793c7357a09db5b494dfb1508c5e246b920bf.

Commit 8ca0c4921b4 creates the group in the package now.

Gbp-Dch: Ignore

5 years agoMake /dev/dri/renderD* accessible to group "render"
Michael Biebl [Thu, 14 Mar 2019 16:44:57 +0000 (17:44 +0100)]
Make /dev/dri/renderD* accessible to group "render"

Follow upstream and make render nodes available to a dedicated system
group "render" instead of "video". Keep the uaccess tag for local,
active users.

5 years agoRevert "debian/tests/unit-config: Tolerate path variations"
Martin Pitt [Thu, 14 Mar 2019 12:29:49 +0000 (13:29 +0100)]
Revert "debian/tests/unit-config: Tolerate path variations"

The double slashes got fixed properly upstream again:
https://github.com/systemd/systemd/commit/23bdba61b

This reverts commit 3da52a0fab3cfaf03796f26b68a9ddfa362b699c.

5 years agoudev: Relax udev's dpkg dependency again
Martin Pitt [Tue, 12 Mar 2019 08:35:44 +0000 (09:35 +0100)]
udev: Relax udev's dpkg dependency again

The previous commit added an udev dependency to the latest dpkg. This
broke backportability and upstream CI.

As this is only necessary with SysV init, add an alternative to
systemd-sysv.

Gbp-Dch: Ignore

5 years agoudev.init: Use new s-s-d --notify-await to start udev daemon
Michael Biebl [Mon, 11 Mar 2019 17:33:40 +0000 (18:33 +0100)]
udev.init: Use new s-s-d --notify-await to start udev daemon

Fixes a race condition during startup under SysV init.
Add versioned dependency on dpkg (>= 1.19.3) to ensure that a version
of start-stop-daemon which supports --notify-await is installed.

Closes: #908796
5 years agocore: Remove "." path components from required mount paths
Michael Biebl [Mon, 11 Mar 2019 09:33:05 +0000 (10:33 +0100)]
core: Remove "." path components from required mount paths

Fixes mount related failures when a user's home directory contains "/./"

Closes: #923881
5 years agodebian/tests/timedated: Fix race condition
Martin Pitt [Mon, 11 Mar 2019 07:09:33 +0000 (08:09 +0100)]
debian/tests/timedated: Fix race condition

If timesyncd is running in the testbed, set-ntp does not synchronously
disable it, so wait until it goes down.

Gbp-Dch: Ignore

5 years agoudev: Restore debug level when logging a failure in the external prog called by IMPOR...
Michael Biebl [Sun, 10 Mar 2019 21:09:38 +0000 (22:09 +0100)]
udev: Restore debug level when logging a failure in the external prog called by IMPORT{program}

Closes: #924199
5 years agocgtop: Fix processing of controllers other than CPU
Michael Biebl [Sun, 10 Mar 2019 21:07:46 +0000 (22:07 +0100)]
cgtop: Fix processing of controllers other than CPU

Closes: #921280
5 years agodebian/tests/timedated: Check enabling/disabling NTP
Martin Pitt [Sun, 10 Mar 2019 11:51:14 +0000 (12:51 +0100)]
debian/tests/timedated: Check enabling/disabling NTP

Assert that `timedatectl set-ntp` correctly controls the service, sets
the `org.freedesktop.timedate1 NTP` property, and sends the right
`PropertiesChanged` signal.

This reproduces <https://github.com/systemd/systemd/issues/11944> and
also the earlier <https://github.com/systemd/systemd/issues/9672>.

5 years agotimedated: Fix emitted value when ntp client is enabled/disabled
Martin Pitt [Sun, 10 Mar 2019 19:51:45 +0000 (20:51 +0100)]
timedated: Fix emitted value when ntp client is enabled/disabled

Fixes a regression introduced in 241.

5 years agodebian/tests/boot-smoke: Only check current boot for connection timeouts
Martin Pitt [Sun, 3 Mar 2019 20:21:50 +0000 (21:21 +0100)]
debian/tests/boot-smoke: Only check current boot for connection timeouts

Otherwise we'll catch some

    Failed to resolve group 'render': Connection timed out

messages that happen in earlier boots during VM setup, before the
"render" group is created.

Fixes https://github.com/systemd/systemd/issues/11875

5 years agodebian/tests/boot-smoke: Save complete journal artifact on failure
Martin Pitt [Sun, 3 Mar 2019 11:12:40 +0000 (12:12 +0100)]
debian/tests/boot-smoke: Save complete journal artifact on failure

Gbp-Dch: Ignore

5 years agoDisable fallback DNS servers in resolved
Michael Biebl [Thu, 28 Feb 2019 21:38:00 +0000 (22:38 +0100)]
Disable fallback DNS servers in resolved

Closes: #923081
5 years agoBump Standards-Version to 4.3.0
Martin Pitt [Sun, 3 Mar 2019 10:50:08 +0000 (11:50 +0100)]
Bump Standards-Version to 4.3.0

No changes necessary.

5 years agonetworkd-test: ignore failures of test_route_only_dns* in containers
Martin Pitt [Sun, 3 Mar 2019 10:48:09 +0000 (11:48 +0100)]
networkd-test: ignore failures of test_route_only_dns* in containers

This test exposes a race condition when running in LXC, see issue #11848
for details. Until that is understood and fixed, skip the test as it's
not a recent regression.

5 years agoautopkgtests: Replace obsolete $ADT_* variables
Martin Pitt [Fri, 1 Mar 2019 08:15:23 +0000 (09:15 +0100)]
autopkgtests: Replace obsolete $ADT_* variables

Use their $AUTOPKGTEST_* equivalents.

These were introduced in autopkgtest 4.0 (June 2016), and all our CI
systems use a much newer version.

Gbp-Dch: Short

5 years agodebian/tests/boot-smoke: Create journal and udevdb artifacts on all failures
Martin Pitt [Fri, 1 Mar 2019 08:13:15 +0000 (09:13 +0100)]
debian/tests/boot-smoke: Create journal and udevdb artifacts on all failures

5 years agoFix typo in changelog
Michael Biebl [Thu, 28 Feb 2019 21:27:11 +0000 (22:27 +0100)]
Fix typo in changelog

Found by lintian

Gbp-Dch: Ignore

5 years agodebian/tests/unit-config: Tolerate path variations
Martin Pitt [Wed, 27 Feb 2019 21:38:47 +0000 (22:38 +0100)]
debian/tests/unit-config: Tolerate path variations

Since https://github.com/systemd/systemd/commit/1c2c7c6cb it can happen
that pkg-config paths start with '//'. These are not really meaningful,
so normalize the path before comparison.

5 years agodebian/tests/boot-smoke: Create "render" system group
Martin Pitt [Tue, 26 Feb 2019 22:36:46 +0000 (23:36 +0100)]
debian/tests/boot-smoke: Create "render" system group

When running tests for upstream PRs, this test often fails with

    checking for connection timeouts
    systemd-udevd[1228]: Failed to resolve group 'render': Connection timed out

Which is not the kind of timeout the test is looking for. Create the
group in the test to avoid this.

We explicitly don't create the group in systemd.postinst as we revert
the patch that introduces the group into the udev rules.

5 years agoRelease
Felipe Sateler [Thu, 21 Feb 2019 23:10:47 +0000 (20:10 -0300)]
Release

5 years agoFix various bugs and races in networkd tests
Martin Pitt [Thu, 21 Feb 2019 14:05:30 +0000 (15:05 +0100)]
Fix various bugs and races in networkd tests

This should get the autopkgtest back to green, which regressed with
dnsmasq 2.80.

5 years agodebian/libsystemd0.symbols: Add new symbol from release 241
Martin Pitt [Wed, 20 Feb 2019 23:02:43 +0000 (00:02 +0100)]
debian/libsystemd0.symbols: Add new symbol from release 241

5 years agoBackport upstream fix for Driver= matches in .network files
Felipe Sateler [Mon, 18 Feb 2019 17:51:55 +0000 (14:51 -0300)]
Backport upstream fix for Driver= matches in .network files

5 years agoRefresh patches
Felipe Sateler [Mon, 18 Feb 2019 17:45:14 +0000 (14:45 -0300)]
Refresh patches

5 years agoUpdate upstream source from tag 'upstream/241'
Felipe Sateler [Thu, 21 Feb 2019 00:25:36 +0000 (21:25 -0300)]
Update upstream source from tag 'upstream/241'

Update to upstream version '241'
with Debian dir 75262bc02f4eff531677c82dda9532276d52dcf7

5 years agoRevert "systemd.postinst: Don't fail on an existing dynamic systemd-timesync user"
Martin Pitt [Thu, 21 Feb 2019 21:41:58 +0000 (22:41 +0100)]
Revert "systemd.postinst: Don't fail on an existing dynamic systemd-timesync user"

Stopping timesyncd should also make the user go away. This was an actual
functional regression in <https://github.com/systemd/systemd/pull/11785>.

This reverts commit 5e35275ec4a5edde5052becc6cb95a05c835eeeb.

5 years agosystemd.postinst: Don't fail on an existing dynamic systemd-timesync user
Martin Pitt [Thu, 21 Feb 2019 12:23:11 +0000 (13:23 +0100)]
systemd.postinst: Don't fail on an existing dynamic systemd-timesync user

Some systemd versions have DynamicUser=yes in systemd-timesyncd.service.
adduser does not consider these high UIDs as system user and fails,
which caused package installation failures.

5 years agoNew upstream version 241
Felipe Sateler [Thu, 21 Feb 2019 00:24:33 +0000 (21:24 -0300)]
New upstream version 241

5 years agoMake libpam-systemd Provide: logind, default-logind
Adam Borowski [Mon, 3 Dec 2018 13:43:06 +0000 (14:43 +0100)]
Make libpam-systemd Provide: logind, default-logind

This allows alternate logind implementations such as elogind, without
having to recompile every dependant package -- as long as the client API
remains compatible.

These new virtual packages got policy-approved in #917431.

Closes: #915407
5 years agoreleasing package systemd version 240-6
Martin Pitt [Mon, 18 Feb 2019 13:55:11 +0000 (13:55 +0000)]
releasing package systemd version 240-6

5 years agosd-bus: enforce a size limit on D-Bus object paths
Martin Pitt [Sun, 17 Feb 2019 09:22:32 +0000 (10:22 +0100)]
sd-bus: enforce a size limit on D-Bus object paths

This avoids accessing/modifying
memory outside of the allocated stack region by sending specially
crafted D-Bus messages with very large object paths.

Vulnerability discovered by Chris Coulson <chris.coulson@canonical.com>,
patch provided by Riccardo Schirone <rschiron@redhat.com>.

CVE-2019-6454

5 years agosd-bus: if we receive an invalid dbus message, ignore and proceeed
Martin Pitt [Sun, 17 Feb 2019 09:01:51 +0000 (10:01 +0100)]
sd-bus: if we receive an invalid dbus message, ignore and proceeed

Patch backported from upstream master.

Gbp-Dch: Short

5 years agodebian/tests/storage: fix for LUKS2 and avoid interactive password prompts.
Dimitri John Ledkov [Thu, 14 Feb 2019 14:48:02 +0000 (14:48 +0000)]
debian/tests/storage: fix for LUKS2 and avoid interactive password prompts.

5 years agoudev: Backport upstream preventing mass killings when not running under systemd
Felipe Sateler [Wed, 13 Feb 2019 22:43:22 +0000 (19:43 -0300)]
udev: Backport upstream preventing mass killings when not running under systemd

Closes: #918764
5 years agoFix comment about why we disable hwclock.service
Felipe Sateler [Wed, 13 Feb 2019 12:48:50 +0000 (09:48 -0300)]
Fix comment about why we disable hwclock.service

Systemd nowadays doesn't do it itself because the kernel does it on its own when necessary,
and when not, it is not safe to save the hwclock (eg, there is no certainty the system clock
is correct)

5 years agoBlacklist TEST-10-ISSUE-2467 #11706
Dimitri John Ledkov [Wed, 13 Feb 2019 00:38:21 +0000 (00:38 +0000)]
Blacklist TEST-10-ISSUE-2467 #11706

5 years agoudevadm: Fix segfault with subsystem-match containing '/'
Martin Pitt [Sun, 10 Feb 2019 13:22:53 +0000 (14:22 +0100)]
udevadm: Fix segfault with subsystem-match containing '/'

Closes: #919206
5 years agodebian/tests/control: add socat to upstream tests for pull #11591
Dimitri John Ledkov [Sat, 9 Feb 2019 14:09:43 +0000 (14:09 +0000)]
debian/tests/control: add socat to upstream tests for pull #11591

5 years agodebian/tests/upstream: Mark TEST-13-NSPAWN-SMOKE as flakey.
Dimitri John Ledkov [Mon, 28 Jan 2019 13:48:22 +0000 (13:48 +0000)]
debian/tests/upstream: Mark TEST-13-NSPAWN-SMOKE as flakey.

5 years agod/watch: add version mangle to transform -rc to ~rc
Felipe Sateler [Mon, 28 Jan 2019 13:23:52 +0000 (10:23 -0300)]
d/watch: add version mangle to transform -rc to ~rc

Upstream has started releasing rcs, so let's account for that

5 years agodebian/tests/storage: improve cleanups.
Dimitri John Ledkov [Mon, 28 Jan 2019 12:59:16 +0000 (12:59 +0000)]
debian/tests/storage: improve cleanups.

On fast ppc64el machines, cryptsetup start job may not complete by the time
tearDown is executed. In that case stop, causes to simply cancel the start job
without actually cleaning up the dmsetup node. This leads to failing subsequent
test as it no longer starts with a clean device. Thus ensure the
systemd-cryptsetup unit is started, before stopping it.

Also rmmod scsi_debug module at the end, to allow re-running the test in a
loop.

5 years agoReenable pristine-tar in gbp.conf
Felipe Sateler [Mon, 28 Jan 2019 12:52:45 +0000 (09:52 -0300)]
Reenable pristine-tar in gbp.conf

The pristine-tar bug has been fixed, so we can use it again.

This reverts commit 9fcfbbf6fea15eacfa3fad74240431c5f2c3300e.

5 years agoreleasing package systemd version 240-5
Martin Pitt [Sun, 27 Jan 2019 21:33:17 +0000 (21:33 +0000)]
releasing package systemd version 240-5

5 years agoprocess-util: Fix memory leak
Martin Pitt [Sun, 27 Jan 2019 21:30:32 +0000 (21:30 +0000)]
process-util: Fix memory leak

Closes: #920018
5 years agoBackport upstream patch reverting interface renaming changes.
Felipe Sateler [Fri, 25 Jan 2019 23:52:38 +0000 (20:52 -0300)]
Backport upstream patch reverting interface renaming changes.

Closes: #919390
5 years agoRelease version 240-4 to unstable
Michael Biebl [Sat, 12 Jan 2019 20:52:43 +0000 (21:52 +0100)]
Release version 240-4 to unstable

5 years agomeson: Stop setting -fPIE globally
Michael Biebl [Sat, 12 Jan 2019 20:44:57 +0000 (21:44 +0100)]
meson: Stop setting -fPIE globally

Setting -fPIE globally can lead to miscompilations on certain
architectures. Instead use the b_pie=true build option, which was
introduced in meson 0.49. Bump the Build-Depends accordingly.

Closes: #909396
5 years agosd-device-monitor: Fix ordering of setting buffer size
Michael Biebl [Sat, 12 Jan 2019 20:22:35 +0000 (21:22 +0100)]
sd-device-monitor: Fix ordering of setting buffer size

Fixes an issue with uevents not being processed properly during coldplug
stage and some kernel modules not being loaded via "udevadm trigger".

Closes: #917607
5 years agoImport patches from v240-stable branch (up to f02b5472c6)
Michael Biebl [Sat, 12 Jan 2019 19:57:20 +0000 (20:57 +0100)]
Import patches from v240-stable branch (up to f02b5472c6)

- Fixes a problem in logind closing the controlling terminal when using
  startx. (Closes: #918927)
- Fixes various journald vulnerabilities via attacker controlled alloca.
  (CVE-2018-16864, CVE-2018-16865, Closes: #918841, Closes: #918848)

5 years agoFix shellcheck issues in initramfs-tools scripts
Benjamin Drung [Mon, 17 Dec 2018 15:58:59 +0000 (16:58 +0100)]
Fix shellcheck issues in initramfs-tools scripts

initramfs-tools will use shellcheck on its own code and will probably
ship a shellcheck autopkgtest that checks its hooks and script
directory. That's how the shellcheck issues in systemd's initramfs-tools
scripts were found.

```
shellcheck -e SC1091 $(find debian/extra/initramfs-tools/ -type f)
```

5 years agoRelease version 240-3 to unstable
Michael Biebl [Wed, 9 Jan 2019 17:41:33 +0000 (18:41 +0100)]
Release version 240-3 to unstable

5 years agoRemove old state directory of systemd-timesyncd on upgrades
Michael Biebl [Wed, 9 Jan 2019 17:31:34 +0000 (18:31 +0100)]
Remove old state directory of systemd-timesyncd on upgrades

Otherwise timesyncd will fail to update the clock file if it was created
as /var/lib/private/systemd/timesync/clock.
This was the case when the service was using DynamicUser=yes which it no
longer does in v240.

Closes: #918190
5 years agoman: Update color of journal logs in DEBUG level
Michael Biebl [Wed, 9 Jan 2019 16:51:56 +0000 (17:51 +0100)]
man: Update color of journal logs in DEBUG level

Closes: #917948
5 years agolibudev-util: Make util_replace_whitespace() read only len characters
Michael Biebl [Wed, 9 Jan 2019 16:11:22 +0000 (17:11 +0100)]
libudev-util: Make util_replace_whitespace() read only len characters

Fixes a regression where /dev/disk/by-id/ names had additional
underscores.

5 years agonetwork: Set link state configuring before setting addresses
Michael Biebl [Tue, 8 Jan 2019 21:29:35 +0000 (22:29 +0100)]
network: Set link state configuring before setting addresses

Fixes a crash in systemd-networkd caused by an assertion failure.

Closes: #918658
5 years agoudevadm: Refuse to run trigger, control, settle and monitor commands in chroot
Michael Biebl [Tue, 8 Jan 2019 21:12:45 +0000 (22:12 +0100)]
udevadm: Refuse to run trigger, control, settle and monitor commands in chroot

Closes: #917633
5 years agoudev.init: Trigger add events for subsystems
Michael Biebl [Thu, 3 Jan 2019 23:15:20 +0000 (00:15 +0100)]
udev.init: Trigger add events for subsystems

Update the SysV init script and mimic the behaviour of the initramfs and
systemd-udev-trigger.service which first trigger subsystems and then
devices during the coldplug stage.

See also 4d0d6d9d3123a77466ff1eee6b40990dc3500878.

5 years agoReplace with cherry-picks from upstream master
Michael Biebl [Thu, 3 Jan 2019 21:08:35 +0000 (22:08 +0100)]
Replace with cherry-picks from upstream master

Gbp-Dch: Ignore

5 years agoReplace with cherry-pick from upstream master
Michael Biebl [Fri, 28 Dec 2018 13:32:28 +0000 (14:32 +0100)]
Replace with cherry-pick from upstream master

Gbp-Dch: Ignore

5 years agoFix typo in changelog
Michael Biebl [Thu, 27 Dec 2018 16:53:22 +0000 (17:53 +0100)]
Fix typo in changelog

Gbp-Dch: Ignore

5 years agoRelease version 240-2 to unstable
Michael Biebl [Thu, 27 Dec 2018 13:05:10 +0000 (14:05 +0100)]
Release version 240-2 to unstable

5 years agoDon't bump fs.nr_open in PID 1
Michael Biebl [Sat, 22 Dec 2018 13:48:40 +0000 (14:48 +0100)]
Don't bump fs.nr_open in PID 1

In v240, systemd bumped fs.nr_open in PID 1 to the highest possible
value. Processes that are spawned directly by systemd, will have
RLIMIT_NOFILE be set to 512K (hard).
pam_limits in Debian defaults to "set_all", i.e. for limits which are
not explicitly configured in /etc/security/limits.conf, the value from
PID 1 is taken, which means for login sessions, RLIMIT_NOFILE is set to
the highest possible value instead of 512K. Not every software is able
to deal with such an RLIMIT_NOFILE properly.
While this is arguably a questionable default in Debian's pam_limit,
work around this problem by not bumping fs.nr_open in PID 1.

Closes: #917167
5 years agoudev-event: Do not read stdout or stderr if the pipefd is not created
Michael Biebl [Thu, 27 Dec 2018 09:51:13 +0000 (10:51 +0100)]
udev-event: Do not read stdout or stderr if the pipefd is not created

This fixes problems with device-mapper symlinks no longer being created
or certain devices not being marked as ready.

Closes: #917124
5 years agosd-device: Fix segfault when error occurs in device_new_from_{nulstr,strv}()
Michael Biebl [Thu, 27 Dec 2018 09:44:19 +0000 (10:44 +0100)]
sd-device: Fix segfault when error occurs in device_new_from_{nulstr,strv}()

Fixes a segfault in systemd-udevd when debug logging is enabled.

See https://github.com/systemd/systemd/pull/11244

5 years agotest-json: Check absolute and relative difference in floating point test
Michael Biebl [Thu, 27 Dec 2018 09:01:56 +0000 (10:01 +0100)]
test-json: Check absolute and relative difference in floating point test

Fixes FTBFS due to test-suite failures on armel, armhf and hppa.

See https://github.com/systemd/systemd/pull/11242

Closes: #917215
5 years agoPass seperate dev_t var to device_path_parse_major_minor
Michael Biebl [Thu, 27 Dec 2018 08:48:23 +0000 (09:48 +0100)]
Pass seperate dev_t var to device_path_parse_major_minor

Fixes FTBFS on mips/mipsel (MIPS/O32).

See https://github.com/systemd/systemd/pull/11268

Closes: #917195
5 years agoRelease version 240-1 to unstable
Michael Biebl [Sat, 22 Dec 2018 15:01:58 +0000 (16:01 +0100)]
Release version 240-1 to unstable

5 years agoUpdate nss build options
Michael Biebl [Sat, 22 Dec 2018 02:14:22 +0000 (03:14 +0100)]
Update nss build options

5 years agoUpdate symbols file for libsystemd0
Michael Biebl [Fri, 21 Dec 2018 22:34:32 +0000 (23:34 +0100)]
Update symbols file for libsystemd0