Zbigniew Jędrzejewski-Szmek
f65c2f5214
testsuite-04: remove redirection, drop whitespace after redirection op
2023-04-24 10:06:59 +02:00
Luca Boccassi
21453b8b4b
Merge pull request #27349 from mrc0mmand/codespell
...
tree-wide: code spelling fixes
2023-04-20 22:02:17 +01:00
Frantisek Sumsal
94d82b5980
tree-wide: code spelling fixes
...
As reported by Fossies.
2023-04-20 21:54:59 +02:00
Yu Watanabe
c19f1cc9a5
test: add regression tests for find_esp() and friend
2023-04-19 04:04:57 +09:00
Frantisek Sumsal
574d09bad0
test: prefix the transient unit with test- to make coverage runs happy
...
See 9fd8226312 for more details.
Follow-up to c9210b7470 .
2023-04-18 14:55:08 +01:00
Luca Boccassi
c9210b7470
creds: make available to all ExecStartPre= and ExecStart= processes
...
Fixes https://github.com/systemd/systemd/issues/27275
2023-04-17 17:47:28 +01:00
Yu Watanabe
f384ce1187
Merge pull request #27283 from mrc0mmand/assorted-test-tweaks
...
test: a bunch of assorted tweaks, Saturday edition
2023-04-16 19:39:58 +09:00
Frantisek Sumsal
f7f5657ece
test: add a couple of basic sanity tests for the security verb
2023-04-16 09:21:13 +02:00
Frantisek Sumsal
a51ba8e31a
test: add a couple of basic sanity tests for timedatectl
2023-04-16 09:21:13 +02:00
Luca Boccassi
4d7a06b322
Merge pull request #27273 from mrc0mmand/test-generators
...
test: add a couple of tests for getty/run/system-update generators
2023-04-14 21:31:55 +01:00
Frantisek Sumsal
3a8b7e8b5f
test: stop the test unit when it's not needed anymore
...
Otherwise it keeps printing stuff to the journal/console, adding
unnecessary noise.
2023-04-14 21:13:14 +02:00
Frantisek Sumsal
e51d13d61d
test: check the colored --version output
2023-04-14 21:07:51 +02:00
Frantisek Sumsal
bbbf16b3d7
test: add a couple of tests for run-generator
2023-04-14 17:05:55 +02:00
Frantisek Sumsal
657ea51341
test: add a couple of tests for system-update-generator
2023-04-14 16:09:32 +02:00
Frantisek Sumsal
d72cf09859
test: properly distinguish between generator phases
...
Let's make sure the units generated by generators are generated at the
right stage.
2023-04-14 15:44:01 +02:00
Frantisek Sumsal
e6c281c1cb
test: add a couple of tests for getty-generator
2023-04-14 13:54:27 +02:00
Frantisek Sumsal
7faa4e3782
test: allow overriding PID1's environment for test purposes
2023-04-14 12:58:16 +02:00
Frantisek Sumsal
ff8d435db4
test: add a couple of test for fstab-related kernel cmdline args
2023-04-14 10:45:20 +02:00
Frantisek Sumsal
2d4eb78ce1
test: check if x-systemd.automount is ignored for rootfs
2023-04-14 10:45:20 +02:00
Frantisek Sumsal
53c5dc5446
test: run the generators with debug log level
...
unless requested otherwise.
2023-04-14 10:45:20 +02:00
Luca Boccassi
2cba2fcd25
Merge pull request #27144 from enr0n/fix-scope-timer-on-coldplug
...
scope: do not disable timer event source when state is SCOPE_RUNNING
2023-04-14 00:25:06 +01:00
Luca Boccassi
6ef721cbc7
user units: implicitly enable PrivateUsers= when sandboxing options are set
...
Enabling these options when not running as root requires a user
namespace, so implicitly enable PrivateUsers=.
This has a side effect as it changes which users are visible to the unit.
However until now these options did not work at all for user units, and
in practice just a handful of user units in Fedora, Debian and Ubuntu
mistakenly used them (and they have been all fixed since).
This fixes the long-standing confusing issue that the user and system
units take the same options but the behaviour is wildly (and sometimes
silently) different depending on which is which, with user units
requiring manually specifiying PrivateUsers= in order for sandboxing
options to actually work and not be silently ignored.
2023-04-13 21:33:48 +01:00
Luca Boccassi
ce963a747f
Merge pull request #27244 from bluca/uphold_retry
...
Uphold/StopWhenUnneeded/BindsTo: add retry timer on rate limit
2023-04-13 21:33:06 +01:00
Nick Rosbrook
af4688398f
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.
2023-04-13 15:43:30 -04:00
Luca Boccassi
0607a9f9da
systemd-confext: mount confexts as noexec and nosuid
...
Confexts should not contain code, so mount confexts with noexec.
We cannot mount invidial extensions as noexec, as the overlay ignores
it and bypasses it, we need to use the flag on the whole overlay for
it to be effective.
But given there are legacy scripts still shipped in /etc, allow to
override it with --noexec=false.
2023-04-14 01:21:48 +08:00