1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-01 05:47:04 +03:00

58589 Commits

Author SHA1 Message Date
Frantisek Sumsal
78e20624b2 test: stop the test unit when it's not needed anymore
Otherwise it keeps printing stuff to the journal/console, adding
unnecessary noise.

(cherry picked from commit 3a8b7e8b5f72a940a07938a8ed33f2c3283dd52b)
(cherry picked from commit eab75a859117206352f4c8d2928631c42e9b3541)
(cherry picked from commit e33487408347a041f6b27b4145cd94fae345846a)
2023-04-29 11:36:49 +01:00
ZjYwMj
491530f2e7 Synposis and description of networkctl man page reflecting only part of its functionality (#27264)
* Fix inaccurate synposis, and description

Before the fix, they reflected only part of networkctl functionality.

(cherry picked from commit dd9f909ea819a4a06218982f681b92dab0ba7d9d)
(cherry picked from commit f86ec3495853ab143d5b0c1d0cb09b5725ef8d40)
(cherry picked from commit ef395963a4f89af2ee19caaf5e05206f1040cfe1)
2023-04-29 11:36:49 +01:00
Mike Yuan
42d1f6a067 core/main: fix a typo for --log-target
Follow-up for d2ebd50d7f9740dcf30e84efc75610af173967d2

Fixes #27105

(cherry picked from commit 6b7f150bbf4e873e57d527b7328ac59a57e0a681)
(cherry picked from commit fffcebc4bbe841418556d551b9ed44f8b7056138)
(cherry picked from commit e7015a5a02c0bc94a3318bf5b49540ff0194f7e5)
2023-04-29 11:36:49 +01:00
Nick Rosbrook
4e9ed04401 test: add some tests for RuntimeMaxSec
Make sure the RuntimeMaxSec is applied correctly to service and scope
units when they are started, and also on coldplug.

(cherry picked from commit af4688398f55b110c9d7d57be5cd0199b06e18c8)
(cherry picked from commit f152cdabaed160c767de2857b9c22513e8518b3e)
(cherry picked from commit 6da4d102e1a37011bb7c897e492268bb71bc069d)
2023-04-29 11:36:49 +01:00
Nick Rosbrook
7aa7e9e93d scope: do not disable timer event source when state is SCOPE_RUNNING
In scope_set_state(), the timer event source may be disabled depending
on the state. Currently, it will be disabled when the state is
SCOPE_RUNNING. This has the effect of new RuntimeMaxSec values being
ignored on coldplug.

Note that this issue is not currently present when scopes are started
because when scope_start() is called, scope_arm_timer() is called after
scope_set_state().

(cherry picked from commit e1f85b49b09ed3e3717cf7776c9da7acc4e906c6)
(cherry picked from commit 999f48558bbe5d4665b97d76c530edc12f71b70b)
(cherry picked from commit 6bdcd58a88ca70b4fc097941a8f435400eb90e53)
2023-04-29 11:36:49 +01:00
Franklin Yu
468acc7264 Fix cross-reference of manual for LogsDirectory
(cherry picked from commit 8dacdd28f49e0b985d651e7c9f946aa666454063)
(cherry picked from commit 430861fc96585c6a5913b2a84456916e516a1a44)
(cherry picked from commit 696c0ed616dcd549903321db024d6ad7aad3ceca)
2023-04-29 11:36:49 +01:00
David Schroeder
857fdbc608 pid1: fix coredump_filter setting
Correct what appears to be a copy/paste error in config_parse_exec_coredump_filter that is preventing the coredump_filter setting from working correctly.

(cherry picked from commit 9c669abb7106ae340ea47e7747d3bd054fbacdc5)
(cherry picked from commit 91953109ecd0956775b5bef442cd567917b11050)
(cherry picked from commit be49fcd07b3fa6db96dc8ff237f4bad959350b6c)
2023-04-29 11:36:49 +01:00
Luca Boccassi
db89c44f82 Uphold/StopWhenUnneeded/BindsTo: requeue when job finishes
When a unit is upheld and fails, and there are no state changes in
the upholder, it will not be retried, which is against what the
documentation suggests.

Requeue when the job finishes. Same for the other two queues.

(cherry picked from commit 4c7a0fc8d061b41fdd63eb19b6fc0a5c94668dde)
(cherry picked from commit fa8d33bb3704f7b14c1c51e1d0e48e0e5042a98c)
(cherry picked from commit dd7a821b5f15265047a14a4bd76f0761bb563d9f)
2023-04-29 11:36:49 +01:00
Luca Boccassi
fe3e998ac8 Uphold/StopWhenUnneeded/BindsTo: add retry timer on rate limit
The Upholds= promise is that as long as unit A is up and Upholds=B,
B will be activated if failed or inactive. But there is a hard-coded,
non-configurable rate limit for this, so add a timed retry after the
ratelimit has expired.

Apply to BindsTo= and StopWhenUnneeded= as well.

(cherry picked from commit 7223d500ac548c69e7879931e3ad8c84838f925b)
(cherry picked from commit 6fc08d840718cbf20ddc2832a603c149ed92331b)
(cherry picked from commit 374ef07274a26a4cac3887da86add2c1b3d4a065)
2023-04-29 11:36:49 +01:00
Michal Sekletar
6c1046121d man: add util-linux to the package list for Fedora container
/bin/login is shipped in util-linux, however, systemd.spec on Fedora has
"Requires: (util-linux-core or util-linux)". If the dependency is
fulfilled just by installation of util-linux-core then users won't be
able to log in into the container after it boots. Let's add util-linux
package to the package list so that /bin/login is always present.

(cherry picked from commit 5015b5014bcff93371aef2c78b92efcfc2e38a40)
(cherry picked from commit 1fb4ae32b08c737662714c259573159d0e8788c3)
(cherry picked from commit 7c353ca5d60c57324ba9163528603311864f22d5)
2023-04-29 11:36:49 +01:00
Zbigniew Jędrzejewski-Szmek
ab287e91bf man: link to Fedora 37
Fedora 36 is a bit old at this point and will be EOL in about 6 weeks.
Fedora 38 is not out yet, so the cloud link wouldn't work.

(cherry picked from commit 5a9e2dff473fe9c18f1425fd18ed7c16881b6997)
(cherry picked from commit 841146f243db0c368b20b111fe5d33166ff325b4)
(cherry picked from commit b3f0c01a9d7b31138a08d86a44bc710554a5b785)
2023-04-29 11:36:49 +01:00
Mike Yuan
7e67870804 systemctl: suppress error for try-* if unit is masked
Closes #16521

(cherry picked from commit 8a826a979aa51703ec45dbecc34691265b4d04e0)
(cherry picked from commit 465edc123029be095772a4ebcfc63b793ab09e94)
(cherry picked from commit bbbbf4932a18909726e31cecc4d47c0e34b9ebd9)
2023-04-29 11:36:49 +01:00
Jan Macku
b8af3f5d8c ci: drop checkout from release workflow
It's not required as per comment - https://github.com/systemd/systemd/pull/27110#issuecomment-1499653913

(cherry picked from commit 19cdda7c3a37362df602b3bfd1d2b949cc1f3598)
(cherry picked from commit 7102925d1a9b08cb25e5d8de031c75f29cff0d68)
(cherry picked from commit 77f5c9773379019a6d929b3da95617a75a58e71f)
2023-04-29 11:36:49 +01:00
Jan Macku
372b22c6a8 ci: don't run release wf on systemd-security
(cherry picked from commit 9718afd194290228e225a81126988394d167bf7a)
(cherry picked from commit 167c01688f80b97b9f148276b1fb2b601dff6706)
(cherry picked from commit 4857bc61d28f06df373272b73f7c1b4432bffa8b)
2023-04-29 11:36:49 +01:00
Masatake YAMATO
cfb4a5343b shell-completion: add --xml-interface option of busctl to the rules
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
(cherry picked from commit a5efb0cc2b92d20f885b34c26254d9a9d45e3f4a)
(cherry picked from commit bda5c892a83a34a3e895c5e541f3eec19af8f04c)
(cherry picked from commit 88f058583b0d9a683012be4be7b32d5e4238fec4)
2023-04-29 11:36:49 +01:00
Masatake YAMATO
ddc80a6c47 busctl: add --xml-interface to the help message
Signed-off-by: Masatake YAMATO <yamato@redhat.com>
(cherry picked from commit c39b8978f62cbf5b693aafb5735b838b6af7b1fe)
(cherry picked from commit 6265430ca97ee255ce2d435c01b4559dd231e8be)
(cherry picked from commit 5ebdf8e0f52dcecbdfd525c9f7b0afe3b42454f3)
2023-04-29 11:36:49 +01:00
Yu Watanabe
95d729a278 test: update description
(cherry picked from commit adc5b9823c6e6b518e73789d5ae9ae9718cd7072)
(cherry picked from commit d26fd71d1a2636c553672476d9b16dd4e1ec5bf4)
(cherry picked from commit 6de5e7646718346984e33995f406930b7b2028a9)
2023-04-29 11:36:49 +01:00
Дамјан Георгиевски
62c29bc87b ci: add permissions to make a release
follow-up to https://github.com/systemd/systemd/pull/27071
in order to create Github Releases, the job needs permissions to write
contents

also:
- pinned the `softprops/action-gh-release` action to a specific commit
- made it only active on the `systemd` organization repos (so not on
  forks)

(cherry picked from commit 7b411cf8421ef3bf6c05edcf131f63b8e7bae8ac)
(cherry picked from commit dc2facf61d80cbb45421d024b56b93fb70e363aa)
(cherry picked from commit 24c3212eaeb48ceb052c66f178da471383c94438)
2023-04-29 11:36:49 +01:00
Thomas Blume
d277048bb4 test/test-functions: fix typo in install_suse_systemd()
(cherry picked from commit d6d06616319ef41ae2f6fcc4812764de2295cd7e)
(cherry picked from commit 4c65c644d6227dadedb317ae500a929e92f365fd)
(cherry picked from commit 1f8ec0ed38405367e8d79f715aad6b0b24775989)
2023-04-29 11:36:49 +01:00
Franck Bui
4b1da60389 test: install symlinks with valid targets on SUSE and Debian
(cherry picked from commit f8d527aa9a9c724199aeafab45714a94eea2caf3)
(cherry picked from commit fca5a45a59a8e4707a92c52bb55c37b2fdd0da7e)
(cherry picked from commit e1a7f29467501ade88abfc17b762fc43c53e6864)
2023-04-29 11:36:49 +01:00
Olivier Gayot
3e88053037 localed: fix invalid free after shifting pointers using strstrip
After manually editing /etc/locale.gen, calling localectl set-locale
sometimes fails. When it fails, the systemd journal shows:
systemd-localed: free() / invalid pointer.

It turned out that it only fails if some of the uncommented lines in
/etc/locale.gen have leading spaces, as in:

  * C.UTF-8       <= OK
  * en_US.UTF-8   <= OK
  *  fr_FR.UTF-8  <= NOK

After parsing a line from /etc/locale.gen, we use strstrip() to obtain
the "trimmed" line (without leading or trailing spaces).

However, we store the result of strstrip() in the original pointer
containing the untrimmed line. This pointer is later passed to free
(this is done automatically using _cleanup_free_).

This is a problem because if any leading space is present, the pointer
will essentially be shifted from its original value. This will result in
an invalid free upon cleanup.

The same issue is present in the locale_gen_locale_supported function.

Fixed by storing the result of strstrip() in a different pointer.

(cherry picked from commit b24b10592d74b73529817813ff33f7e28e79ca41)
(cherry picked from commit d18037b8ff43a1d7310708a50786f92c1291ce80)
(cherry picked from commit fcd9ec3effc9cad63f73cba024697011c5963766)
2023-04-29 11:36:49 +01:00
Frantisek Sumsal
83a29385fa test: bump the timeout for non-qemu runs to 90s
When Ubuntu CI is oversaturated, 60s doesn't seem to be enough.

(cherry picked from commit cb58571a1193122a5c20e8f6587115382d281002)
(cherry picked from commit 93ac024b7e568fe65b2e8f55ef13a32880239e95)
(cherry picked from commit 59982fbe8d7e4e8c906e4909f2b1b766f323dd6e)
2023-04-29 11:36:49 +01:00
Uwe Kleine-König
4af462fcbc man/systemd-mount: Clearify documentation about --bind-device
The documentation suggests that the mount point (i.e. the directory
where the device is mounted) is removed when the device vanishes.
However only stopping of the automount unit is implemented.

So adapt the documentation to reality.

(cherry picked from commit 381ccb424643acd8bf99e5db16ad96b64996e4e9)
(cherry picked from commit 617914112467ea75c7f33c4415e307d26fc1e242)
(cherry picked from commit 56c756b183d14245fc6f0d17b18b37202a0d8429)
2023-04-29 11:36:49 +01:00
Cristian Rodríguez
7fb9c442b7 resolve: change DNS_PACKET_UNICAST_SIZE_LARGE_MAX to 1232 (#27171)
The old common default was 4096, until 2020 on which all DNS servers (verified
on BIND9, NSD, Unbound, dnsmasq) switched to 1232 as an agreed max size [1].

[1] https://www.dnsflagday.net/2020/#message-size-considerations

(cherry picked from commit e144a26306dbe07fe37f294301421a938b781247)
(cherry picked from commit b2e1dabbeb020e06ecaecedc05187b60f78669c8)
(cherry picked from commit 9b832c44577f57fdc1fce1f66774c1c33e7f6d4d)
2023-04-29 11:36:49 +01:00
Sorah Fukumori
2866dee297 man: netdev: Clarify wireguard IPv6 endpoint format
(cherry picked from commit 744b04c5571eb1518e686dce505357aa3fb94ce8)
(cherry picked from commit 16dc17d68c9b56e464fdad258623cebe26b3fcd6)
(cherry picked from commit 6e02302292c2382c412ecdcaa20e9083bf0a9079)
2023-04-29 11:36:49 +01:00
Luca Boccassi
a92fc49cf4 ci: do one build with no tpm/p11kit/fido2
We have some missing coverage in the CI, all builds enable these features,
but there are often changes and they cover a lot of code. Do one build
without them to ensure we don't break builds.

(cherry picked from commit b7b48b389c5e68154f72133ec5d12ca2412aa406)
(cherry picked from commit 64ef6ccd4fc161159720b5e8db0ba54557df313d)
(cherry picked from commit 01ca822462e8ce6a0fc27c3eebcd509ab5ad8641)
2023-04-29 11:36:49 +01:00
Yu Watanabe
2ae7492eac man: mention -o option for systemd-journal-remote
(cherry picked from commit bc729e81f2622961ef8428df46bb000197706f70)
(cherry picked from commit 018461aaf0e93d22d0e171e97452d545c8d1d86c)
(cherry picked from commit 483048e42961bc43b011f1156df61acaf8ca6b7f)
2023-04-29 11:36:49 +01:00
Zbigniew Jędrzejewski-Szmek
2d458aa454 manager: remove transient unit directory during startup
I was testing transient units and user@.service crashed. I restarted it, and
tried to create a transient unit. It failed because
/run/user/1000/systemd/transient/ remained after the previous aborted run:
  Failed to start transient service unit: Unit run-u0.service was already loaded or has a fragment file.

Remove the directory during initial startup so we don't get confused by our own
files.

(cherry picked from commit 45f540a2974dc732820d20a0e73cfffc94766a70)
(cherry picked from commit 31c7f6d0d18b16fa19a95953938aeed1baee7aff)
(cherry picked from commit 691d173cb21caeaae9b32e558378ff19e9a00e3f)
2023-04-29 11:36:49 +01:00
Zbigniew Jędrzejewski-Szmek
b4588585f5 core: a more informative error when SetProperties/StartTransientUnit fails
I was changing how some properties are appended to the StartTransientUnit call
and messed up the message contents. When something is wrong with how the
message is structed, we would return a very generic
"Failed to start transient service unit: No such device or address".

Mention that it was property setting that failed, and translate ENXIO to a
different message. bus_unit_set_properties() or any of the children it calls
may also return other errors, in particular EBADMSG or ENOMEM, but the error
message that is generated for those is understandable, so we don't need to
"translate" them explicitly.

bus_unit_set_properties() is called from two places, so it seems nicer to
generate the message internally, rather than ask the caller to do that. Also,
now bus_unit_set_properties() always sets <error>, which is nicer for the
callers.

(cherry picked from commit 44d82df46e38c5bc36ed3722301eeae15df29763)
(cherry picked from commit 49c6965946b2a0a6504e03ae59160eb7311f123c)
(cherry picked from commit 4f4621893c924ff4f3269c21e06d8cc98d6b7ee2)
2023-04-29 11:36:49 +01:00
Yu Watanabe
fc9215ad58 journald: fix log message
(cherry picked from commit 01aa59979bc61125f599a5b8a6c911fff5daaee7)
(cherry picked from commit 649e335bc160c014712afb02a04846a1072b1b32)
(cherry picked from commit 7f961939757d4f9cdfeea8fc4cbe5017a3e0dda7)
2023-04-29 11:36:49 +01:00
taniishkaaa
29b01b2e41 Added unit test for strv_env_name_is_valid() function listed in env-util.c (#27100)
tests: add test for strv_env_name_is_valid function listed in env-util.c
(cherry picked from commit 6cc19afac1332d070d203e12c4f5039c5ea8ae8c)
(cherry picked from commit eda7bf237f0305162b59bb1d77df732580b3bdf2)
(cherry picked from commit b7210ffcd331a02dd87cd6cfd663a24b39db146a)
2023-04-29 11:36:49 +01:00
Frantisek Sumsal
cf07a7c6ac test: make make_addresses() actually return the addresses
I noticed missing coverage in the reports and turns out this has been
broken since forever (i.e. 2016 - 9f7672b3bc), whoopsie.

(cherry picked from commit 1d6052ba5c9533227bdcc3d3368392726981abaf)
(cherry picked from commit 786649c90459f7374819c2ee10008cb0767afec2)
(cherry picked from commit 0be850bd72ba8efdd40660437bc5343be215236e)
2023-04-29 11:36:49 +01:00
Frantisek Sumsal
a42abcdb0b coverage: add a wrapper for execveat()
gcov provides wrappers for the exec*() calls but there's none for execveat(),
which means we lose all coverage prior to the call. To mitigate this, let's
add a simple execveat() wrapper in gcov's style[0], which dumps and resets
the coverage data when needed.

This applies only when we're built with -Dfexecve=true.

[0] https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=libgcc/libgcov-interface.c;h=b2ee930864183b78c8826255183ca86e15e21ded;hb=HEAD

(cherry picked from commit 4388541237e3cdab6821c1b626bb6314027277b4)
(cherry picked from commit 5e3ac730174a11684c9dab7d50010b0264b4d492)
(cherry picked from commit b0561b51a9023bcfd975cefa6ac68ae2f89a8d60)
2023-04-29 11:36:49 +01:00
Luca Boccassi
7245c4bdba man: add example for sd_bus_call_method
(cherry picked from commit ce199d12e9a88286271dec6f22cd2c61f1cd7f54)
(cherry picked from commit 8b1cc644c5c80b85d170cbb7c6745cf75915ad2f)
(cherry picked from commit 75ee851a416caae424b3c3c37f399138f8044d20)
2023-04-29 11:36:49 +01:00
Lennart Poettering
7d728849c2 man: link up new online coredump docs from man page
(cherry picked from commit bba6046b241c0e073a6f70ef1f418434c72d3161)
(cherry picked from commit 960f05945c98bf965d8e7642fec2c8c9d8b6d5b7)
(cherry picked from commit 14a5056e5c68a410047cfad443ea223cdea6c82d)
2023-04-29 11:36:49 +01:00
Yu Watanabe
fdb1ceed47 tree-wide: reset optind to 0 when GNU extensions in optstring are used
Otherwise, if getopt() and friends are used before parse_argv(), then
the GNU extensions may be ignored.

This should not change any behavior at least now, as we usually use
getopt_long() only once per invocation. But in the next commit,
getopt_long() will be used for other arrays, hence this change will
become necessary.

(cherry picked from commit ef9c12b157a50d63e8a8eb710c013d16c2cea319)
(cherry picked from commit edfca36727c54a3dc1b77a25db436db25a63beee)
(cherry picked from commit 215d16a53534eb9c54cbe585c99e7349b1e1d6a3)
2023-04-29 11:36:49 +01:00
Lennart Poettering
6ed548a51c units: let's establish the coredump socket before writting core_pattern sysctl
It's a bit nicer if we only write the sysctl core_pattern once the
coredump socket is established, since it's the backend for the handler.

Given the systemd-coredump.socket basically has no dependencies that run
before it this should not really make things slower or so, it just
removes the tiny window where core pattern is in effect that wants to
connect to the backend socket but cannot.

The status quo isn't terrible, and not too different in effect: either
way, until the socket unit is up we won't process coredumps. It's mostly
what kind of behaviour you get then: an error due to /bin/false being
invoked, or an error because systemd-coredump can't connect to its
socket. After this patch we'll exclusively see the former.

(cherry picked from commit 62c72c60b5e6c0712a45b1feccc6cc18151efa9c)
(cherry picked from commit 9943f2af3d46ae730443065aa781bbe04ee524ed)
(cherry picked from commit 9e4507c311ada9c78d2b6407ef40d2a0c70b2bab)
2023-04-29 11:36:49 +01:00
Luca Boccassi
7e1fab3526 test: do not remove state directory on failure
The test log is in the state directory, and we want to keep it around
when a test fails.

Follow-up for: 256a835f1c6c646a55039659aa2db186fbeb5c5d

(cherry picked from commit 49e8342965649503a537beacb77dd0fafc71debe)
(cherry picked from commit dbb1b9c2c8419490b48a3a0aeb69bacbda232043)
(cherry picked from commit 8ae4fd84416ec907eaa6d7cf9258445e0c2a9d5e)
2023-04-29 11:36:49 +01:00
Luca Boccassi
8e18fbb3f8 man: fix shellcheck warning for html.in
SC2015: Note that A && B || C is not if-then-else. C may run when A is true.
(cherry picked from commit a5979f0bd50234ff9cad47f160d121628e0e3bbe)
(cherry picked from commit 18afac6e9086fd92835b0695ac1981149ef6ed32)
(cherry picked from commit cde5615a444bd52e235dfcbfe1e64f7b1ff7a139)
2023-04-29 11:36:49 +01:00
Zbigniew Jędrzejewski-Szmek
785b116cc1 busctl: also assume --full if not writing to terminal
If people grep the output, it probably shouldn't be ellipsized.

(cherry picked from commit f735076c548abe9878e98c2da044458dd0e684f3)
(cherry picked from commit ff7040b19370d3572c4c84123103234e98e09c1f)
(cherry picked from commit f533407976f49f2afc0696ceb5a6327abdee1105)
2023-04-29 11:36:49 +01:00
Zbigniew Jędrzejewski-Szmek
03e5cdfdae busctl: use size_t for set size
Also reduce the scope of variables.

(cherry picked from commit bc1f1eba776434f84f082bf4935b736c94dbb0f1)
(cherry picked from commit 00977a8e74e8fafd0f81356ca1f608766af00047)
(cherry picked from commit a7dee1da0cb50513f6a8488b66e1f18c1a62ac42)
2023-04-29 11:36:49 +01:00
Zbigniew Jędrzejewski-Szmek
f5ef1d5853 busctl: do not truncate property values when --full
(cherry picked from commit d82267e567698e23e8fd915f057d5d67c912aa09)
(cherry picked from commit 802fded9a577a7284fb90baef0c2305157f0db2c)
(cherry picked from commit 1b05d5132ffd75831b522aa9f29f141699f01795)
2023-04-29 11:36:49 +01:00
Zbigniew Jędrzejewski-Szmek
03f8b9d1fe oomd: add inline comments with param names
(cherry picked from commit ebfb601945b564142d6471fc10aa611c26dbd8b7)
(cherry picked from commit e400a62a92c5aa23094e0ecefcfca9e349168b6e)
(cherry picked from commit 6b4835805b0d0d7fc9d5f2c4f078eb5ae8f6e88e)
2023-04-29 11:36:49 +01:00
Yu Watanabe
cca2d36a85 test: add more testcases for rm_rf()
(cherry picked from commit 0278b1c80101cc0d857c1becd0c3a51b2eb14a44)
(cherry picked from commit 4067ec52f42a6f81e42e7fc66e92d0ee230b4978)
(cherry picked from commit b91e37e323fa236a1e9e439173112a4a0668235b)
2023-04-29 11:36:49 +01:00
Yu Watanabe
03b90ce85d rm-rf: also chmod() directory if it cannot be opened
Otherwise, directory with zero access mode cannot be removed.

(cherry picked from commit 808c8b25eece33c503430151641f5f77676af38c)
(cherry picked from commit 201830df218b08bb06e1ecbf43bc5987e77e0235)
(cherry picked from commit ba4ea68e819ba43cac613717d240e4144ac8b933)
2023-04-29 11:36:49 +01:00
Yu Watanabe
999eebacac rm-rf: mask file mode with 07777 when passed to chmod()
No functional change hopefully, just for safety.

(cherry picked from commit da19c07198167946d35be9fdf908bb683da49cfe)
(cherry picked from commit d91f7eb0fb5839d6fc52ec74aca7c3aa44e3b5db)
(cherry picked from commit 9851867e0be8bc3a6ec5b58285e0244dccd93ec8)
2023-04-29 11:36:49 +01:00
Yu Watanabe
37db6597da rm-rf: fix errno handling
(cherry picked from commit cd2cd095db6f26bf9889ef26f1b105843220b803)
(cherry picked from commit 80417f90b03707a873bbff89f246ece3fb9f2c95)
(cherry picked from commit 25a8b163be1558cc837af68baefac3c8f1ba3497)
2023-04-29 11:36:49 +01:00
Mike Yuan
a6422b7bd7 core/main: also check the argument terminator
For future-proof reasons, in case we will add
another option that starts with --deserialize.

Addresses 4f44d2c4f7 (r107285603)

(cherry picked from commit 09567df7db75824f1b8bf0b5cc721febda03cb56)
(cherry picked from commit ed18c2ab79e8b94182d5dcf31d58457763f3e3e1)
(cherry picked from commit f3678358a4ff03e0b9fc9d3c69c1eddead989b2a)
v251.15
2023-04-04 21:44:00 +01:00
Mike Yuan
8c741666fa core: do early setup check for arguments with '=' too
Follow-up for d2ebd50d7f9740dcf30e84efc75610af173967d2

We now modify our cmdline to use '=' for all arguments,
but didn't change early setup check to work with that.
So every daemon-reexec does a full setup, thus breaking
running user sessions.

Fixes #27106

(cherry picked from commit 4f44d2c4f76922a4f48dd4473e6abaca40d7e555)
(cherry picked from commit 4f4e0bab0d66ca6501432854aa3d3fcb53887796)
(cherry picked from commit b1ce97cffbfe688b5d1b082cdb715f0a0d612223)
2023-04-03 16:05:35 +01:00
Дамјан Георгиевски
ada72ce02a add a github workflow action to make a release from tags
make a github release for every tag that starts with `v*`,
and a pre-release if the tag contains "-rc".

on the 'systemd/systemd' repo, the "Release" will be draft, so that the
release manager can fill up the notes manually.

on 'systemd/systemd-stable' the release will be created immediately.

info about the action used:
https://github.com/softprops/action-gh-release

(cherry picked from commit 86c20937c29da637878a1282444b057bc1a519fb)
(cherry picked from commit a3f2884ef29dee2ace12afe74b9d8d539237a10a)
(cherry picked from commit eae1851b12b727149362570b3d0e62250c59419b)
2023-04-03 16:05:35 +01:00