]>
git.ipfire.org Git - thirdparty/systemd.git/log
Luca Boccassi [Fri, 26 Jul 2024 09:04:20 +0000 (10:04 +0100)]
Merge pull request #33842 from DaanDeMeyer/test
Two fixes
Daan De Meyer [Thu, 25 Jul 2024 11:22:42 +0000 (13:22 +0200)]
resize-fs: Put minimal ext4 size in the same ballpark as the other filesystems
TEST-46-HOMED fails on ext4 because the filesystem is deemed to small
for activation by cryptsetup. Let's bump the minimal filesystem size for
ext4 a bit to be in the same ballpark as ext4 and btrfs to avoid weird
errors due to impossibly small filesystems.
Also use U64_MB while we're touching this.
Luca Boccassi [Thu, 25 Jul 2024 13:11:11 +0000 (14:11 +0100)]
Merge pull request #33825 from DaanDeMeyer/chattr
repart: Create disk image file with copy-on-write disabled on btrfs
Luca Boccassi [Thu, 25 Jul 2024 11:05:53 +0000 (12:05 +0100)]
shell completion: add support for sd-analyze capability --mask
Follow-up for
3e7a029c2856e7814b930443cc2d4fb089377592
Luca Boccassi [Thu, 25 Jul 2024 12:18:53 +0000 (13:18 +0100)]
Merge pull request #33840 from bluca/test_locale_dbus
test: fix D-Bus policy override for TEST-73-LOCALE
Daan De Meyer [Thu, 25 Jul 2024 11:08:48 +0000 (13:08 +0200)]
TEST-54-CREDS: Specify SMBIOS creds via corresponding mkosi option
This allows mkosi to combine fstab.extra with its own fstab.extra so
that it doesn't override the one we pass for the test.
David Tardon [Thu, 25 Jul 2024 08:06:34 +0000 (10:06 +0200)]
sd-event: do not assert on invalid signal
The signalfd_siginfo struct is received from outside via a FD, hence
assert() is not appropriate way to check it. Just do a normal runtime
check.
David Tardon [Thu, 25 Jul 2024 07:47:56 +0000 (09:47 +0200)]
logind-dbus: check auth. for all inhibitor operations
Fixes #33834
Jeffrey Bosboom [Thu, 25 Jul 2024 01:14:24 +0000 (18:14 -0700)]
docs/CONTROL_GROUP_INTERFACE.md: document accounting information available via D-Bus
Luca Boccassi [Thu, 25 Jul 2024 10:08:21 +0000 (11:08 +0100)]
Merge pull request #33727 from intelfx/work/analyze-capability-masks
analyze: capability: add support for decoding capability masks
Mike Yuan [Wed, 24 Jul 2024 14:28:48 +0000 (16:28 +0200)]
basic/log: do not treat all negative errnos as synthetic
Currently, IS_SYNTHETIC_ERRNO() evaluates to true for all negative errnos,
because of the two's-complement negative value representation.
Subsequently, ERRNO= is not logged for most of our own code.
Let's fix this, by formatting all synthetic errnos as positive.
Then, treat all negative values as non-synthetic.
While at it, mark the evaluation order explicitly, and remove
unneeded comment.
Fixes #33800
Daan De Meyer [Wed, 24 Jul 2024 13:04:43 +0000 (15:04 +0200)]
tree-wide: Don't explicity disable copy-on-write when copying images
Since the copy helpers now copy file attributes as well, let's not
explicitly disable copy-on-write anymore when we copy an image. If
the source already has copy-on-write disabled, the copy will have it
disabled as well. Otherwise, the copy will also have copy-on-write
enabled.
This makes sure that reflinks always work as reflink is only supported
if both source and target are copy-on-write or both source and target
are not copy-on-write.
Daan De Meyer [Wed, 24 Jul 2024 12:56:11 +0000 (14:56 +0200)]
copy: Copy file attributes as well
Let's make sure we copy all file attributes that can be copied as
well.
Luca Boccassi [Thu, 25 Jul 2024 09:46:56 +0000 (10:46 +0100)]
mkosi: update debian commit reference
*
7eebe8c0b1 autopkgtest: allow localectl in localed tests
*
c08a88ffbb Update changelog for 256.4-1 release
*
03814c87fe Fix D-Bus policy for locale1 blocking
*
16f6130038 Drop last patch, all merged upstream
*
fe6956e934 Install varlinkctl zsh completion file
*
9bc2a52832 Update upstream source from tag 'upstream/256.4'
*
8574241978 New upstream version 256.4
Luca Boccassi [Thu, 25 Jul 2024 09:43:48 +0000 (10:43 +0100)]
test: fix D-Bus policy override for TEST-73-LOCALE
We don't need to allow non-root, and the policy needs to specify destination
and interface too, to narrow it down
Follow-up for
7b5c38a91def6cf236605010a0a93a1cd4c137e9
Daan De Meyer [Wed, 24 Jul 2024 12:54:06 +0000 (14:54 +0200)]
Make read_attr_path() more generic
Let's make this an openat() like function so it can be used in more
scenarios.
Daan De Meyer [Tue, 23 Jul 2024 20:44:03 +0000 (22:44 +0200)]
repart: Create disk image file with copy-on-write disabled on btrfs
COW on btrfs generally does not play well lots of random writes so
let's make the disk images generated by repart NOCOW by default on
btrfs like we do elsewhere across the codebase.
Daan De Meyer [Tue, 23 Jul 2024 19:43:13 +0000 (21:43 +0200)]
repart: Make partition files NOCOW if the disk image is NOCOW
On btrfs, reflinks into a disk image that has copy-on-write disabled
only work if the source has copy-on-write disabled as well so let's
make sure that's the case if the disk image has copy-on-write disabled.
Daan De Meyer [Tue, 23 Jul 2024 19:37:11 +0000 (21:37 +0200)]
fs-util: Add XO_NOCOW flag
Let's add a flag for xopenat() that immediately makes a file NOCOW
after opening it if it's supported.
Daan De Meyer [Tue, 23 Jul 2024 19:35:08 +0000 (21:35 +0200)]
fs-util: Clean up properly in xopenat_full() on labelling error
If we fail to relabel the file, we should unlink the file or directory
again, so let's make sure we do that.
Daan De Meyer [Wed, 24 Jul 2024 08:41:24 +0000 (10:41 +0200)]
fs-util: Handle dangling symlinks in openat_report_new()
openat() will always resolve symlinks, except if O_NOFOLLOW is passed
or O_CREAT|O_EXCL is passed. This means that if a dangling symlink is
passed to openat_report_new(), the first call to openat() will always
fail with ENOENT and the second call to openat() will always fail with
EEXIST.
Let's catch this case explicitly and fallback to creating the file with
just O_CREAT and assume we're the ones that created the file. We can't
resolve the symlink with chase() because this function is itself called
by chase() so we could end up in weird recursive calls if we'd try to do
so.
Daan De Meyer [Wed, 24 Jul 2024 08:50:38 +0000 (10:50 +0200)]
test-fs-util: Modernize openat_report_new() test
Daan De Meyer [Wed, 24 Jul 2024 07:56:25 +0000 (09:56 +0200)]
test-id128: Use new assertion macros
Daan De Meyer [Wed, 24 Jul 2024 07:56:01 +0000 (09:56 +0200)]
test: Add ASSERT_EQ_ID128() and ASSERT_NE_ID128()
Daan De Meyer [Wed, 24 Jul 2024 07:55:21 +0000 (09:55 +0200)]
test: Add ASSERT_FAIL()
Daan De Meyer [Wed, 24 Jul 2024 11:27:46 +0000 (13:27 +0200)]
mkosi: Update to latest
Includes the required fix to make mkosi copy NOCOW disk images properly.
Ivan Shapovalov [Mon, 15 Jul 2024 09:47:25 +0000 (11:47 +0200)]
analyze: capability: add support for decoding capability masks
This adds support in `systemd-analyze capability` for decoding
capability masks (sets), e.g.:
```console
$ systemd-analyze capability --mask
0000000000003c00
NAME NUMBER
cap_net_bind_service 10
cap_net_broadcast 11
cap_net_admin 12
cap_net_raw 13
```
This is intended as a convenience tool for pretty-printing capability
values as found in e.g. `/proc/$PID/status`.
Luca Boccassi [Wed, 24 Jul 2024 09:16:06 +0000 (10:16 +0100)]
mkosi: update debian commit reference
*
c7138e0b87 Configure default DNS servers for upstream CI builds
*
bc5d1afe1e Drop out-of-tree localed patch and use D-Bus policy instead
*
b5f8ababde autopkgtest: set Release= in mkosi.local.conf to distinguish testing vs unstable
*
323afafd80 autopkgtest: add allow-stderr to timedated test
*
0291f361e3 Install valrinkctl zsh completion file
*
f40b9eba02 d/t/control: add Depends: lib{systemd,udev}-dev for upstream
*
3def595de3 d/t/upstream: ensure correct ubuntu codename is used
*
531bb6817e d/t/boot-and-services: fix a couple python sytax warnings
*
963ac13b7d d/t/boot-and-services: skip test_tmp_cleanup if tmp.mount is overridden
MkKvcs [Wed, 24 Jul 2024 01:12:05 +0000 (03:12 +0200)]
hwdb: add axis range corrections for the Lenovo Thinkpad E16
Luca Boccassi [Wed, 24 Jul 2024 07:23:36 +0000 (08:23 +0100)]
Merge pull request #33823 from YHNdnzj/varlink-deserialize-again
core: reliably check if varlink socket has been deserialized; switch varlink server to pidref
vdovhanych [Mon, 22 Jul 2024 20:57:25 +0000 (22:57 +0200)]
add udev rules for trezor hw wallet devices
Ronan Pigott [Wed, 17 Jul 2024 23:30:19 +0000 (16:30 -0700)]
resolved: report svc params as a json object
This representation is significantly more useful. The previous array
format omitted the svc param key, which is not very useful.
Luca Boccassi [Tue, 23 Jul 2024 22:08:19 +0000 (23:08 +0100)]
Merge pull request #33810 from YHNdnzj/find-executable-simplify
path-util: minor cleanup for find_executable()
Luca Boccassi [Tue, 23 Jul 2024 22:03:26 +0000 (23:03 +0100)]
Merge pull request #33809 from YHNdnzj/pidref-namespace
namespace-util: introduce pidref_namespace_open() and use it where appropriate; clean up mount-util a bit along the way
Luca Boccassi [Tue, 23 Jul 2024 18:01:23 +0000 (19:01 +0100)]
Merge pull request #33535 from neighbourhoodie/tests/dns-cache
Tests for DnsCache functions
Luca Boccassi [Tue, 23 Jul 2024 17:47:14 +0000 (18:47 +0100)]
Merge pull request #33534 from neighbourhoodie/tests/dns-query
Tests for DnsQuery functions
Mike Yuan [Tue, 23 Jul 2024 15:14:39 +0000 (17:14 +0200)]
core-varlink: switch to PidRef + manager_get_unit_by_pidref()
Mike Yuan [Tue, 23 Jul 2024 15:06:57 +0000 (17:06 +0200)]
core-varlink: do not log about ENOENT if oomd isn't available
This is simply too noisy, since every invocation of
manager_varlink_send_managed_oom_update() would try to
connect to oomd if not already.
Mike Yuan [Tue, 23 Jul 2024 15:01:01 +0000 (17:01 +0200)]
core-varlink: add missing runtime_scope check for manager_varlink_init_user()
Mike Yuan [Tue, 23 Jul 2024 15:55:12 +0000 (17:55 +0200)]
core: reliably check if varlink socket has been deserialized
Follow-up for
6906c028e83b77b35eaaf87b27d0fe5c6e1984b7
The mentioned commit uses access() to check if varlink socket
already exists in the filesystem, but that isn't sufficient.
> Varlink sockets are not serialized until v252, so upgrading from
> v251 or older means we will not listen anymore on the varlink sockets.
>
> See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=
1074789
> for more details as this was found when updating from Debian Bullseye to a new version.
After this commit, the set up of varlink_server is effectively
split into two steps. manager_varlink_init_system(), which is
called after deserialization, would no longer skip listening
even if Manager.varlink_server is in place, but actually
check if we're listening on desired sockets.
Then, manager_deserialize() can be switched back to using
manager_setup_varlink_server().
Alternative to #33817
Co-authored-by: Luca Boccassi <bluca@debian.org>
Mike Yuan [Mon, 10 Jun 2024 15:47:09 +0000 (17:47 +0200)]
mount-util: reorder params for mount_in_userspace, clean up logging
Mike Yuan [Mon, 10 Jun 2024 15:45:39 +0000 (17:45 +0200)]
mount-util: do not unnecessarily acquire mountns fd twice
This also enables us to use pidref_namespace_open().
Mike Yuan [Mon, 10 Jun 2024 15:43:52 +0000 (17:43 +0200)]
mount-util: clean up mount_exchange_graceful a bit, don't duplicate move_mount when fallback
Mike Yuan [Mon, 22 Jul 2024 18:21:16 +0000 (20:21 +0200)]
machine-dbus: use pidref_namespace_open() where appropriate
Mike Yuan [Mon, 22 Jul 2024 18:11:54 +0000 (20:11 +0200)]
namespace-util: introduce pidref_namespace_open()
Mike Yuan [Mon, 22 Jul 2024 18:02:03 +0000 (20:02 +0200)]
namespace-util: explicitly specify namespace_info[]'s size
We do this already in all string lookup tables. This way
it's guaranteed that iterators which ends with _NAMESPACE_TYPE_MAX
wouldn't overrun the array.
Mike Yuan [Mon, 22 Jul 2024 20:17:24 +0000 (22:17 +0200)]
path-util: simplify final path for find_executable()
Currently, systemd-run ./test.sh would set Description=
to $PWD/./test.sh. This is quite ugly.
Mike Yuan [Mon, 22 Jul 2024 20:17:05 +0000 (22:17 +0200)]
path-util: trivial cleanup for find_executable_full()
Mike Yuan [Wed, 3 Jul 2024 18:49:34 +0000 (20:49 +0200)]
core: clean up Set/LoadCredential= parsers
Make logging consistent, plus introduce helper function
for adding creds to ExecContext.set_credential too.
Daan De Meyer [Tue, 23 Jul 2024 12:16:23 +0000 (14:16 +0200)]
mkosi: Bump device timeout even more
I still manage to hit it in some cases so let's bump again.
Luca Boccassi [Tue, 23 Jul 2024 14:44:40 +0000 (15:44 +0100)]
Merge pull request #33533 from neighbourhoodie/tests/dns-synthesize
James Coglan [Mon, 24 Jun 2024 13:43:18 +0000 (14:43 +0100)]
resolved: tests for dns_synthesize_family() and dns_synthesize_protocol()
James Coglan [Mon, 24 Jun 2024 13:23:23 +0000 (14:23 +0100)]
resolved: tests for dns_synthesize_answer()
Mary Strodl [Fri, 12 Jul 2024 13:38:05 +0000 (09:38 -0400)]
sd-dhcp-server: persist hardware addresses in leases
James Coglan [Mon, 24 Jun 2024 09:16:02 +0000 (10:16 +0100)]
resolved: tests for dns_query_string()
James Coglan [Mon, 24 Jun 2024 08:22:17 +0000 (09:22 +0100)]
resolved: tests for dns_query_go(); multiple search domains for dns_query_candidate_notify()
James Coglan [Mon, 24 Jun 2024 07:51:38 +0000 (08:51 +0100)]
resolved: refactor environment management in dns_query_go() tests
James Coglan [Fri, 21 Jun 2024 16:56:22 +0000 (17:56 +0100)]
resolved: tests for dns_query_go() when configured with search domains
James Coglan [Fri, 21 Jun 2024 16:43:16 +0000 (17:43 +0100)]
resolved: tests for dns_query_go() when no scopes are available
James Coglan [Fri, 21 Jun 2024 16:01:01 +0000 (17:01 +0100)]
resolved: tests for dns_query_go() using a bypass query
James Coglan [Fri, 21 Jun 2024 14:40:20 +0000 (15:40 +0100)]
resolved: tests for dns_query_go() -- with and without network link
James Coglan [Thu, 20 Jun 2024 16:25:50 +0000 (17:25 +0100)]
resolved: tests for dns_query_process_cname_one(); no match, DNAME, utf-8 handling
James Coglan [Thu, 20 Jun 2024 16:03:33 +0000 (17:03 +0100)]
resolved: tests for dns_query_process_cname_many()
James Coglan [Thu, 20 Jun 2024 15:24:58 +0000 (16:24 +0100)]
resolved: tests for common usage of dns_query_process_cname_one()
James Coglan [Thu, 20 Jun 2024 13:10:14 +0000 (14:10 +0100)]
resolved: tests for dns_query_make_auxiliary()
James Coglan [Thu, 20 Jun 2024 09:13:21 +0000 (10:13 +0100)]
resolved: tests for dns_query_new()
James Coglan [Wed, 19 Jun 2024 11:22:49 +0000 (12:22 +0100)]
resolved: tests for dns_cache_lookup() clamping the TTL
James Coglan [Wed, 19 Jun 2024 11:01:06 +0000 (12:01 +0100)]
resolved: tests for dns_cache_put() for NXDOMAIN with no SOA
James Coglan [Wed, 19 Jun 2024 10:29:44 +0000 (11:29 +0100)]
resolved: test that pseudo classes and types are not cached
James Coglan [Wed, 19 Jun 2024 09:39:01 +0000 (10:39 +0100)]
resolves: tests for dns_cache_prune()
James Coglan [Wed, 19 Jun 2024 09:05:29 +0000 (10:05 +0100)]
resolved: tests for dns_cache_check_conflicts()
James Coglan [Tue, 18 Jun 2024 16:57:55 +0000 (17:57 +0100)]
resolved: tests for dns_cache_export_shared_to_packet()
James Coglan [Tue, 18 Jun 2024 15:19:07 +0000 (16:19 +0100)]
resolved: tests for dns_cache_lookup(); mDNS and multiple matching entries
James Coglan [Tue, 18 Jun 2024 14:02:30 +0000 (15:02 +0100)]
resolved: tests for dns_cache_lookup() returning the most recent input
James Coglan [Fri, 24 May 2024 09:58:30 +0000 (10:58 +0100)]
resolved: tests for dns_cache_dump()
James Coglan [Thu, 23 May 2024 09:26:41 +0000 (10:26 +0100)]
resolved: test cache misses
James Coglan [Thu, 23 May 2024 08:53:42 +0000 (09:53 +0100)]
resolved: tests for dns_cache_lookup() for NXDOMAIN
James Coglan [Wed, 22 May 2024 15:49:18 +0000 (16:49 +0100)]
resolved: first test for dns_cache_lookup()
James Coglan [Wed, 22 May 2024 14:54:36 +0000 (15:54 +0100)]
resolved: tests for dns_cache_dump_to_json()
James Coglan [Thu, 23 May 2024 14:57:05 +0000 (15:57 +0100)]
resolved: check that adding an expired response removes cache entry
James Coglan [Tue, 21 May 2024 15:26:31 +0000 (16:26 +0100)]
resolved: tests for dns_cache_put(); CNAME success and name error
James Coglan [Tue, 21 May 2024 14:37:56 +0000 (15:37 +0100)]
resolved: tests for dns_cache_put() with non-matching class, type, name
James Coglan [Tue, 21 May 2024 13:49:40 +0000 (14:49 +0100)]
resolved: refactor DNS answer construction for cache tests
James Coglan [Tue, 21 May 2024 13:39:26 +0000 (14:39 +0100)]
resolved: test for dns_cache_put() with empty answer
James Coglan [Tue, 21 May 2024 13:30:30 +0000 (14:30 +0100)]
resolved: tests for dns_cache_put() with different RCODEs
James Coglan [Fri, 17 May 2024 10:22:34 +0000 (11:22 +0100)]
resolved: tests for dns_cache_put(); successful A query
Co-Authored-By: jan@neighbourhood.ie
Luca Boccassi [Tue, 23 Jul 2024 12:29:03 +0000 (13:29 +0100)]
Merge pull request #33531 from neighbourhoodie/tests/dns-zone
James Coglan [Wed, 5 Jun 2024 11:13:18 +0000 (12:13 +0100)]
resolved: tests for dns_zone_lookup()
James Coglan [Fri, 31 May 2024 15:50:17 +0000 (16:50 +0100)]
resolved: tests for dns_zone_remove_rrs_by_key()
James Coglan [Fri, 31 May 2024 15:35:36 +0000 (16:35 +0100)]
resolved: tests for dns_zone_remove_rr()
James Coglan [Fri, 31 May 2024 14:42:18 +0000 (15:42 +0100)]
resolved: tests for dns_zone_put()
Luca Boccassi [Tue, 23 Jul 2024 12:23:44 +0000 (13:23 +0100)]
Merge pull request #33530 from neighbourhoodie/tests/dns-search-domain
James Coglan [Fri, 31 May 2024 14:15:48 +0000 (15:15 +0100)]
resolved: tests for dns_search_domain_find()
James Coglan [Fri, 31 May 2024 14:11:53 +0000 (15:11 +0100)]
resolved: tests for search domain marking and unlinking
James Coglan [Fri, 31 May 2024 13:50:20 +0000 (14:50 +0100)]
resolved: extract function for checking search domains
James Coglan [Fri, 31 May 2024 13:37:01 +0000 (14:37 +0100)]
resolved: tests for dns_search_domain_unlink()
James Coglan [Fri, 31 May 2024 11:56:11 +0000 (12:56 +0100)]
resolved: tests for dns_search_domain_new()
Luca Boccassi [Tue, 23 Jul 2024 12:20:25 +0000 (13:20 +0100)]
Merge pull request #33529 from neighbourhoodie/tests/dns-link
Tests for DNS Link functions
Luca Boccassi [Tue, 23 Jul 2024 12:15:16 +0000 (13:15 +0100)]
Merge pull request #33528 from neighbourhoodie/tests/dns-answer
James Coglan [Tue, 28 May 2024 15:50:16 +0000 (16:50 +0100)]
resolved: tests for dns_answer_order_by_scope()