]>
git.ipfire.org Git - thirdparty/systemd.git/log
Luca Boccassi [Wed, 7 Feb 2024 23:27:31 +0000 (23:27 +0000)]
NEWS: mention logind inhibitors change
Luca Boccassi [Sat, 2 Dec 2023 20:11:57 +0000 (20:11 +0000)]
logind: always check for inhibitor locks
Currently inhibitors are bypassed unless an explicit request is made to
check for them, or even in that case when the requestor is root or the
same uid as the holder of the lock.
But in many cases this makes it impractical to rely on inhibitor locks.
For example, in Debian there are several convoluted and archaic
workarounds that divert systemctl/reboot to some hacky custom scripts
to try and enforce blocking accidental reboots, when it's not expected
that the requestor will remember to specify the command line option
to enable checking for active inhibitor locks.
Also in many cases one wants to ensure that locks taken by a user are
respected by actions initiated by that same user.
Change logind so that inhibitors checks are not skipped in these
cases, and systemctl so that locks are checked in order to show a
friendly error message rather than "permission denied".
Add new block-weak and delay-weak modes that keep the previous
behaviour unchanged.
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
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()
James Coglan [Tue, 28 May 2024 15:01:56 +0000 (16:01 +0100)]
resolved: tests for dns_answer_has_dname_for_cname()
James Coglan [Tue, 28 May 2024 14:25:15 +0000 (15:25 +0100)]
resolved: tests for dns_answer_dump()
James Coglan [Tue, 28 May 2024 13:44:58 +0000 (14:44 +0100)]
resolved: tests for dns_answer_{copy,move}_by_key()
James Coglan [Tue, 28 May 2024 13:05:39 +0000 (14:05 +0100)]
resolved: tests for dns_answer_remove_by_answer_keys()
James Coglan [Fri, 24 May 2024 15:48:42 +0000 (16:48 +0100)]
resolved: tests for dns_answer_remove_by_{key,rr}()
James Coglan [Fri, 24 May 2024 15:10:13 +0000 (16:10 +0100)]
resolved: tests for dns_answer_merge() and dns_answer_extend()
James Coglan [Fri, 24 May 2024 14:22:47 +0000 (15:22 +0100)]
resolved: tests for dns_answer_find_soa()
James Coglan [Fri, 24 May 2024 13:52:41 +0000 (14:52 +0100)]
resolved: tests for dns_answer_add(), dns_answer_match_key()
Luca Boccassi [Tue, 23 Jul 2024 12:10:01 +0000 (13:10 +0100)]
Merge pull request #33526 from neighbourhoodie/tests/dns-question
James Coglan [Fri, 31 May 2024 10:18:56 +0000 (11:18 +0100)]
resolved: tests for dns_question_merge()
James Coglan [Fri, 31 May 2024 10:08:14 +0000 (11:08 +0100)]
resolved: tests for dns_question_first_name()
James Coglan [Fri, 31 May 2024 09:55:34 +0000 (10:55 +0100)]
resolved: tests for dns_question_dump()
James Coglan [Fri, 31 May 2024 09:29:44 +0000 (10:29 +0100)]
resolved: tests for dns_question_cname_redirect()
James Coglan [Fri, 31 May 2024 08:47:11 +0000 (09:47 +0100)]
resolved: tests for dns_question_is_equal()
James Coglan [Fri, 31 May 2024 08:37:00 +0000 (09:37 +0100)]
resolved: tests for dns_question_is_valid_for_query()
James Coglan [Thu, 30 May 2024 17:46:12 +0000 (18:46 +0100)]
resolved: tests for dns_question_matches_cname_or_dname()
James Coglan [Thu, 30 May 2024 17:38:57 +0000 (18:38 +0100)]
resolved: tests for dns_question_matches_rr()
James Coglan [Thu, 30 May 2024 17:11:10 +0000 (18:11 +0100)]
resolved: tests for dns_question_new_service()
James Coglan [Thu, 30 May 2024 16:37:54 +0000 (17:37 +0100)]
resolved: tests for dns_question_new_reverse()