1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 10:25:37 +03:00
Commit Graph

74815 Commits

Author SHA1 Message Date
James Coglan
1f66bd238f resolved: tests for dns_packet_append_answer(); SRV records 2024-07-22 10:35:01 +01:00
James Coglan
bcd218151f resolved: tests for dns_packet_append_answer(); NS, CNAME, PTR and MX records 2024-07-22 10:34:11 +01:00
James Coglan
1516ebfc02 resolved: tests for dns_packet_append_answer(); single A record 2024-07-22 10:31:11 +01:00
James Coglan
2927f43d2b resolved: tests for dns_packet_truncate_opt() 2024-07-22 10:30:31 +01:00
James Coglan
b6899784b5 resolved: tests for dns_packet_append_opt() 2024-07-22 10:29:51 +01:00
James Coglan
1ac8f468b6 resolved: tests for dns_packet_append_key() domain name compression 2024-07-22 10:29:13 +01:00
James Coglan
fc838bd42a resolved: tests for basic usage of dns_packet_append_key() 2024-07-22 10:27:58 +01:00
James Coglan
6bfbacc9b4 resolved: tests for dns_packet_set_flags() 2024-07-22 10:27:00 +01:00
James Coglan
ca93c4fe75 resolved: tests for DNS parameter formatters 2024-07-22 10:21:05 +01:00
James Coglan
6e85e24376 resolved: tests for dns_packet_is_reply_for() 2024-07-22 10:20:58 +01:00
James Coglan
e7e2f01d7b resolved: tests for dns_packet_validate_{query,reply}() 2024-07-22 10:18:59 +01:00
James Coglan
59e987a0b7 resolved: tests for dns_packet_has_nsid_request() 2024-07-22 10:17:36 +01:00
James Coglan
d6c13c6817 resolved: tests for dns_packet_ede_rcode() 2024-07-22 10:16:59 +01:00
James Coglan
9728540e61 resolved: tests for dns_ede_rcode_is_dnssec() 2024-07-22 10:15:22 +01:00
James Coglan
eedf263bd0 resolved: tests for dns_packet_equal() 2024-07-22 10:15:15 +01:00
James Coglan
e067858bb1 resolved: tests for dns_packet_extract(); parsing LOC records 2024-07-22 10:14:09 +01:00
James Coglan
2dd00dba25 resolved: tests for dns_packet_extract(); parsing TXT records 2024-07-22 10:13:03 +01:00
James Coglan
6cf9767e1c 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.
2024-07-22 10:11:51 +01:00
James Coglan
99fe3607ca resolved: tests for dns_packet_extract(); parsing NAPTR records 2024-07-22 10:09:23 +01:00
James Coglan
b0a0743b71 resolved: tests for dns_packet_extract(); parsing HINFO records 2024-07-22 10:08:35 +01:00
James Coglan
5e663903f3 resolved: tests for dns_packet_extract(); parsing SVCB and HTTPS records 2024-07-22 10:07:03 +01:00
James Coglan
c0ae07ec2b resolved: tests for dns_packet_extract(); parsing RRSIG records 2024-07-22 10:03:32 +01:00
James Coglan
02ea4cb919 resolved: tests for dns_packet_extract(); parsing SRV records 2024-07-22 10:02:46 +01:00
James Coglan
887bc36231 resolved: tests for dns_packet_extract(); handling ANY class/type in answers 2024-07-22 10:01:35 +01:00
James Coglan
3d0df33fc2 resolved: tests for dns_packet_extract(); parsing SOA records 2024-07-22 10:01:02 +01:00
James Coglan
8a5e122d95 resolved: tests for dns_packet_extract(); parsing NS records 2024-07-22 09:59:20 +01:00
James Coglan
0afc219da8 resolved: tests for dns_packet_extract(); parsing A records 2024-07-22 09:57:39 +01:00
James Coglan
326ba6a5b0 resolved: tests for dns_packet_extract(); check handling of self-referential compression pointers 2024-07-22 09:53:17 +01:00
James Coglan
f97d7a6969 resolved: tests for dns_packet_extract(); checking for malformed queries 2024-07-22 09:52:16 +01:00
James Coglan
48b0b8f0cd resolved: tests for dns_packet_extract(); A and CNAME answers with domain compression 2024-07-22 09:49:01 +01:00
James Coglan
e50e5cffde resolved: tests for dns_packet_extract(); parsing of queries 2024-07-22 09:47:47 +01:00
James Coglan
b8112c9d68 resolved: tests for parsing DNS packet headers 2024-07-22 09:46:27 +01:00
Lennart Poettering
9545512f3e update TODO 2024-07-03 10:55:18 +02:00
Daan De Meyer
6bd14bf4b3 mkosi: update fedora commit reference
* f9fe17dbde Use vmlinux.h from kernel-devel
* 9cbad936a6 Pull in openssl-devel-engine
* 8ae009f929 Only add Requires on python3-zstd on Fedora
* 750e910c7c Drop BuildRequires on python3-zstd
2024-07-03 10:39:58 +02:00
Daan De Meyer
88e9230643 mkosi: Don't touch the packaging checkout if work is being done
If work is being done in a separate branch, don't touch the packaging
checkout.
2024-07-03 01:17:35 +02:00
Daan De Meyer
48d6dad100 meson: Define __TARGET_ARCH macros required by bpf
These are required by the bpf_tracing.h header in libbpf, see
https://github.com/libbpf/libbpf/blob/master/src/bpf_tracing.h.

bpf_tracing.h does have a few fallbacks in case __TARGET_ARCH_XXX
is not defined but recommends using the __TARGET_ARCH macros instead
so let's do that.
2024-07-03 01:16:35 +02:00
Luca Boccassi
e6b2508275 coredump: correctly take tmpfs size into account for compression
We calculate the amount of uncompressed data we can write by taking the limits
into account and halving it to ensure there's room for switching to compression
on the fly when storing cores on a tmpfs (eg: due read-only rootfs).

But the logic is flawed, as taking into account the size of the tmpfs storage
was applied after the halving, so in practice when an uncompressed core file
was larger than the tmpfs, we fill it and then fail.

Rearrange the logic so that the halving is done after taking into account
the tmpfs size.
2024-07-03 01:15:03 +02:00
Mike Yuan
4b7249111a docs/CODING_STYLE: document that we nowadays prefer (const char*) for func ret type
Addresses https://github.com/systemd/systemd/pull/33567#discussion_r1662818225
2024-07-02 23:35:58 +02:00
Luca Boccassi
467c501667
Merge pull request #33577 from fbuihuu/testsuite-tweaks-for-v256-on-SUSE
Testsuite tweaks for v256 on suse
2024-07-02 23:35:33 +02:00
Lennart Poettering
6f5c8f44f1
Merge pull request #33574 from poettering/get-efi-var-raw
efi: efi variable refactoring
2024-07-02 21:16:37 +02:00
Franck Bui
252542ffc3 test: fix TEST-74-AUX-UTILS.ssh.sh on SUSE 2024-07-02 19:07:03 +02:00
Franck Bui
855bad331e test: preserve symlink in inst_recursive()
On SUSE this function is used to copy symlinks installed in *.wants/
directories.
2024-07-02 19:06:21 +02:00
Franck Bui
56a894e888 test: fix TEST-24-CRYPTSETUP on SUSE
/etc/systemd/journald.conf.d drop-in dir already exists on SUSE.
2024-07-02 19:05:07 +02:00
Franck Bui
a09825ce9f test: install /etc/hosts
Needed for resolving the "localhost" hostname.
2024-07-02 19:03:49 +02:00
Lennart Poettering
31e1edf570 efivars: rename efivar_get_uint_string() → efivar_get_uint64_str16()
Be explicit with the type, and more inline with our other code, that
likes to indicate the string char width in the name.

Also, switch to a fixed size type, since EFI variables should really be
binary exact the same on all archs.
2024-07-02 18:15:35 +02:00
Lennart Poettering
50e8b11e16 efi: rename efivar_(set|get)() → efivar_(set|get)_str16()
These functions after all write EFI UTF-16 strings, i.e. are relatively
high-level, hence give them a specific name indicating the type, to
match our other helpers that have similar type suffixes.
2024-07-02 18:15:32 +02:00
Lennart Poettering
70871dd0a3 efivars: use appropropriate uint8_t type when dealing with "raw" bytes
We don't actually want chars here, but rather raw bytes, in particular
to avoid signedness issues. Hence, let's use uint8_t here.
2024-07-02 18:15:30 +02:00
Lennart Poettering
1d22e23edb efivars: change return parameter of efivar_get_raw() to be void**
This is the "raw", untyped version after all, hence we should return a
void pointer, and let the client cast, if they know more.

Replaces: #30812
2024-07-02 18:15:27 +02:00
Lennart Poettering
f84b512290 efi: split out efivars.[ch] from util.[ch]
These are quite a bunch of functions, let's give them their own file.

No code changes, just some trivial refactoring.
2024-07-02 18:15:16 +02:00
Daan De Meyer
cca8c15599 mkosi: Install perf
It's already installed on ubuntu via linux-tools-common.
2024-07-02 18:14:19 +02:00