]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
16 months agoresolved: tests for dns_resource_record_equal(); SOA records
James Coglan [Wed, 12 Jun 2024 15:31:24 +0000 (16:31 +0100)] 
resolved: tests for dns_resource_record_equal(); SOA records

16 months agoresolved: tests for dns_resource_record_equal(); CNAME records
James Coglan [Wed, 12 Jun 2024 15:30:37 +0000 (16:30 +0100)] 
resolved: tests for dns_resource_record_equal(); CNAME records

16 months agoresolved: tests for dns_resource_record_equal(); NS records
James Coglan [Wed, 12 Jun 2024 15:29:04 +0000 (16:29 +0100)] 
resolved: tests for dns_resource_record_equal(); NS records

16 months agoresolved: tests for dns_resource_record_equal(); A and AAAA records
James Coglan [Wed, 12 Jun 2024 15:27:47 +0000 (16:27 +0100)] 
resolved: tests for dns_resource_record_equal(); A and AAAA records

16 months agoresolved: tests for dns_resource_record_equal(); general cases
James Coglan [Wed, 12 Jun 2024 15:27:38 +0000 (16:27 +0100)] 
resolved: tests for dns_resource_record_equal(); general cases

These tests cover comparisons between RR objects that are not class- or
type-specific, i.e. they don't check any of the RDATA fields.

16 months agoresolved: tests for dns_resource_record_new_address(), dns_resource_record_new_reverse()
James Coglan [Wed, 29 May 2024 13:20:15 +0000 (14:20 +0100)] 
resolved: tests for dns_resource_record_new_address(), dns_resource_record_new_reverse()

16 months agoresolved: tests for dns_resource_key_reduce()
James Coglan [Wed, 29 May 2024 12:51:31 +0000 (13:51 +0100)] 
resolved: tests for dns_resource_key_reduce()

16 months agoresolved: tests for dns_resource_key_to_string()
James Coglan [Wed, 29 May 2024 12:42:29 +0000 (13:42 +0100)] 
resolved: tests for dns_resource_key_to_string()

16 months agoresolved: tests for dns_resource_key_match_cname_or_dname(), dns_resource_key_match_soa()
James Coglan [Wed, 29 May 2024 12:24:17 +0000 (13:24 +0100)] 
resolved: tests for dns_resource_key_match_cname_or_dname(), dns_resource_key_match_soa()

16 months agoresolved: tests for dns_resource_key_equal() and dns_resource_key_match_rr()
James Coglan [Wed, 29 May 2024 09:56:29 +0000 (10:56 +0100)] 
resolved: tests for dns_resource_key_equal() and dns_resource_key_match_rr()

16 months agoresolved: tests for dns_resource_key_is_{address, dnssd_ptr, dnssd_two_label_ptr}
James Coglan [Wed, 29 May 2024 09:39:48 +0000 (10:39 +0100)] 
resolved: tests for dns_resource_key_is_{address, dnssd_ptr, dnssd_two_label_ptr}

16 months agoresolved: tests for dns_resource_key_new_append_suffix()
James Coglan [Wed, 29 May 2024 09:19:46 +0000 (10:19 +0100)] 
resolved: tests for dns_resource_key_new_append_suffix()

16 months agoresolved: tests for dns_resource_key_new() and dns_resource_key_new_redirect()
James Coglan [Wed, 29 May 2024 08:53:31 +0000 (09:53 +0100)] 
resolved: tests for dns_resource_key_new() and dns_resource_key_new_redirect()

16 months agoresolved: test for DNS_RESOURCE_RECORD_RDATA()
James Coglan [Wed, 29 May 2024 08:20:08 +0000 (09:20 +0100)] 
resolved: test for DNS_RESOURCE_RECORD_RDATA()

16 months agoMerge pull request #33524 from neighbourhoodie/tests/dns-packet
Luca Boccassi [Tue, 23 Jul 2024 09:39:29 +0000 (10:39 +0100)] 
Merge pull request #33524 from neighbourhoodie/tests/dns-packet

Tests for DNS packet parsing/serialising

16 months agoMerge pull request #33804 from keszybz/assorted-cleanups
Luca Boccassi [Tue, 23 Jul 2024 09:38:08 +0000 (10:38 +0100)] 
Merge pull request #33804 from keszybz/assorted-cleanups

Assorted cleanups

16 months agoMerge pull request #33791 from YHNdnzj/sd-notify-pidref
Luca Boccassi [Tue, 23 Jul 2024 09:36:57 +0000 (10:36 +0100)] 
Merge pull request #33791 from YHNdnzj/sd-notify-pidref

core: pin notify sender through pidfd (potentially SCM_PIDFD) plus various cleanups

16 months agoMerge pull request #33814 from AnoukCeyssens/daemon
Daan De Meyer [Tue, 23 Jul 2024 05:23:55 +0000 (07:23 +0200)] 
Merge pull request #33814 from AnoukCeyssens/daemon

test: use new assertion macros more

16 months agofix compilation errors 33814/head
Anouk Ceyssens [Mon, 22 Jul 2024 21:57:00 +0000 (23:57 +0200)] 
fix compilation errors

16 months agotest-clock: use new assertion macros
Anouk Ceyssens [Mon, 22 Jul 2024 20:43:59 +0000 (22:43 +0200)] 
test-clock: use new assertion macros

16 months agotest-dev-setup: use new assertion macros
Anouk Ceyssens [Mon, 22 Jul 2024 21:40:21 +0000 (23:40 +0200)] 
test-dev-setup: use new assertion macros

16 months agotest-date: use new assertion macros
Anouk Ceyssens [Mon, 22 Jul 2024 21:33:40 +0000 (23:33 +0200)] 
test-date: use new assertion macros

16 months agotest-daemon: use new assertion macros
Anouk Ceyssens [Mon, 22 Jul 2024 21:27:52 +0000 (23:27 +0200)] 
test-daemon: use new assertion macros

16 months agoman/systemd-repart: extend description and reword some sentences
Zbigniew Jędrzejewski-Szmek [Sun, 14 Jul 2024 12:25:59 +0000 (14:25 +0200)] 
man/systemd-repart: extend description and reword some sentences

The page was written when systemd-repart was primarily intended to be used on a
running system. But nowadays it's more often used to create images, so extend
that part of the description.

While at it, fix some whitespace issues and trim some overly complicated sentences.

16 months agoMerge pull request #33597 from keszybz/fetch-distro
Luca Boccassi [Mon, 22 Jul 2024 10:46:43 +0000 (11:46 +0100)] 
Merge pull request #33597 from keszybz/fetch-distro

Extend the distro fetching script to check the repository out

16 months agoDocument that MemorySwapMax supports % configuration
Steve Traylen [Wed, 3 Jul 2024 12:19:08 +0000 (14:19 +0200)] 
Document that MemorySwapMax supports % configuration

Certainly on systemd 252 at least a configuration of
```
MemorySwapMax=40%
```
is supported but this was missing from the man page.
Only MemoryMax was documented as supporting a %.

16 months agocore: when switching root remove /run/systemd before executing the binary specified...
Franck Bui [Wed, 17 Jul 2024 09:02:03 +0000 (11:02 +0200)] 
core: when switching root remove /run/systemd before executing the binary specified by init=

It's important if the binary specified by the init= boot option is not systemd
otherwise it confuses systemctl that incorrectly assumes that systemd is still
the init system due to the presence of /run/systemd/system.

Also some tools might also check the presence of /run/systemd/private to test
if systemd is running as pid1.

16 months agoMake vcs-tag do something useful for non-developer mode as well
Daan De Meyer [Fri, 19 Jul 2024 11:05:11 +0000 (13:05 +0200)] 
Make vcs-tag do something useful for non-developer mode as well

When building packages of arbitrary commits of systemd-stable,
distributors might want to include a git sha of the exact commit
they're on. Let's extend vcs-tag a little to make this possible.

If we're on a commit matching a tag, don't generate a git sha at all.
If we're not on a commit matching a tag, generate a vcs tag as usually.
However, if we're not in developer mode, don't append a '^' if the tree
is dirty to accomodate package builds applying various patches to the
tree which shouldn't be considered as "dirty" edits.

16 months agoresolved: tests for dns_packet_dup() 33524/head
James Coglan [Tue, 11 Jun 2024 15:32:28 +0000 (16:32 +0100)] 
resolved: tests for dns_packet_dup()

16 months agoshared/exec-util: add macro to autoinsert sentinel for fork_agent() 33804/head
Zbigniew Jędrzejewski-Szmek [Mon, 22 Jul 2024 09:47:42 +0000 (11:47 +0200)] 
shared/exec-util: add macro to autoinsert sentinel for fork_agent()

16 months agorepart: use new style for pointers in function signatures
Zbigniew Jędrzejewski-Szmek [Sun, 14 Jul 2024 12:29:35 +0000 (14:29 +0200)] 
repart: use new style for pointers in function signatures

16 months agoselinux-util: add missing char in comment
Zbigniew Jędrzejewski-Szmek [Sun, 14 Jul 2024 12:02:20 +0000 (14:02 +0200)] 
selinux-util: add missing char in comment

16 months agoresolved: tests for dns_packet_patch_max_udp_size()
James Coglan [Tue, 11 Jun 2024 13:08:15 +0000 (14:08 +0100)] 
resolved: tests for dns_packet_patch_max_udp_size()

16 months agoresolved: tests for dns_packet_append_answer(); LOC records
James Coglan [Wed, 12 Jun 2024 17:47:04 +0000 (18:47 +0100)] 
resolved: tests for dns_packet_append_answer(); LOC records

16 months agoresolved: tests for dns_packet_append_answer(); TXT records
James Coglan [Wed, 12 Jun 2024 12:31:12 +0000 (13:31 +0100)] 
resolved: tests for dns_packet_append_answer(); TXT records

16 months agoresolved: tests for dns_packet_append_answer(); NAPTR records
James Coglan [Mon, 10 Jun 2024 16:45:58 +0000 (17:45 +0100)] 
resolved: tests for dns_packet_append_answer(); NAPTR records

16 months agoresolved: tests for dns_packet_append_answer(); SVCB and HTTPS records
James Coglan [Mon, 10 Jun 2024 16:28:37 +0000 (17:28 +0100)] 
resolved: tests for dns_packet_append_answer(); SVCB and HTTPS records

16 months agotools/fetch-distro: switch to the target branch 33597/head
Zbigniew Jędrzejewski-Szmek [Wed, 3 Jul 2024 14:11:43 +0000 (16:11 +0200)] 
tools/fetch-distro: switch to the target branch

We switch opensuse from "factory" to "devel". I had an old checkout that was
using the stale branch.

16 months agotools/fetch-distro: only fetch the configured branch
Zbigniew Jędrzejewski-Szmek [Wed, 3 Jul 2024 14:10:49 +0000 (16:10 +0200)] 
tools/fetch-distro: only fetch the configured branch

We don't need the other branches. This mostly cuts down on the
noise in output. But add '-v' to show what we're fetching.

16 months agotools/update-distro-hash: rename, fetch the repository if appropriate
Zbigniew Jędrzejewski-Szmek [Wed, 3 Jul 2024 14:01:03 +0000 (16:01 +0200)] 
tools/update-distro-hash: rename, fetch the repository if appropriate

Let's rename the tool to tools/fetch-distro. It's useful to be able to fetch
the distro directly. But when that functionality is added, the old name is
confusing.

Now --update/-u must be specified to update the commits.

--reference-if-able is used to speed up the clone of debian.
It saves about 75% of the download.

16 months agoresolved: tests for dns_packet_append_answer(); HINFO records
James Coglan [Mon, 10 Jun 2024 16:05:13 +0000 (17:05 +0100)] 
resolved: tests for dns_packet_append_answer(); HINFO records

16 months agoresolved: tests for dns_packet_append_answer(); RRSIG records
James Coglan [Mon, 10 Jun 2024 15:41:12 +0000 (16:41 +0100)] 
resolved: tests for dns_packet_append_answer(); RRSIG records

16 months agozsh/_networkctl: remove duplicated argument for completion (#31926)
Collin L [Mon, 22 Jul 2024 09:36:47 +0000 (17:36 +0800)] 
zsh/_networkctl: remove duplicated argument for completion (#31926)

It is unnecessary, which will mess the completion.

16 months agoresolved: tests for dns_packet_append_answer(); SRV records
James Coglan [Mon, 10 Jun 2024 15:21:40 +0000 (16:21 +0100)] 
resolved: tests for dns_packet_append_answer(); SRV records

16 months agoresolved: tests for dns_packet_append_answer(); NS, CNAME, PTR and MX records
James Coglan [Mon, 10 Jun 2024 15:21:32 +0000 (16:21 +0100)] 
resolved: tests for dns_packet_append_answer(); NS, CNAME, PTR and MX records

16 months agoresolved: tests for dns_packet_append_answer(); single A record
James Coglan [Mon, 10 Jun 2024 13:16:50 +0000 (14:16 +0100)] 
resolved: tests for dns_packet_append_answer(); single A record

16 months agoresolved: tests for dns_packet_truncate_opt()
James Coglan [Mon, 10 Jun 2024 12:27:19 +0000 (13:27 +0100)] 
resolved: tests for dns_packet_truncate_opt()

16 months agoresolved: tests for dns_packet_append_opt()
James Coglan [Mon, 10 Jun 2024 12:15:53 +0000 (13:15 +0100)] 
resolved: tests for dns_packet_append_opt()

16 months agoresolved: tests for dns_packet_append_key() domain name compression
James Coglan [Mon, 10 Jun 2024 11:30:48 +0000 (12:30 +0100)] 
resolved: tests for dns_packet_append_key() domain name compression

16 months agoresolved: tests for basic usage of dns_packet_append_key()
James Coglan [Mon, 10 Jun 2024 10:12:51 +0000 (11:12 +0100)] 
resolved: tests for basic usage of dns_packet_append_key()

16 months agoresolved: tests for dns_packet_set_flags()
James Coglan [Mon, 10 Jun 2024 09:16:01 +0000 (10:16 +0100)] 
resolved: tests for dns_packet_set_flags()

16 months agoMerge pull request #33802 from DaanDeMeyer/packages
Daan De Meyer [Mon, 22 Jul 2024 09:23:22 +0000 (11:23 +0200)] 
Merge pull request #33802 from DaanDeMeyer/packages

mkosi: Various packaging improvements

16 months agoresolved: tests for DNS parameter formatters
James Coglan [Tue, 11 Jun 2024 15:14:09 +0000 (16:14 +0100)] 
resolved: tests for DNS parameter formatters

16 months agoresolved: tests for dns_packet_is_reply_for()
James Coglan [Tue, 11 Jun 2024 09:54:18 +0000 (10:54 +0100)] 
resolved: tests for dns_packet_is_reply_for()

16 months agoresolved: tests for dns_packet_validate_{query,reply}()
James Coglan [Mon, 10 Jun 2024 09:15:19 +0000 (10:15 +0100)] 
resolved: tests for dns_packet_validate_{query,reply}()

16 months agoresolved: tests for dns_packet_has_nsid_request()
James Coglan [Tue, 11 Jun 2024 14:48:30 +0000 (15:48 +0100)] 
resolved: tests for dns_packet_has_nsid_request()

16 months agoresolved: tests for dns_packet_ede_rcode()
James Coglan [Tue, 11 Jun 2024 14:26:27 +0000 (15:26 +0100)] 
resolved: tests for dns_packet_ede_rcode()

16 months agoresolved: tests for dns_ede_rcode_is_dnssec()
James Coglan [Tue, 11 Jun 2024 13:47:59 +0000 (14:47 +0100)] 
resolved: tests for dns_ede_rcode_is_dnssec()

16 months agoresolved: tests for dns_packet_equal()
James Coglan [Tue, 11 Jun 2024 13:44:26 +0000 (14:44 +0100)] 
resolved: tests for dns_packet_equal()

16 months agoresolved: tests for dns_packet_extract(); parsing LOC records
James Coglan [Wed, 12 Jun 2024 17:47:30 +0000 (18:47 +0100)] 
resolved: tests for dns_packet_extract(); parsing LOC records

16 months agoresolved: tests for dns_packet_extract(); parsing TXT records
James Coglan [Wed, 12 Jun 2024 12:27:52 +0000 (13:27 +0100)] 
resolved: tests for dns_packet_extract(); parsing TXT records

16 months agoshared: log error when execve fail
Mauri de Souza Meneguzzo [Tue, 25 Jun 2024 02:47:15 +0000 (23:47 -0300)] 
shared: log error when execve fail

If there is an error with the execv call in fork_agent the
program exits without any meaningful log message. Log the
command and errno so the user gets more information about
the failure.

Fixes: #33418
Signed-off-by: Mauri de Souza Meneguzzo <mauri870@gmail.com>
16 months agoresolved: tests for dns_packet_extract(); parsing OPT records
James Coglan [Tue, 11 Jun 2024 10:57:36 +0000 (11:57 +0100)] 
resolved: tests for dns_packet_extract(); parsing OPT records

These tests identify a couple of problems with OPT pseudo-RR parsing.

First, any TTL value with the high bit set is replaced with zero before
checking the record type. For most types this is correct, since TTLs
have the range of signed int32. But for OPT records where the TTL is
repurposed to hold the extended RCODE, EDNS version and flags, it means
that the high bit cannot be used in extended RCODEs. Any RCODE with the
high bit set will be read as zero.

Second, the DNS_PACKET_RCODE() function bit-shifts the extended RCODE by
24 places instead of 20, so that it ends up forming the lower 8 bits of
a 12-bit RCODE, instead of the upper 8 bits as intended.

We intend to fix these issues in other pull requests.

16 months agoresolved: tests for dns_packet_extract(); parsing NAPTR records
James Coglan [Tue, 11 Jun 2024 09:36:10 +0000 (10:36 +0100)] 
resolved: tests for dns_packet_extract(); parsing NAPTR records

16 months agoresolved: tests for dns_packet_extract(); parsing HINFO records
James Coglan [Tue, 11 Jun 2024 09:26:02 +0000 (10:26 +0100)] 
resolved: tests for dns_packet_extract(); parsing HINFO records

16 months agoresolved: tests for dns_packet_extract(); parsing SVCB and HTTPS records
James Coglan [Tue, 11 Jun 2024 08:32:24 +0000 (09:32 +0100)] 
resolved: tests for dns_packet_extract(); parsing SVCB and HTTPS records

16 months agoMerge pull request #33432 from gregorHerburger/add_IFLA_BR_FDB_MAX_LEARNED_support
Luca Boccassi [Mon, 22 Jul 2024 09:06:16 +0000 (10:06 +0100)] 
Merge pull request #33432 from gregorHerburger/add_IFLA_BR_FDB_MAX_LEARNED_support

network: bridge: add support for  IFLA_BR_FDB_MAX_LEARNED

16 months agoresolved: tests for dns_packet_extract(); parsing RRSIG records
James Coglan [Fri, 7 Jun 2024 14:42:31 +0000 (15:42 +0100)] 
resolved: tests for dns_packet_extract(); parsing RRSIG records

16 months agoresolved: tests for dns_packet_extract(); parsing SRV records
James Coglan [Fri, 7 Jun 2024 13:45:56 +0000 (14:45 +0100)] 
resolved: tests for dns_packet_extract(); parsing SRV records

16 months agoresolved: tests for dns_packet_extract(); handling ANY class/type in answers
James Coglan [Fri, 7 Jun 2024 08:56:40 +0000 (09:56 +0100)] 
resolved: tests for dns_packet_extract(); handling ANY class/type in answers

16 months agoresolved: tests for dns_packet_extract(); parsing SOA records
James Coglan [Fri, 7 Jun 2024 08:22:26 +0000 (09:22 +0100)] 
resolved: tests for dns_packet_extract(); parsing SOA records

16 months agoresolved: tests for dns_packet_extract(); parsing NS records
James Coglan [Fri, 7 Jun 2024 07:54:18 +0000 (08:54 +0100)] 
resolved: tests for dns_packet_extract(); parsing NS records

16 months agoresolved: tests for dns_packet_extract(); parsing A records
James Coglan [Fri, 7 Jun 2024 07:28:00 +0000 (08:28 +0100)] 
resolved: tests for dns_packet_extract(); parsing A records

16 months agoresolved: tests for dns_packet_extract(); check handling of self-referential compress...
James Coglan [Mon, 10 Jun 2024 13:46:55 +0000 (14:46 +0100)] 
resolved: tests for dns_packet_extract(); check handling of self-referential compression pointers

16 months agoresolved: tests for dns_packet_extract(); checking for malformed queries
James Coglan [Thu, 6 Jun 2024 14:46:43 +0000 (15:46 +0100)] 
resolved: tests for dns_packet_extract(); checking for malformed queries

16 months agoresolved: tests for dns_packet_extract(); A and CNAME answers with domain compression
James Coglan [Wed, 5 Jun 2024 15:24:13 +0000 (16:24 +0100)] 
resolved: tests for dns_packet_extract(); A and CNAME answers with domain compression

16 months agoresolved: tests for dns_packet_extract(); parsing of queries
James Coglan [Wed, 5 Jun 2024 14:31:05 +0000 (15:31 +0100)] 
resolved: tests for dns_packet_extract(); parsing of queries

16 months agoresolved: tests for parsing DNS packet headers
James Coglan [Wed, 5 Jun 2024 14:07:45 +0000 (15:07 +0100)] 
resolved: tests for parsing DNS packet headers

16 months agomkosi: update arch commit reference 33802/head
Daan De Meyer [Mon, 22 Jul 2024 08:28:57 +0000 (10:28 +0200)] 
mkosi: update arch commit reference

1d577a6268 refresh the keys
12383ba712 make libarchive a regular optional dependency...
f51d5e04bf ignore rc releases in nvchecker
0b096a2baa add nvchecker
5f0ced863c upgpkg: 256.2-1: new upstream release

16 months agomkosi: update fedora commit reference
Daan De Meyer [Mon, 22 Jul 2024 08:28:50 +0000 (10:28 +0200)] 
mkosi: update fedora commit reference

00babccdea Simplify BFQ scheduler enablement
ef8ddb130b Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
5b4a5461d6 Fix changelog
a8c5c736f6 Only apply shorter shutdown timer changes on Fedora
*   f4e284cd7a Merge #150 `Deal with systemd-timesyncd backport in EPEL`
|\
| * 9378a0733a Deal with systemd-timesyncd backport in EPEL
* | 12d1f05029 Don't claim /sbin/installkernel if building for CentOS Stream 9
|/
79828f2753 spec: use "positive" conditions in conditionals
c5d3af1638 Add build dependency on rsync on CentOS Stream 9
8d080fb5cb Backport udma buffer access patch
6084453807 Add support for building from a specific branch
cb9d631ca0 Update PR patch metadata
3889da947e In standalone subpackages, suggest coreutils-single
b7800e3e66 Drop versions from Conflicts for standalone packages

16 months agotest: systemd-networkd-tests: add fdb learned tests 33432/head
Gregor Herburger [Thu, 20 Jun 2024 14:22:56 +0000 (16:22 +0200)] 
test: systemd-networkd-tests: add fdb learned tests

Add a test for the new bridge netlink attributes IFLA_BR_FDB_N_LEARNED and
IFLA_BR_FDB_MAX_LEARNED.

Signed-off-by: Gregor Herburger <gregor.herburger@ew.tq-group.com>
16 months agonetworkctl: add support to display learned fdb entries
Gregor Herburger [Wed, 12 Jun 2024 12:05:09 +0000 (14:05 +0200)] 
networkctl: add support to display learned fdb entries

Since Linux commit ddd1ad68826d ("net: bridge: Add netlink knobs for number
/ max learned FDB entries") [1] it is possible to limit to number of
dynamically learned fdb entries per bridge.

Add support to the systemd networkctl for the netlink bridge attributes
IFLA_BR_FDB_MAX_LEARNED and IFLA_BR_FDB_N_LEARNED.

[1] https://lore.kernel.org/all/20231016-fdb_limit-v5-0-32cddff87758@avm.de/

Signed-off-by: Gregor Herburger <gregor.herburger@ew.tq-group.com>
16 months agonetwork: bridge: add support for IFLA_BR_FDB_MAX_LEARNED
Gregor Herburger [Thu, 20 Jun 2024 14:10:24 +0000 (16:10 +0200)] 
network: bridge: add support for IFLA_BR_FDB_MAX_LEARNED

Since Linux commit ddd1ad68826d ("net: bridge: Add netlink knobs for number
/ max learned FDB entries") [1] it is possible to limit to number of
dynamically learned fdb entries per bridge.

Add support to the systemd netdev bridge for the new netlink attribute
IFLA_BR_FDB_MAX_LEARNED.

[1] https://lore.kernel.org/all/20231016-fdb_limit-v5-0-32cddff87758@avm.de/

Signed-off-by: Gregor Herburger <gregor.herburger@ew.tq-group.com>
16 months agomkosi: Use the Fedora Rawhide spec for CentOS
Daan De Meyer [Mon, 22 Jul 2024 08:25:46 +0000 (10:25 +0200)] 
mkosi: Use the Fedora Rawhide spec for CentOS

These are now practically identical, with the only differences between
the two having no effect on the rpm builds we do with mkosi, so let's
cut out the middle man and just use the Fedora Rawhide spec for CentOS
as well.

16 months agomkosi: Switch back to PKG_SUBDIR instead of symlinks
Daan De Meyer [Mon, 22 Jul 2024 08:22:48 +0000 (10:22 +0200)] 
mkosi: Switch back to PKG_SUBDIR instead of symlinks

Previously I thought it would make sense to allow running the build
scripts from within the VM/container to rebuild the packages. Instead
we ended up making it possible to rerun mkosi outside of the container/VM
to rebuild the packages, so let's switch back to $PKG_SUBDIR to tell the
build scripts where to look for the packaging sources.

16 months agocore: pin notify sender through pidfd (potentially SCM_PIDFD) 33791/head
Mike Yuan [Sun, 14 Jul 2024 15:19:50 +0000 (17:19 +0200)] 
core: pin notify sender through pidfd (potentially SCM_PIDFD)

16 months agomissing_socket: add SCM_PASSPIDFD and SCM_PIDFD
Mike Yuan [Sun, 21 Jul 2024 20:50:58 +0000 (22:50 +0200)] 
missing_socket: add SCM_PASSPIDFD and SCM_PIDFD

Preparation for later commits.

16 months agocore/service: use switch in service_notify_message_authorized()
Mike Yuan [Sun, 14 Jul 2024 18:32:34 +0000 (20:32 +0200)] 
core/service: use switch in service_notify_message_authorized()

16 months agocore/manager: minor refactor for manager_dispatch_notify_fd()
Mike Yuan [Sun, 14 Jul 2024 15:16:30 +0000 (17:16 +0200)] 
core/manager: minor refactor for manager_dispatch_notify_fd()

16 months agocore/manager: modernize manager_setup_notify() a bit
Mike Yuan [Sun, 14 Jul 2024 15:32:12 +0000 (17:32 +0200)] 
core/manager: modernize manager_setup_notify() a bit

16 months agoprocess-util: modernize pidfd_get_pid()
Mike Yuan [Sun, 14 Jul 2024 16:25:20 +0000 (18:25 +0200)] 
process-util: modernize pidfd_get_pid()

16 months agopidref: move comments that doesn't belong in pidref_copy() to pidref_dup()
Mike Yuan [Fri, 12 Jul 2024 15:15:50 +0000 (17:15 +0200)] 
pidref: move comments that doesn't belong in pidref_copy() to pidref_dup()

Follow-up for 232e66217d64aeab51786b0d2794377874ab61ab

16 months agocore/dbus: use Manager.prefix where appropriate
Mike Yuan [Wed, 17 Jul 2024 16:07:58 +0000 (18:07 +0200)] 
core/dbus: use Manager.prefix where appropriate

16 months agocore/dbus: make two functions return void
Mike Yuan [Wed, 17 Jul 2024 15:52:00 +0000 (17:52 +0200)] 
core/dbus: make two functions return void

16 months agocore/device: prefix DEVICE_FOUND_MASK with '_'
Mike Yuan [Sun, 21 Jul 2024 14:59:19 +0000 (16:59 +0200)] 
core/device: prefix DEVICE_FOUND_MASK with '_'

In accordance to our usual style for special enum values.

16 months agocore/device: minor refactors
Mike Yuan [Sun, 21 Jul 2024 15:01:22 +0000 (17:01 +0200)] 
core/device: minor refactors

16 months agoMerge pull request #32612 from YHNdnzj/creds-test
Mike Yuan [Sun, 21 Jul 2024 20:27:42 +0000 (22:27 +0200)] 
Merge pull request #32612 from YHNdnzj/creds-test

core/service: imply Type=exec if credentials are used

16 months agocore/service: imply Type=exec if credentials are used 32612/head
Mike Yuan [Wed, 1 May 2024 13:26:33 +0000 (21:26 +0800)] 
core/service: imply Type=exec if credentials are used

When credentials are used with Type=simple + ExecStartPost=,
i.e. when multiple sd-executor instances are running in parallel
for a single service, the state of final credential dir
might be unexpected wrt path_is_mount_point() and other
steps. So, let's imply Type=exec if not explicitly specified,
and emit a warning otherwise.

16 months agotest-execute: ExecStop= and friends should not get credentials
Mike Yuan [Tue, 30 Apr 2024 13:55:05 +0000 (21:55 +0800)] 
test-execute: ExecStop= and friends should not get credentials

See #32583

16 months agocryptsetup: handle parallel activation of volumes with another tool gracefully
Kamil Szczęk [Thu, 27 Jun 2024 17:05:43 +0000 (19:05 +0200)] 
cryptsetup: handle parallel activation of volumes with another tool gracefully

This commit makes systemd-cryptsetup exit with a successful status when
the volume gets unlocked outside of the current systemd-cryptsetup
process while it was executing. This can be easily reproduced by calling
systemd-cryptsetup, and while it waits for user to input a password/PIN,
unlock the volume in a second terminal. Then after entering the password
systemd-cryptsetup will exit with a non-zero status code.