summaryrefslogtreecommitdiffstats
path: root/tmpfiles.d/systemd-resolve.conf (unfollow)
Commit message (Collapse)AuthorFilesLines
2024-03-29portable: the 'flags' parameter is now used in DetachImageWithExtensions() ↵Luca Boccassi1-3/+2
and ReattachImageWithExtensions()
2024-03-29udev: make udevadm test and test-builtin not destructiveYu Watanabe27-247/+346
Previously, 'udevadm test' performs not only processing udev rules, but made several destructive change on the system; updating udev database, device node permission, devlinks, network interface properties, and so on. Similary, 'udevadm test-builtin' may perform something destructive, especially by 'keyboard', 'kmod', and 'net_setup_link' builtins. Let's make these commands and test executables not change device configurations.
2024-03-29network: save the real rdnss addressRonan Pigott1-1/+1
... instead of the router that informed us Fixes: 86a66e9b9504 ("network: also save NTP servers and friends obtained by other protocols")
2024-03-29test: make coverage runs happy with capsule@.serviceFrantisek Sumsal1-1/+1
capsule@.service uses DynamicUser=yes, so let's use the same tweak we use for other such units.
2024-03-28login: Fix fallback error handlingDaan De Meyer1-3/+4
2024-03-28test: disable IPv6AcceptRA= for test network interfaces with static addressYu Watanabe1-0/+2
This hopefully improves test performance.
2024-03-28ndisc-option: allow to set valid time of optionsYu Watanabe4-81/+380
When an option is delegated from an upstream server, its lifetime may be limited by a time. Such functionality will be used later by sd-radv. This also remove 'offset' argument from the option setter ndisc_option_set_xyz(), and make it update existing option. See comments in ndisc_option_add_link_layer_address() for more details.
2024-03-28journalctl-filter: use add_match_boot_id() instead of add_match_this_boot()Yu Watanabe1-5/+1
The function add_match_this_boot() calls sd_journal_add_conjunction(), hence, we cannot specify multiple devices in the extra match arguments, e.g., "journalctl /dev/sda /dev/sdb" shows no entry.
2024-03-28sleep: add SleepMemMode= setting for configuring /sys/power/mem_sleepMike Yuan5-1/+54
The setting is used when /sys/power/state is set to 'mem' (common for suspend) or /sys/power/disk is set to 'suspend' (hybrid-sleep). We default to kernel choice here, i.e. respect what's set through 'mem_sleep_default=' kernel cmdline option.
2024-03-28sleep: make write_mode take a pathMike Yuan1-10/+10
Similar to the previous commit, preparation for adding support for /sys/power/mem_sleep.
2024-03-28sleep-config: make sleep_mode_supported take a pathMike Yuan3-17/+20
Preparation for later commits.
2024-03-28string-util: modernize string_contains_word_strv a bitMike Yuan2-8/+6
Also correct the comment on flags.
2024-03-28sleep-config: fix potential memory leakMike Yuan1-2/+2
Follow-up for 77bd39385eae7b8e3182e66292b9f94bb54e235d
2024-03-28man/systemd-sleep: reorder optionsMike Yuan1-12/+12
2024-03-28sleep-config: make sleep_operation_is_hibernation uppercaseMike Yuan3-4/+4
2024-03-28udev-event: split out update_clone()Yu Watanabe1-18/+30
No functional change, preparation for later commits.
2024-03-28homed: Release(): fix assertion failureAdrian Vovk4-27/+73
This fixes a race condition crash in homed that would happen in the following sequence of events: 1. Client 1 takes a ref on the home area 2. Client 1 calls some method via dbus 3. Client 2 calls Release() In homed, the Release() would check if a ref is still held (in this case: yes it is) and returns an error. Except that is done through a code-path that asserts that no operations are ongoing. In this case, it's valid to have an ongoing operation, and so the assertion fails causing homed to crash.
2024-03-28run: fix generated unit name clash after soft-rebootLuca Boccassi2-3/+31
When sd-run connects to D-Bus rather than the private socket, it will generate the transient unit name using the bus ID assigned by the D-Bus broker/daemon. The issue is that this ID is only unique per D-Bus run, if the broker/daemon restarts it starts again from 1, and it's a simple incremental counter for each client. So if a transient unit run-u6.service starts and fails, and it is not collected (default on failure), and the system soft-reboots, any new transient unit might conflict as the counter will restart: Failed to start transient service unit: Unit run-u6.service was already loaded or has a fragment file. Get the soft-reboot counter, and if it's greater than zero, append it to the autogenerated unit name to avoid clashes.
2024-03-28test-network: add test cases for PersistLeases=noYu Watanabe2-5/+33
2024-03-28network: make [DHCPServer] in networkd.conf workYu Watanabe1-0/+1
Follow-up for a3ed665a29ea9355c78a2a6b3a032b9504499dd6. Fixes https://github.com/systemd/systemd/pull/31977#discussion_r1542196572.
2024-03-28network: fix typoYu Watanabe1-1/+1
Follow-up for a3ed665a29ea9355c78a2a6b3a032b9504499dd6.
2024-03-28timedate: fix typoYu Watanabe1-1/+1
Follow-up for 3a51e31be9f626cf772733cb289ed64739fab0e4.
2024-03-28journalctl-authenticate: return earlier if we are not on a TTYYu Watanabe1-56/+49
No functional change, just refactoring.
2024-03-28journalctl-authenticate: use open_tmpfile_linkable() and link_tmpfile()Yu Watanabe1-21/+16
This also - use path_join(), - rename variables to more descriptive names.
2024-03-28journalctl-authenticate: drop unnecessary safe_close()Yu Watanabe1-1/+0
Follow-up for 7560fffcd2531786b9c1ca657667a43e90331326. Addresses https://github.com/systemd/systemd/pull/31879#discussion_r1539063239.
2024-03-28journalctl-authenticate: use is_dir() and refuse symlink for /var/log/journalYu Watanabe1-10/+9
I am not sure it is explicitly documented that /var/log/journal should be a directory, rather than a symlink to a directory, but the current code of journald seems not to support symlinked directory well. Let's refuse that at least here and now.
2024-03-27analyze: fix plot with soft-rebootLuca Boccassi2-7/+51
Clamp times and start counting from when soft-reboot is started to avoid creating a huge graph, like it's done for the user instance.
2024-03-27test: cleanup the test script a bitFrantisek Sumsal1-84/+79
2024-03-27test: check for /dev/loop-control when checking lodev availabilityFrantisek Sumsal1-2/+2
losetup in util-linux 2.40 started reporting lost loop devices [0] and it has an unfortunate side-effect where it reports lost devices even in containers, which then makes the loop device check "falsely" pass [1]. Let's just check for /dev/loop-control explicitly to "work around" this. [0] https://github.com/util-linux/util-linux/commit/a6ca0456cc6d704a786f6b66d8bb2d89ff18eba7 [1] https://github.com/util-linux/util-linux/issues/2824
2024-03-27timedated: Respond on org.freedesktop.timedate1.SetNTP only when really finishedMichal Koutný1-3/+18
The method returns prematurely (before jobs it triggers terminate). This is externally visible because other methods may fail if jobs did not finish. Postpone the DBus method response until we collect all signals for finished jobs. systemd-timedated keeps track of in-flight DBus requests and answers them all in unspecified order when jobs finish. The capacity of requests in systemd-timedated is limited. Fixes: #17739
2024-03-27mkosi: Copy built packages to output directoryDaan De Meyer5-4/+15
This allows the built packages to be inspected if needed, or installed on the host system for anyone who's daring enough to do so.
2024-03-27mkosi: Update to latestDaan De Meyer1-1/+1
2024-03-27network/dhcp-server: introduce PersistLeases= settingYu Watanabe10-5/+71
Requested at https://github.com/systemd/systemd/pull/31772#issuecomment-2000053357.
2024-03-27journalctl-show/util: add missing headerAntonio Alvarez Feijoo2-0/+4
``` [1237/2836] Compiling C object journalctl.p/src_journal_journalctl-show.c.o FAILED: journalctl.p/src_journal_journalctl-show.c.o cc -Ijournalctl.p -I. -I.. -Isrc/basic -I../src/basic -Isrc/fundamental -I../src/fundamental -Isrc/systemd -I../src/systemd -I../src/libsystemd/sd-bus -I../src/libsystemd/sd-device -I../src/libsystemd/sd-event -I../src/libsystemd/sd-hwdb -I../src/libsystemd/sd-id128 -I../src/libsystemd/sd-journal -I../src/libsystemd/sd-netlink -I../src/libsystemd/sd-network -I../src/libsystemd/sd-resolve -Isrc/shared -I../src/shared -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O0 -g -Wno-missing-field-initializers -Wno-unused-parameter -Wno-nonnull-compare -Warray-bounds -Warray-bounds=2 -Wdate-time -Wendif-labels -Werror=format=2 -Werror=format-signedness -Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=missing-declarations -Werror=missing-prototypes -Werror=overflow -Werror=override-init -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -Werror=undef -Wfloat-equal -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-aliasing=2 -Wstrict-prototypes -Wsuggest-attribute=noreturn -Wunused-function -Wwrite-strings -Wzero-length-bounds -fdiagnostics-show-option -fno-common -fstack-protector -fstack-protector-strong --param=ssp-buffer-size=4 -Wno-unused-result -Werror=shadow -fno-strict-aliasing -fvisibility=hidden -fno-omit-frame-pointer -include config.h -pthread -MD -MQ journalctl.p/src_journal_journalctl-show.c.o -MF journalctl.p/src_journal_journalctl-show.c.o.d -o journalctl.p/src_journal_journalctl-show.c.o -c ../src/journal/journalctl-show.c ../src/journal/journalctl-show.c: In function ‘setup_event’: ../src/journal/journalctl-show.c:330:38: error: ‘STDOUT_FILENO’ undeclared (first use in this function) 330 | r = sd_event_add_io(e, NULL, STDOUT_FILENO, EPOLLHUP|EPOLLERR, NULL, INT_TO_PTR(-ECANCELED)); | ^~~~~~~~~~~~~ ../src/journal/journalctl-show.c:330:38: note: each undeclared identifier is reported only once for each function it appears in [1238/2836] Compiling C object journalctl.p/src_journal_journalctl-util.c.o FAILED: journalctl.p/src_journal_journalctl-util.c.o cc -Ijournalctl.p -I. -I.. -Isrc/basic -I../src/basic -Isrc/fundamental -I../src/fundamental -Isrc/systemd -I../src/systemd -I../src/libsystemd/sd-bus -I../src/libsystemd/sd-device -I../src/libsystemd/sd-event -I../src/libsystemd/sd-hwdb -I../src/libsystemd/sd-id128 -I../src/libsystemd/sd-journal -I../src/libsystemd/sd-netlink -I../src/libsystemd/sd-network -I../src/libsystemd/sd-resolve -Isrc/shared -I../src/shared -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -Wextra -std=gnu11 -O0 -g -Wno-missing-field-initializers -Wno-unused-parameter -Wno-nonnull-compare -Warray-bounds -Warray-bounds=2 -Wdate-time -Wendif-labels -Werror=format=2 -Werror=format-signedness -Werror=implicit-function-declaration -Werror=implicit-int -Werror=incompatible-pointer-types -Werror=int-conversion -Werror=missing-declarations -Werror=missing-prototypes -Werror=overflow -Werror=override-init -Werror=return-type -Werror=shift-count-overflow -Werror=shift-overflow=2 -Werror=undef -Wfloat-equal -Wimplicit-fallthrough=5 -Winit-self -Wlogical-op -Wmissing-include-dirs -Wmissing-noreturn -Wnested-externs -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-aliasing=2 -Wstrict-prototypes -Wsuggest-attribute=noreturn -Wunused-function -Wwrite-strings -Wzero-length-bounds -fdiagnostics-show-option -fno-common -fstack-protector -fstack-protector-strong --param=ssp-buffer-size=4 -Wno-unused-result -Werror=shadow -fno-strict-aliasing -fvisibility=hidden -fno-omit-frame-pointer -include config.h -pthread -MD -MQ journalctl.p/src_journal_journalctl-util.c.o -MF journalctl.p/src_journal_journalctl-util.c.o.d -o journalctl.p/src_journal_journalctl-util.c.o -c ../src/journal/journalctl-util.c ../src/journal/journalctl-util.c: In function ‘acquire_journal’: ../src/journal/journalctl-util.c:36:60: error: ‘STDIN_FILENO’ undeclared (first use in this function) 36 | r = sd_journal_open_files_fd(&j, (int[]) { STDIN_FILENO }, 1, arg_journal_additional_open_flags); | ^~~~~~~~~~~~ ../src/journal/journalctl-util.c:36:60: note: each undeclared identifier is reported only once for each function it appears in ``` Fixes ade2db83fe7fa5011490f94fbeb5cf9263f26514
2024-03-27sd-ndisc-router: introduce sd_ndisc_router_set_sender_address()Yu Watanabe4-0/+19
Currently this is not used, but will be used later to modify the sender address.
2024-03-27ndisc-option: add HomeAgent option supportYu Watanabe2-11/+88
Currently, these are not used, but will be used later in sd-radv.
2024-03-27mkosi: Specify --without docs if needed for fedora/centosDaan De Meyer1-1/+2
2024-03-27Update pkg/fedora to latestDaan De Meyer1-0/+0
2024-03-27mkosi: Merge base and system imagesDaan De Meyer38-75/+50
The only reason to have these split up is to be able to build extension images that use the base image as a base tree and install extra packages. Until we have such a use case, let's merge the base and system images to simplify things a bit. We keep the mkosi.images/ directory to not cause too many conflicts with the integration tests PR.
2024-03-27mkosi: Re-enable OpenSUSE buildDaan De Meyer1-4/+2
2024-03-27mkosi: Update to latestDaan De Meyer1-1/+1
2024-03-27build(deps): bump pkg/debian from `1932e19` to `44fe1d4`dependabot[bot]1-0/+0
Bumps pkg/debian from `1932e19` to `44fe1d4`. --- updated-dependencies: - dependency-name: pkg/debian dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
2024-03-27core: add counter for soft-reboot iterationsLuca Boccassi6-3/+36
Allow to query via D-Bus how many times the current booted system has been soft rebooted
2024-03-27analyze: show only current times after soft-rebootLuca Boccassi2-1/+8
The firmware/loader/kernel times are no longer relevant for the startup sequence on soft-reboot, so use only the userspace timestamps
2024-03-27core: add SoftRebootStartTimestampLuca Boccassi5-13/+42
Will be useful to calculate how long it took to shut down the system before starting in the new root
2024-03-27core: do not serialize timestamps that are re-measured on soft-rebootLuca Boccassi1-4/+5
Otherwise the de-serialization overwrites the timestamps taken after soft-reboot (e.g.: userspace start/finish) and sd-analyze shows bogus data
2024-03-27resolved: always return the validated answers when validatingRonan Pigott1-2/+15
We normally expect sd-resolved only to return the validated subset of a validated response. In some cases we give up on validating, because we have enough information already to conclude the answer is bogus. Let's be sure to always reply with only the validated subset in these cases too, so that we don't return bogus answers and confuse primitive clients that won't see the SERVFAIL rcode.
2024-03-27resolved: minor dnssec fixupsRonan Pigott1-2/+9
Fixes: ce5b9d5b3c24 ("resolved: request DS with DNSKEY")
2024-03-27shared/logs-show: restore infinite loop avoidance for corrupted journalsZbigniew Jędrzejewski-Szmek1-1/+2
Fixes a bug introduced in e44f06065bf20e8d0e4adacff61350ebd36f299e: it was supposed to be a refactoring, but unfortunately FOREACH_ARRAY is implemented using a for loop, so when the 'goto finish' was replaced by 'break', it only broke the inner loop, leading to a infinite loop.
2024-03-26home: fix typoYu Watanabe1-1/+1
Follow-up for 5ec87d577f92effe27a62e965e02a6f9a40f81cc.