1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-12 09:17:44 +03:00
Commit Graph

60676 Commits

Author SHA1 Message Date
Frantisek Sumsal
30ec52a92a test: further extend systemctl's sanity coverage
Also, fix a race condition introduced by d16684fe13:
```
[   16.904218] H testsuite-26.sh[394]: + systemd-run --unit failed.service /bin/false
[   16.964783] H systemd[845]: failed.service: Executing: /bin/false
[   16.965062] H systemd[1]: Started failed.service.
[   16.965462] H testsuite-26.sh[844]: Running as unit: failed.service
[   16.966390] H testsuite-26.sh[394]: + systemctl is-failed failed.service
[   16.977970] H testsuite-26.sh[846]: active
[   16.978403] H systemd[1]: failed.service: Main process exited, code=exited, status=1/FAILURE
[   16.978478] H systemd[1]: failed.service: Failed with result 'exit-code'.
```

(cherry picked from commit 23f3a6f5ff)
2022-11-04 23:31:28 +00:00
Frantisek Sumsal
35e19c1a50 man: use the correct 'Markers' property name for marking units
Follow-up to c9615f7352 and 70666e28a1.

(cherry picked from commit 1ca1bb03de)
2022-11-04 23:31:28 +00:00
Yu Watanabe
132fed3dcd core: fix memleak in GetUnitFileLinks method
(cherry picked from commit a12ba535fa)
2022-11-04 23:31:28 +00:00
Luca Boccassi
0b9201866c docs: DPS and BLS have moved to uapi-group.org
(cherry picked from commit 729a492881)
2022-11-04 23:31:28 +00:00
Frantisek Sumsal
77860d006d test: add a couple of sanity tests for systemctl
(cherry picked from commit d16684fe13)
2022-11-04 23:31:28 +00:00
Frantisek Sumsal
bcf30f9170 test: rename TEST-26-SETENV to TEST-26-SYSTEMCTL
(cherry picked from commit c5c258ae0a)
2022-11-04 23:31:28 +00:00
Frantisek Sumsal
86d031095e test: add a couple of sanity tests for loginctl
(cherry picked from commit 70e9066bc2)
2022-11-04 23:31:28 +00:00
Daan De Meyer
077a1d54b3 namespace: Add hidepid/subset support check
Using fsopen()/fsconfig(), we can check if hidepid/subset are supported to
avoid the noisy logs from the kernel if they aren't supported. This works
on centos/redhat 8 as well since they've backported fsopen()/fsconfig().

(cherry picked from commit 1c265fcd59)
2022-11-04 23:31:28 +00:00
Jan Janssen
bb1ae9bcd3 coverage: Mark _coverage__exit as noreturn
../src/basic/coverage.h:15:48: warning: function '_coverage__exit' could
be declared with attribute 'noreturn' [-Wmissing-noreturn]

(cherry picked from commit 0bab5534b3)
2022-11-04 23:31:28 +00:00
Youfu Zhang
95595e2842 resolved: fix typo in feature level table
(cherry picked from commit 2ab0042854)
2022-11-04 23:31:28 +00:00
Yu Watanabe
dda23814f0 parse_hwdb: allow negative value for EVDEV_ABS_ properties
(cherry picked from commit f0b75cda5a)
2022-11-04 23:31:28 +00:00
Luca Boccassi
e8a17df063 test: add +x to assert.sh
The script has a shebang and .sh extension, so make it executable

W: systemd-tests: script-not-executable [usr/lib/systemd/tests/testdata/units/assert.sh]
(cherry picked from commit fb4f7271d9)
2022-11-04 23:31:28 +00:00
Luca Boccassi
8aaa4e05a3 man: fix typo found by Lintian
(cherry picked from commit 84033dd405)
2022-11-04 23:31:28 +00:00
Frantisek Sumsal
0508cd3b00 test: add a couple of sanity tests for journalctl
(cherry picked from commit ca46781c5f)
2022-11-04 23:31:28 +00:00
Yu Watanabe
2851146817 macro: fix indentation
(cherry picked from commit e967926b09)
2022-11-04 23:31:28 +00:00
Jan Janssen
243c76d6cf macro: Simply case macros for IN_SET
The CASE param would normally provide the operation for the compiler to
do in this macro magic. But in this case CASE_F_1 was hardcoding the
operation, making the parameter moot.
This just removes the somewhat pointless parameter instead of fixing
the one case. These macros are used for IN_SET case labels only and
not named generically anyways.

(cherry picked from commit 790f4dda74)
2022-11-04 23:31:28 +00:00
Jan Janssen
4ef0b45a8a macro: Use more correct type in IN_SET
This will now catch mistakes like this:
    struct s {
            int i:2;
    } s = { 1 };
    assert_se(IN_SET(s.i, ULLONG_MAX));

> warning: implicit conversion from 'unsigned long long' to
> 'typeof (+s.i)' (aka 'int') changes value from 18446744073709551615
> to -1 [-Wconstant-conversion]

(cherry picked from commit 0bc4ac526d)
2022-11-04 23:31:28 +00:00
Release o'Lantern
e8dc52766e Finalise 👻 SpOoOky 👻 NEWS for v252 2022-10-31 18:59:18 +00:00
Luca Boccassi
6f96359dfc Disable code freeze banner 2022-10-31 18:57:13 +00:00
Luca Boccassi
eabbb24a9f
Merge pull request #25202 from poettering/measure-phase-fix
measure: honour phases when signing
2022-10-31 19:50:31 +01:00
Luca Boccassi
b13f0d0d0d
Merge pull request #25200 from bluca/news
Update NEWS, hwdb
2022-10-31 16:53:10 +01:00
Lennart Poettering
2e6a0579cc measure: honour phases when signing 2022-10-31 16:52:00 +01:00
Lennart Poettering
28acd1e6c3 measure: banks and phases list are always non-empty
When parsing parameters, we populate these lists with defaults when
empty, hence we can rely that there's at least one bank and one phase
defined.
2022-10-31 16:51:12 +01:00
Lennart Poettering
6032283b2f resolved: fix copypasta in resolved varlink API
As reported by @holtmann
2022-10-31 14:57:35 +01:00
Luca Boccassi
1ba770a659 Update hwdb
ninja -C build update-hwdb
2022-10-31 12:15:16 +00:00
Luca Boccassi
ea3e581d39 Update NEWS with latest changes 2022-10-31 12:15:16 +00:00
Luca Boccassi
f3e70c8ae5 NEWS: update contributors list 2022-10-31 11:59:57 +00:00
Luca Boccassi
38c6289d6b
Merge pull request #25197 from weblate/weblate-systemd-master
Translations update from Fedora Weblate
2022-10-31 12:54:24 +01:00
Charles Lee
a0a2dd64d9 po: Translated using Weblate (Chinese (Simplified) (zh_CN))
Currently translated at 100.0% (193 of 193 strings)

Co-authored-by: Charles Lee <lchopn@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/zh_CN/
Translation: systemd/main
2022-10-31 12:54:01 +01:00
Gogo Gogsi
4489b6ae04 po: Translated using Weblate (Croatian)
Currently translated at 100.0% (193 of 193 strings)

Co-authored-by: Gogo Gogsi <linux.hr@protonmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/hr/
Translation: systemd/main
2022-10-31 12:54:01 +01:00
Lennart Poettering
5bdf35c14e man: make clear NNP has no effect on processes invoked through systemd-run/at/crontab and such things 2022-10-31 12:53:52 +01:00
Lennart Poettering
6d040d84f5 update TODO 2022-10-31 12:38:48 +01:00
Jan Janssen
6e50cf38a6 NEWS: Clarify overlapping UKI PE section offsets 2022-10-31 11:08:13 +01:00
Yu Watanabe
0e523432aa
Merge pull request #25193 from takaswie/topic/udev/builtin/hwdb/ieee1394/support-legacy-layout-of-configuration-rom
hwdb: ieee1394-unit-function: arrangement for legacy device
2022-10-31 15:03:44 +09:00
Takashi Sakamoto
c017623254 hwdb: ieee1394-unit-function: add comment about legacy AV/C devices
It appears that exceptional layout of legacy device requires extra care of
hwdb entry for node device since Linux FireWire subsystem do not pick up
numeric model identifier in vendor directory. In detail, see:

 * https://github.com/systemd/systemd/issues/25029

In the case, udev rule without model attribute is used. Thus hwdb entry
for generic AV/C device should match both cases with and without the
attribute. The wildcard added by a commit 5e577da5f8 ("hwdb: drop model
specifier from general entries") satisfies this condition,

This commit adds comment about it.
2022-10-31 12:48:31 +09:00
Takashi Sakamoto
8bc468190b hwdb: ieee1394-unit-function: fullfill for Sony DCR-TRV310
It appeared that Sony DCR-TRV310 has legacy layout of configuration ROM
against 1394 TA standard documentation.

 * https://github.com/systemd/systemd/issues/25029

For the case, numeric model identifier and descriptor leaf for model name
are not picked up. This commit fulfill corresponding entry so that
applications can use model name from hardware database.
2022-10-31 12:48:31 +09:00
Yu Watanabe
0f9a160ae1
Merge pull request #25190 from mrc0mmand/reenable-test_macsec
test-network: re-enable test_macsec
2022-10-31 10:39:11 +09:00
Frantisek Sumsal
f9073c24de test-network: suppress a couple of minor pylint complaints 2022-10-30 20:52:24 +01:00
Frantisek Sumsal
ef11b841cd test-network: sort standard imports before "third-party" ones 2022-10-30 20:52:20 +01:00
Frantisek Sumsal
e43776595c test-network: drop a couple of useless f-strings 2022-10-30 20:43:35 +01:00
Frantisek Sumsal
0677130e81 test-network: use raw strings where appropriate 2022-10-30 20:43:28 +01:00
Frantisek Sumsal
b3de9d7bda test-network: re-enable test_macsec
The outstanding kernel panic should be already fixed in recent enough
kernels by [0]. To make the test safe to run anywhere, let's implement
a simple kernel version check and run the test only if we're running
with at least kernel 6.x. The patch might be in some 5.x kernels as
well, but let's be on the safe side and use 6.x as a baseline here
(which is currently the case for Arch and Fedora Rawhide anyway).

[0] https://lore.kernel.org/netdev/7b3fd03e1a46047e5ffe2a389fe74501f0a93206.1656519221.git.sd@queasysnail.net/T/#u
2022-10-30 20:42:11 +01:00
Jan Janssen
dcebf1d87e boot: Mark some functions as static 2022-10-30 14:17:11 +01:00
Yu Watanabe
479da1107a udev: always create device symlinks for USB disks
Previously, ata_id might not be able to retrieve attributes correctly,
and properties from usb_id were used as a fallback. See issue #24921
and PR #24923. To keep backward compatibility, still we need to create
symlinks based on USB serial.

Fixes #25179.
2022-10-30 12:02:02 +01:00
Yu Watanabe
269585dcc8 udev: fix for parsing MAC address
Fixes a bug introduced by 5bbcfbaa11.

Fixes #25181.
2022-10-30 11:55:00 +01:00
Yu Watanabe
59ab79a73d test: support non-summer time
Follow-up for 759ed0a253.
2022-10-30 08:26:00 +00:00
Steve Ramage
1d87f03a6e
man: Add documentation for AssertCredential= (#25178)
Fixes #25177.

Co-authored-by: Steve Ramage <gitcommits@sjrx.net>
2022-10-30 06:07:21 +09:00
Jochen Sprickerhof
27435a2c40 Remove duplicated word 2022-10-29 14:19:43 +09:00
David Seifert
17dc285bd4 test: remove brittle iszero_safe() test
The test relies on finite -> infinite conversion happening
when increasing DBL_MAX.

Fixes #25044.
2022-10-29 11:18:44 +09:00
Nick Rosbrook
6dfaeac370 man: document reboot --poweroff exception
When reboot is invoked, the -p/--poweroff option is intentionally
ignored. Update the man page to reflect this exception.
2022-10-29 06:39:32 +09:00