IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an
email to Administrator. User accounts are meant only to access repo
and report issues and/or generate pull requests.
This is a purpose-specific Git hosting for
BaseALT
projects. Thank you for your understanding!
Только зарегистрированные пользователи имеют доступ к сервису!
Для получения аккаунта, обратитесь к администратору.
On running cryptsetup, udevd detects two inotify events for the
underlying device. Running the test on enough fast host, the expected
symlinks based on UUID and disk label are created by the second event.
During processing a uevent for a device, udevd disables the inotify
watch for the device. If the test runs on slow system, the second
inotify event may comes during a udev worker processing the synthesized
uevent triggered by the first inotify event. Hence, no synthesized
uevent for the second inotify event will be generated, and the expected
symlinks will be never created.
To prevent the issue, we need to lock the device during cryptsetup
command is running.
Fixes#32913.
(cherry picked from commit be43c9b0295120e508de1afd739af6fb7603186a)
(cherry picked from commit 640dbad3e75b0c67ed1f6c1afd02ceb313a0d8c8)
(cherry picked from commit b88915b23d9f072703557a283f88803c0898f717)
Fixes https://github.com/systemd/systemd/issues/32680#issuecomment-2120974685.
===
May 21 02:45:08 TEST-74-AUX-UTILS.sh[2475]: + mountpoint /tmp/tmp.eaRV7lSbX2/mnt
May 21 02:45:08 TEST-74-AUX-UTILS.sh[2476]: /tmp/tmp.eaRV7lSbX2/mnt is not a mountpoint
May 21 02:45:08 TEST-74-AUX-UTILS.sh[2449]: + systemd-mount /dev/loop0 /tmp/tmp.eaRV7lSbX2/mnt
May 21 02:45:08 systemd-mount[2477]: Failed to start transient mount unit: Unit tmp-tmp.eaRV7lSbX2-mnt.mount was already loaded or has a fragment file.
===
(cherry picked from commit 4a8ca3c6d595598f64cf532fad2c98ef7481f6a4)
(cherry picked from commit 1a6a2d8f2476f2468ac96bd973bbc890eaa9f996)
(cherry picked from commit 861affe4cf36bd93561aa5fa48bce1c19ae29bf0)
(cherry picked from commit d73a47d259be795958c8aa5b65b002f3d7338b6e)
(cherry picked from commit ce25cf6df1c6f86eabb4f35fae13a3c932096eb9)
(cherry picked from commit d1e36e6a35576dc6b328ecac4e12177bf2851ae7)
Follow-up for ade0789fabbf01b95bf54d32f8cab1217a753f03
The change in behavior was partly intentional, as I think
if both --wait and --pty are used, manually disconnecting
from PTY forwarder should not result in systemd-run exiting
with "Finished with ..." log. But we should check for
--wait here.
Closes#32953
(cherry picked from commit 2b4a691c32aadbc45491c8b243ec3cf7ed910f55)
(cherry picked from commit 46561305cba2fcb64726616e88c7b33b2f23c988)
(cherry picked from commit 4e89a4180e51f0c36c6938df858a424f6362cb3b)
(cherry picked from commit d735753256c1e0f3e9a4efaab17ba9ee47650403)
(cherry picked from commit 867b5a72582ae91e63f3181d707977de583559af)
(cherry picked from commit 7f1f029b13e2fb113b10666cde2754e295626c8d)
Makes it easier to switch for debuggin
(cherry picked from commit 5002b576d8d3d338df90f7d51543f44dd571f388)
(cherry picked from commit c64e96061b2f84c3e97e810cf7d3a1fe94550409)
(cherry picked from commit 72e6c4bc89456250f6b484c43def048c30dafe52)
Due to the bug in kernel 6.9 caused by
8debcf5832,
the net_id udev builtin does not work for netdevsim interface.
So, eni99np1 cannot be used with kernel 6.9 anymore.
Workaround for #32910.
(cherry picked from commit f1f1be71feacb3b5d2fb89e2f6421c23b9320fbd)
(cherry picked from commit 221b2783ba305f4e7c7c8ea8b32cbd2106499c65)
(cherry picked from commit 64719b545fe1a199cdec8cf890d7d6f46883da6c)
(cherry picked from commit 12e0d6ed38a2f8de0a202d2cdbdbda52a866340d)
(cherry picked from commit c047c7e91a88802245efd6a73a8b71b843c586a8)
(cherry picked from commit 5a62dc016d0195a93ca250c1fa4dd46bf993f134)
Fixes a bug introduced by 1ddb263d21099ae42195c2bc382bdf72a7f24f82.
Note, this requires the previous two commits, and cannot backport without them.
Note, before the previous commit, the use-after-free could be triggered
only by Rename() DBus method, and could not by RenameImage(), as we did not
cache Image object when RenameImage() method is called. And machinectl
always uses RenameImage(). Hence, the issue could be triggered only when
Rename() DBus method is explicitly called by e.g. busctl.
With the previous commit, the Image object passed to the function is
always cached. Hence, the issue could be triggered even with machinectl
command, and this fix is important.
(cherry picked from commit 3b1b2d4e3d544c593399e914fd1c3a5f61d7e827)
(cherry picked from commit c937169b0ef8403bb7a35741e2587dc5473601b8)
(cherry picked from commit 3102599b3bbbe4a47d6b8b408f6e2722fe40316d)
Previously, Image objects were only cached when reading properties or
methods in the org.freedesktop.machine1.Image interface are called.
This makes that, when a method in the main interface (org.freedesktop.machine1)
for an image is called, also acquire the Image object from the cache,
and if not cached, create Image object and put into the cache, like we
do for org.freedesktop.machine1.Image.
Otherwise, if some properties of an image are updated by methods in the main
interface, e.g. MarkImageReadOnly(), the changes do not applied to the cached
Image object, and subsequent read of proerties through the interface for the
image, e.g. ReadOnly property, may provide outdated values.
Follow-up for 1ddb263d21099ae42195c2bc382bdf72a7f24f82.
Fixes#32888.
(cherry picked from commit c6aeb9b596749b263145346c7fa2c6bf7fbd3867)
(cherry picked from commit bf270a3b06eff023b13e252d1d9c1876449b79e1)
(cherry picked from commit a898cb9f0bde177c739e7fc6df39d4ee14cd1cf3)
Preparation for the next commit. No functional change.
(cherry picked from commit 6d917da1409eae3b6988ed56cc4812252058ecdb)
(cherry picked from commit aa6822f2bdca04feb0f3d7224da2d29b02578fb9)
(cherry picked from commit cde3c5af2d067975e4ec266f7673c6584415f7b7)
Same as the previous commit, but for SetLimit DBus method vs Limit
property and friends.
(cherry picked from commit 96ac6d3fccfe84eeda806da3d132a1374f8b5216)
(cherry picked from commit a2349e8ce6b511f24b2ecea58be5ada820a41058)
(cherry picked from commit 77ec2692ea254a30d81f02f191d0955b00dae1ad)
Otherwise, ReadOnly DBus property in org.freedesktop.machine1.Image or
org.freedesktop.portable1.Image will not be updated by MarkReadOnly DBus
method.
(cherry picked from commit 608c321f232105966e509265c13ae061c03b9f77)
(cherry picked from commit c16f4aaf6588238b979bbab74e0327c736eb16f6)
(cherry picked from commit e268f146d60380271a70c6e6aed2ad5b44986fcd)
The rationale is similar to 40e1f4ea7458a0a80eaf1ef356e52bfe0835412e.
Currently, we only pass TTYPath=/dev/pts/... to
the transient service spawned by systemd-run.
This is a bit problematic though, when ExecStartPre=
or ExecStopPost= is used. Since when these control
processes get to run, the main process is not yet
started/has already exited, hence the slave suffers
from the same vhangup problem as the mentioned commit.
By passing the slave fd in, the service manager will
hold the fd open as long as the service is alive.
Fixes#32916
(cherry picked from commit 28459ba1f4df824d5ef7f7d1a9acb6953ea24045)
(cherry picked from commit 182b80bede28ef6e9c0d0edd34c56a467d22dee5)
(cherry picked from commit 369d7d4083a835e654ae02f92d559293bde66919)
(cherry picked from commit ade0789fabbf01b95bf54d32f8cab1217a753f03)
(cherry picked from commit 920dbc7b46c175ddc0ecf426ac9f855d90081160)
(cherry picked from commit 3b01bd37f343ca0e27f21471aaa5e25f12515e2b)
Follow-up for 6c2d47d6d3ad25ffd7527c7f4de31457ee1b25d8.
Fixes the following unexpected skip:
```
[ 6.163670] TEST-64-UDEV-STORAGE.sh[596]: + modinfo btrfs
[ 6.164102] TEST-64-UDEV-STORAGE.sh[726]: /usr/lib/systemd/tests/testdata/units/TEST-64-UDEV-STORAGE.sh: line 726: modinfo: command not found
[ 6.164683] TEST-64-UDEV-STORAGE.sh[727]: + echo 'This test requires the btrfs kernel module but it is not installed, skipping the test'
[ 6.165069] TEST-64-UDEV-STORAGE.sh[728]: + tee --append /skipped
[ 6.166801] TEST-64-UDEV-STORAGE.sh[728]: This test requires the btrfs kernel module but it is not installed, skipping the test
[ 6.167177] TEST-64-UDEV-STORAGE.sh[596]: + exit 77
```
(cherry picked from commit 2569e790f6352797f8e326ed472f49479791a2ac)
(cherry picked from commit 0868f29eae4e1577eb494808a7875df69845f50c)
(cherry picked from commit 911a5934d7d871ff1ef9a4ce9b34251185a03247)
Otherwise we log a noisy error when we get ECONNRESET.
(cherry picked from commit 2540036979b341f22567e848e6698cbe993932e3)
(cherry picked from commit 51c2887c850fcc0326233c5b1aaf60ce5182e397)
(cherry picked from commit c61d11c03a9bd7cf4513b2b16789ec8e2219aa80)
If tests are run during build time, without an already installed
systemd they fail to resolve the sysusersdir and tpmfilesdir pkg-config variables.
(cherry picked from commit 2aee829fc88fdde3983080de5c56fa06eb678280)
(cherry picked from commit 936576d0f5300d3f5b455246acbba729b558659b)
(cherry picked from commit eec41b70162f9337e3aa6256e8db48f3948a5dc9)
(cherry picked from commit d02a41a9d4e5e250f5d817dd8cffd38e3db949e8)
(cherry picked from commit 9612ec00a5cfc5fecc0cbf7de63e14bbb89acbdf)
(cherry picked from commit 2692acb884a7f2827e98dd21784e4beab87188a8)
(cherry picked from commit f7a6418d47d141f4543aa01253f64f60ffdd2e17)
(cherry picked from commit 8d074b77f63e6c73c9628c36f89c30c5d7c44cc5)
(cherry picked from commit 6d913d018e3d4cb937c9bc0707d0ef706c0f8979)
We want to eanble running tests as part of the build, but
our builds run in VMs with networking disabled.
(cherry picked from commit 19614a08d13fb8e0e73f1cb5859f8011e7df2394)
(cherry picked from commit 1b75c5144544aa7153317209339c552d948d4b12)
(cherry picked from commit 07a72ea22734f8b64c2d0f2d41c9996dd4563783)
If we destroy both an event loop and a curl contect object at the same
time, then we get into this weird situation where curl wants us to
reconfigure a timout event source right before destruction, which
sd-event will refuse however, since it is already being shutdown.
Hence, catch that and simply don't bother adjusting the timeout, since
we cannot get back from there anyway.
(cherry picked from commit c5ecf0949460dd0bf3211db128a385ce6375252e)
(cherry picked from commit 73164d4819afdb3d0870c3d5ce769d1e0a90347a)
(cherry picked from commit e892472b6420de9e5f3b1a8991d92eeb8042ba66)
The state might be "freezing-by-parent" as well so let's take that
into account.
Fixes#32746
(cherry picked from commit 034e85c5f3608b8ae48ab1ad76b8af0b2c2fd3e5)
(cherry picked from commit 33a8ea65ca28b67a1faf766143e2847be5dd379e)
(cherry picked from commit 376507227a17ac14ad9b96ff1463e1e796748152)
Follow-up for 9de324c3c919f20fd49e1d25579f5a66cac0eaa0.
(cherry picked from commit a937fa96ac121bc8c1e74c3014c6bc0f2a597aeb)
(cherry picked from commit 29868fb1238a7127b4f939f5693732eeb96f7aba)
(cherry picked from commit 6f2a7f0d0530eb828b3874755a89aa66753165e0)
This should be useful when the test run as a service, e.g.
running on a mkosi image.
(cherry picked from commit e92d7b7dd9dd8d8783e44626268aa6315331d68c)
(cherry picked from commit ebbc5e587b0644472fe95ffb3e8e6fd96d6c21a5)
(cherry picked from commit 70c1f11386035b4d517303a8ade14405edde5fba)
Also this makes several checks more strict.
(cherry picked from commit 24e37929edc10930a1cd8f2c2b384ac61e3190ed)
(cherry picked from commit 6ad7d1983759c2a3f344e92e49f2f28d41c3470d)
(cherry picked from commit 5e10896c6b96645fa98d2db0d60df94dd57e350a)
(cherry picked from commit e97bb361a097fcae4d53f2ef20a958415a72853a)
(cherry picked from commit 1f3313d0d63d945528bb99229901d23d197f400c)
(cherry picked from commit 25b4ce214fe509c35459458719cf6192ce36bff3)
This fixes build with old toolchains prior to Linux < 4.2 which do not
have a definition for NFPROTO_NETDEV.
(cherry picked from commit 41a94ae670c11860f3cf1806a39d13904366f3a3)
(cherry picked from commit d8d64ce8a2609ea677c1b81e63406b0feaa1deb1)
(cherry picked from commit e977850100ec6c30659c3fc9b9c26310161fcd0d)
This can change between the call to homectl inspect and userdbctl
user so let's ignore it along with the other disk fields.
Fixes#32727
(cherry picked from commit 6c5d4f0645ca36281fafbf72d0219b115dbdebb4)
(cherry picked from commit 868bcfa220b64bd766a629f9392eadb832cfcb20)
(cherry picked from commit 35a582689b4ffd9a2c519f5074109cfe66cbe3c5)
If the file was removed by some other program, we should just go
to the next one without failing. item_do() is only used for recursive
globs instead of fixed paths so skipping on missing files makes sense
(unlike if the path was fixed where we should probably fail).
Fixes#32691 (hopefully)
(cherry picked from commit 677430b3c7fcd1b352eb66f19b8746741459b91a)
(cherry picked from commit 46419527af7e91346aa523f73ecf85a96ac94c9a)
(cherry picked from commit 3abc0cbe308929500b740ba9d5729bd3a900cf5e)
(cherry picked from commit cd35c15de3373fa4415ef013676cde13d9fe7d92)
(cherry picked from commit 9333db0c4d4c96ac448b55d237b701865aee89f0)
(cherry picked from commit 6b56cc8995f29d5bb5f42e36301fb3a0de289d1e)
(cherry picked from commit 75c64e58d18eb3726386cde4838546b6a2de525b)
(cherry picked from commit 5909e5cff7f2073580c42cd205c919bc33facffa)
(cherry picked from commit 22567a5ddb739a36e11fe273093726b49d04ebe8)
(cherry picked from commit 2c30973f0bb538a7ed2d19e8c019fcb7deb882a3)
(cherry picked from commit a2e7aac103565ce931fbcb4ea86e1df5943d7329)
(cherry picked from commit 5de929e6ffe57af38470f50584c17a21ef95ac20)
(cherry picked from commit 11bbc1f8b8e367019f1e1e1fece3c1cade6cb1c3)
(cherry picked from commit 9aeadf541d87e9f6a0d990b1f534b3938dd6f83e)
(cherry picked from commit bb7e9d1e028b70cb372eda86bac1cb346c1cf383)
(cherry picked from commit bc65a5e37d66c22296ba10e63a429ce1fbf14acb)
(cherry picked from commit 9799198824b0ab934a6ea672e561a9b74f334332)
(cherry picked from commit 6d332a5c34252b1c4a1468717a4e28574b83fe9c)
(cherry picked from commit 3a5046782e74d0405067a79d7aa14456801ce79e)
(cherry picked from commit b71cbef0f0a2a633e1ca3dafa53f7269701ab5a6)
(cherry picked from commit cf7fe02210c0a88f00fbfbe72d79decb72f29cef)
(cherry picked from commit 2dd1676fa7913c6ea45ccc6d01c001e61c37c1b4)
(cherry picked from commit ab2579e56b47d1903c3a8e27f86889d2bbaaa040)
(cherry picked from commit 22a3e92e951dcd478e62b3a050c2249a4e86ab5b)
(cherry picked from commit 1174ebb45fdc96c4d58676b62b734ebfcc5299d3)
(cherry picked from commit 3cb58c662c196800f2ba3d6f93856308bc7cb7d0)
(cherry picked from commit dbe9bb3d092f435efcd0242b059bd686a1d4bf23)
(cherry picked from commit 192a452d1ca04cd32153d104e9e3b3c3a6957106)
(cherry picked from commit d8281b2ab916694dd670a88d16cc50a2d8909a19)
(cherry picked from commit 768169bfafa7011763f32e9b0586a5b9fc71f848)
(cherry picked from commit be6aa742a6c522c4102a02fcd79231ff5bc5fa9f)
(cherry picked from commit ce1df5ee6c105580e5c1a27637d8759316832e71)
(cherry picked from commit c9c11e0501dcd48ce8a1314d82663c98bab15bfe)
(cherry picked from commit ac10f7e28c03c05451547e36eeb9b5c19df0ed34)
(cherry picked from commit 01dce7e5b40daec227ecc33872b3b533748167db)
(cherry picked from commit 1ee8e3bbac44f90154edd758620228aabcf737e8)
(cherry picked from commit bad6cb5ae8db5d03ded4c852d624014c8738cc7b)
(cherry picked from commit fce226b4ca67aaf225f729182f08b02d3b326555)
(cherry picked from commit fedee5671744d92de09eaa9f215078ae5e1f01f5)
(cherry picked from commit 47eab95ea813fdeee686ca720287b7fe4189b2d4)
(cherry picked from commit 88710976fe309aeb8e026eabc33eca26eeb8769d)
(cherry picked from commit 131bd313c1c48767da30cd71c460cae7bbbc00a8)
Since AuditMode automatically switches SetupMode on, it should be
authorized to enroll SecureBoot keys.
Signed-off-by: Nicolas Bouchinet <nicolas.bouchinet@ssi.gouv.fr>
(cherry picked from commit a23a59b324a022a0b38b5f35d01ee1b2b4edf694)
(cherry picked from commit 04f6566568e0618088c7496a7e89da8d949b3c72)
(cherry picked from commit eecb0ea8ed121c0fa6f9a7b4d919121d6177f3ba)