Zbigniew Jędrzejewski-Szmek
e2e736cbbd
fuzz: rename long samples
...
With those long filenames, output doesn't fit on the terminal.
2023-05-18 15:23:27 +02:00
Zbigniew Jędrzejewski-Szmek
fbecfbe224
mkosi: use wildcard to shorten things
2023-05-18 15:23:27 +02:00
Frantisek Sumsal
c01f0184b9
test: mangle the machine ID only for the QEMU test part
...
systemd-nspawn doesn't like invalid machine IDs and refuses to boot with one:
TEST-74-AUX-UTILS RUN: Tests for auxiliary utilities
...
Spawning container TEST-74-AUX-UTILS--3 on /var/tmp/systemd-test-TEST-74-AUX-UTILS_3/root.
Press Ctrl-] three times within 1s to kill container.
Failed to read machine ID from container image: Structure needs cleaning
E: nspawn failed with exit code 1
Follow-up to b4d42a82eb.
2023-05-17 15:10:22 +01:00
Zbigniew Jędrzejewski-Szmek
ffcdd3194d
Merge pull request #27669 from keszybz/man-fixes-254
...
Some simple man page fixes to reduce the list of issues tagged for v254
2023-05-17 14:12:33 +02:00
Zbigniew Jędrzejewski-Szmek
a190e0c301
Merge pull request #27671 from keszybz/manpage-fixes-254-2
...
man: fixes for assorted issues reported by the manpage-l10n project
2023-05-17 14:12:08 +02:00
Zbigniew Jędrzejewski-Szmek
8fb350049b
man: fixes for assorted issues reported by the manpage-l10n project
...
Fixes #26761 .
2023-05-17 12:25:01 +02:00
Zbigniew Jędrzejewski-Szmek
f90360eb74
man/tmpfiles: fix off-by-one in example
...
Reported and diagnosed by gitterman. Fixes #26617 .
2023-05-17 11:18:37 +02:00
Zbigniew Jędrzejewski-Szmek
2f76f1cfae
man: explain allowed values for /sys/power/{disk,state}
...
Also fix the grammar: "neither" can only be used with two values, and
here we have an inderminate number >= 1.
Fixes #26460 .
2023-05-17 11:18:26 +02:00
Zbigniew Jędrzejewski-Szmek
42eccfec6e
man: say that ProtectClock= also affects reads
...
Fixes #26413 : the docs said that the filter prevents writes, but it just a
filter at the system call level, and some of those calls are used for writing
and reading. This is confusing esp. when a higher level library call like
ntp_gettime() is denied.
I don't think it's realistic that we'll make the filter smarter in the near
future, so let's change the docs to describe the implementation.
Also, split out the advice part into a separate paragraph.
2023-05-17 11:17:39 +02:00
Yu Watanabe
89572df859
Merge pull request #27664 from mrc0mmand/test-merge
...
test: let's merge more tests together
2023-05-17 09:53:58 +09:00
Frantisek Sumsal
7c6fa5bf16
test: move runas() to the shared utility library
2023-05-16 23:07:45 +02:00
Frantisek Sumsal
e71bac7222
test: make shellcheck happy again
...
No functional changes.
2023-05-16 23:07:45 +02:00
Frantisek Sumsal
16eb568766
test: merge TEST-48-START-STOP-NO-RELOAD into TEST-23-UNIT-FILE
2023-05-16 23:07:45 +02:00
Frantisek Sumsal
518c3e2722
test: merge TEST-49-RUNTIME-BIND-PATHS into TEST-23-UNIT-FILE
2023-05-16 23:07:45 +02:00
Frantisek Sumsal
ab1b2f22fd
test: clean up test artifacts
...
So we don't run into unexpected fails when two tests use the same paths.
2023-05-16 23:07:45 +02:00
Frantisek Sumsal
23cb7362f1
test: merge TEST-28-PERCENTJ-WANTEDBY into TEST-23-UNIT-FILE
2023-05-16 22:43:52 +02:00
Frantisek Sumsal
fb03fea2a2
test: merge TEST-56-EXIT-TYPE into TEST-19-CGROUP
...
And clean it up a bit.
2023-05-16 22:43:52 +02:00
Frantisek Sumsal
3999ea001a
test: rename TEST-19-DELEGATE to TEST-19-CGROUP
...
And clean it up a bit.
2023-05-16 22:43:52 +02:00
Frantisek Sumsal
5ff1c6fcde
test: introduce get_cgroup_hierarchy()
2023-05-16 22:43:52 +02:00
Frantisek Sumsal
cb153b4fe9
test: rename assert.sh to util.sh
...
So we can extend it with additional utility functions without making it
confusing.
No functional change.
2023-05-16 22:43:52 +02:00
Frantisek Sumsal
1fd24da616
test: merge TEST-33-CLEAN-UNIT into TEST-23-UNIT-FILE
2023-05-16 22:43:52 +02:00
Frantisek Sumsal
9245eb3cbd
test: merge TEST-27-STDOUTFILE into TEST-23-UNIT-FILE
2023-05-16 21:49:09 +02:00
Frantisek Sumsal
b4d42a82eb
test: merge TEST-14-MACHINE-ID into TEST-74-AUX-UTILS
2023-05-16 21:49:09 +02:00
Antonio Alvarez Feijoo
79567763a2
man/systemd-sysext: correct explanation of confexts directories
2023-05-16 18:43:21 +01:00
Lennart Poettering
84b4c78570
switch-root: add a comment regarding the safety limits of rm_rf_children()
2023-05-17 01:42:01 +09:00
Yu Watanabe
871a41f0ef
Merge pull request #27606 from YHNdnzj/loginctl-list-show-state
...
loginctl: list-{users,sessions}: add a column for showing state
2023-05-17 01:41:13 +09:00
Yu Watanabe
8c7dd49ad1
Merge pull request #27655 from yuwata/udev-net-assign-alternative-names-only-on-add-event
...
udev/net: assign alternative names only on add event
2023-05-17 01:39:40 +09:00
Frantisek Sumsal
a5a4d5a18e
Merge pull request #27651 from mrc0mmand/more-nspawn-tests
...
nspawn: OCI related fixes & tests
2023-05-16 17:26:25 +02:00
Mike Yuan
329f4b06f5
Merge pull request #27659 from yuwata/memfd-seal
...
memfd-util: handle F_SEAL_EXEC flag
2023-05-16 22:00:57 +08:00
Mike Yuan
0313c41068
Merge pull request #27638 from YHNdnzj/upheldby-unit-file
...
unit-file: support UpheldBy= in [Install] settings (adding Upholds= deps from .upholds/)
2023-05-16 21:53:24 +08:00
Lennart Poettering
3907b25638
Merge pull request #27573 from poettering/sd-bus-description
...
sd-bus: pass bus description (and comm name) to per via socket address binding on AF_UNIX
2023-05-16 06:46:29 -07:00
Lennart Poettering
93d4a200fb
Merge pull request #27648 from poettering/common-dissect-dir
...
pid1: add common root dir inode to mount disk images to in private namespaces
2023-05-16 05:26:48 -07:00
Lennart Poettering
b10c4acfa3
Merge pull request #27647 from poettering/mount-setup-tweaklets
...
mount-setup: minor tweaks
2023-05-16 05:26:09 -07:00
Lennart Poettering
8a1b590591
Merge pull request #27658 from poettering/base-fs-run
...
base-filesystem: also set up /run/ mount point if missing
2023-05-16 05:25:43 -07:00
Lennart Poettering
7e0aaeb244
man: indicate that the JOB parameter to "systemctl cancel" is optional
...
As per:
https://social.treehouse.systems/@grawity/110376583742207755
2023-05-16 20:18:38 +08:00
Mike Yuan
306ff2e297
test: add test for state in loginctl list-{users,sessions}
2023-05-16 18:09:15 +08:00
Mike Yuan
8b6c039a1a
loginctl: list-sessions: also show state
2023-05-16 18:09:15 +08:00
Mike Yuan
486f61a8c9
loginctl: list-sessions: minor modernization
2023-05-16 18:09:15 +08:00
Mike Yuan
bae05711b5
loginctl: list-users: also show state
2023-05-16 18:09:15 +08:00
Lennart Poettering
acf493390a
busctl: set a description for the bus connection
...
Unlike most other bus connections in our codebase this one is created
manually and every setting set invididually. It hence does not have a
description by default (as all automatic connections have). Set one
explicitly.
2023-05-16 12:08:41 +02:00
Lennart Poettering
7b674a9ee8
pid1: debug log client comm/description strings if available for incoming connections
...
Very useful for debugging, to see which clients actually connect.
2023-05-16 12:08:41 +02:00
Lennart Poettering
b587194313
test: add testcase for the new sockaddr metainfo logic
2023-05-16 12:08:41 +02:00
Lennart Poettering
c32f9648cc
sd-bus: use the new information in the client's sockaddr in the creds structure
...
Now that clients might convey comm/description strings via the sockaddr,
let's actually use them on the other side, read the data via
getpeername() parse it, and include it in the "owner" creds (which is
how we call the peer's creds).
2023-05-16 12:08:41 +02:00
Yu Watanabe
3418ca21ed
test: add basic test for memfd_set_sealed() and memfd_get_sealed()
2023-05-16 18:59:25 +09:00
Yu Watanabe
52e2672af2
memfd-util: set F_SEAL_EXEC flag if supported
2023-05-16 18:50:39 +09:00
Yu Watanabe
17915ea5b3
memfd-util: memfd may also have F_SEAL_EXEC flag
...
Follow-up for c29715a8f77d96cd731b4a3083b3a852b3b61eb8.
Fixes #27608 .
2023-05-16 18:48:32 +09:00
Yu Watanabe
8e3303333f
missing: add more F_SEAL_XYZ flags
2023-05-16 18:46:16 +09:00
Lennart Poettering
84c61aea0f
base-filesystem: mention why we don't carry an entry for /tmp/ for now
2023-05-16 11:45:21 +02:00
Frantisek Sumsal
cd70372b93
nspawn: make sure the device type survives when setting device mode
2023-05-16 11:40:33 +02:00
Lennart Poettering
4d88d83924
base-filesystem: also set up /run/ mount point if missing
...
We don't support images without, hence create this one too, like we
create all other relevant mount points we definitely require for
booting.
2023-05-16 11:32:56 +02:00