]> git.ipfire.org Git - thirdparty/systemd.git/log
thirdparty/systemd.git
2 years agodocs/SYSTEMD_FILE_HIERARCHY: format text
hulkoba [Mon, 26 Feb 2024 13:37:51 +0000 (14:37 +0100)] 
docs/SYSTEMD_FILE_HIERARCHY: format text

2 years agodocs/PORTABLE_SERVICES: format text
hulkoba [Mon, 26 Feb 2024 13:37:36 +0000 (14:37 +0100)] 
docs/PORTABLE_SERVICES: format text

2 years agodocs/USER_RECORD: format text
hulkoba [Mon, 26 Feb 2024 13:37:27 +0000 (14:37 +0100)] 
docs/USER_RECORD: format text

2 years agodocs/PORTABILITY_AND_STABILITY: format text
hulkoba [Mon, 26 Feb 2024 13:37:19 +0000 (14:37 +0100)] 
docs/PORTABILITY_AND_STABILITY: format text

2 years agodocs/DISTRO_PORTING: format text
hulkoba [Mon, 26 Feb 2024 13:37:06 +0000 (14:37 +0100)] 
docs/DISTRO_PORTING: format text

2 years agodocs/INHIBITOR_LOCKS: format text
hulkoba [Mon, 26 Feb 2024 13:36:56 +0000 (14:36 +0100)] 
docs/INHIBITOR_LOCKS: format text

2 years agodocs/USER_NAMES: format text
hulkoba [Mon, 26 Feb 2024 13:36:46 +0000 (14:36 +0100)] 
docs/USER_NAMES: format text

2 years agodocs/TIPS_AND_TRICKS: format text
hulkoba [Mon, 26 Feb 2024 13:36:37 +0000 (14:36 +0100)] 
docs/TIPS_AND_TRICKS: format text

2 years agodocs/INCOMPABILITIES: format text
hulkoba [Mon, 26 Feb 2024 13:36:28 +0000 (14:36 +0100)] 
docs/INCOMPABILITIES: format text

2 years agodocs/HOME_DIRECTORY: format text
hulkoba [Mon, 26 Feb 2024 13:36:16 +0000 (14:36 +0100)] 
docs/HOME_DIRECTORY: format text

2 years agodocs/JOURNAL_EXPORT_FORMATS: format text
hulkoba [Mon, 26 Feb 2024 13:36:05 +0000 (14:36 +0100)] 
docs/JOURNAL_EXPORT_FORMATS: format text

2 years agodocs/ELF_PKG_METADATA: format text
hulkoba [Mon, 26 Feb 2024 13:35:53 +0000 (14:35 +0100)] 
docs/ELF_PKG_METADATA: format text

2 years agodocs/UIDS-GIDS: format text
hulkoba [Mon, 26 Feb 2024 13:35:36 +0000 (14:35 +0100)] 
docs/UIDS-GIDS: format text

2 years agodocs/SYSLOG: format text
hulkoba [Mon, 26 Feb 2024 13:35:24 +0000 (14:35 +0100)] 
docs/SYSLOG: format text

2 years agodocs/SECURITY: format text
hulkoba [Mon, 26 Feb 2024 13:35:16 +0000 (14:35 +0100)] 
docs/SECURITY: format text

2 years agodocs/PRESET: format text
hulkoba [Mon, 26 Feb 2024 13:35:05 +0000 (14:35 +0100)] 
docs/PRESET: format text

2 years agodocs/PASSWORD_AGENTS: format text
hulkoba [Mon, 26 Feb 2024 13:34:56 +0000 (14:34 +0100)] 
docs/PASSWORD_AGENTS: format text

2 years agodocs/GROUP_RECORD: format text
hulkoba [Mon, 26 Feb 2024 13:34:45 +0000 (14:34 +0100)] 
docs/GROUP_RECORD: format text

2 years agodocs/OPTIMIZATIONS: format text
hulkoba [Mon, 26 Feb 2024 13:34:37 +0000 (14:34 +0100)] 
docs/OPTIMIZATIONS: format text

2 years agodocs/HACKING: format text
hulkoba [Mon, 26 Feb 2024 13:34:25 +0000 (14:34 +0100)] 
docs/HACKING: format text

2 years agodocs/MINIMAL_BUILDS: format text
hulkoba [Mon, 26 Feb 2024 13:34:14 +0000 (14:34 +0100)] 
docs/MINIMAL_BUILDS: format text

2 years agodocs/DESKTOP_ENVIRONMENTS: format text
hulkoba [Mon, 26 Feb 2024 13:33:54 +0000 (14:33 +0100)] 
docs/DESKTOP_ENVIRONMENTS: format text

2 years agodocs/DEBUGGING: format text
hulkoba [Mon, 26 Feb 2024 13:33:42 +0000 (14:33 +0100)] 
docs/DEBUGGING: format text

2 years agodocs/DAEMON_SOCKET_ACTIVATION: format text
hulkoba [Mon, 26 Feb 2024 13:02:26 +0000 (14:02 +0100)] 
docs/DAEMON_SOCKET_ACTIVATION: format text

2 years agodocs/CREDENTIALS: format text
hulkoba [Mon, 26 Feb 2024 13:01:10 +0000 (14:01 +0100)] 
docs/CREDENTIALS: format text

2 years agodocs/COREDUMP: format text
hulkoba [Mon, 26 Feb 2024 12:58:27 +0000 (13:58 +0100)] 
docs/COREDUMP: format text

2 years agodocs/CONVERTING_TO_HOMED: format text
hulkoba [Mon, 26 Feb 2024 12:57:40 +0000 (13:57 +0100)] 
docs/CONVERTING_TO_HOMED: format text

2 years agodocs/CONTRIBUTING: format text
hulkoba [Mon, 26 Feb 2024 12:54:40 +0000 (13:54 +0100)] 
docs/CONTRIBUTING: format text

2 years agodocs/CODE_OF_CONDUCT: format text
hulkoba [Mon, 26 Feb 2024 12:51:12 +0000 (13:51 +0100)] 
docs/CODE_OF_CONDUCT: format text

2 years agodocs/CATALOG: format text
hulkoba [Mon, 26 Feb 2024 12:49:53 +0000 (13:49 +0100)] 
docs/CATALOG: format text

2 years agodocs/BUILDING_IMAGES: format text
hulkoba [Mon, 26 Feb 2024 12:47:00 +0000 (13:47 +0100)] 
docs/BUILDING_IMAGES: format text

2 years agodocs/BOOT: format text
hulkoba [Mon, 26 Feb 2024 12:41:37 +0000 (13:41 +0100)] 
docs/BOOT: format text

2 years agodocs/BACKPORTS: format text
hulkoba [Mon, 26 Feb 2024 12:40:50 +0000 (13:40 +0100)] 
docs/BACKPORTS: format text

2 years agodocs/AUTOPKGTEST: format text
hulkoba [Mon, 26 Feb 2024 12:40:28 +0000 (13:40 +0100)] 
docs/AUTOPKGTEST: format text

2 years agodocs/ARCHITECTURE: format text
hulkoba [Mon, 26 Feb 2024 12:35:54 +0000 (13:35 +0100)] 
docs/ARCHITECTURE: format text

2 years agodocs/API_FILE_SYSTEM: format text
hulkoba [Mon, 26 Feb 2024 12:31:36 +0000 (13:31 +0100)] 
docs/API_FILE_SYSTEM: format text

2 years agodocs/FAQ: update logind man page link and fix relative link
hulkoba [Mon, 26 Feb 2024 11:02:35 +0000 (12:02 +0100)] 
docs/FAQ: update logind man page link and fix relative link

2 years agodocs/PORTABILITY_AND_STABILITY: update internal links
hulkoba [Mon, 26 Feb 2024 10:55:55 +0000 (11:55 +0100)] 
docs/PORTABILITY_AND_STABILITY: update internal links

2 years agodocs/JOURNAL_FILE_FORMAT: update journal links
hulkoba [Mon, 26 Feb 2024 10:13:18 +0000 (11:13 +0100)] 
docs/JOURNAL_FILE_FORMAT: update journal links

2 years agodocs/INITRD_INTERFACE: update link
hulkoba [Mon, 26 Feb 2024 09:56:20 +0000 (10:56 +0100)] 
docs/INITRD_INTERFACE: update link

separate usr is broken

2 years agodocs/CONTAINER_INTERACE: update vm-or-container-manager link
hulkoba [Mon, 26 Feb 2024 09:46:51 +0000 (10:46 +0100)] 
docs/CONTAINER_INTERACE: update vm-or-container-manager link

2 years agodocs/GROUP_DELEGATION: update links
hulkoba [Mon, 26 Feb 2024 09:43:34 +0000 (10:43 +0100)] 
docs/GROUP_DELEGATION: update links

to The New Control Group Interfaces and Writing VM and Container Managers

2 years agodocs/WRITING_RESOLVER_CLIENTS: update manpage link
hulkoba [Mon, 26 Feb 2024 08:40:12 +0000 (09:40 +0100)] 
docs/WRITING_RESOLVER_CLIENTS: update manpage link

2 years agodocs/WRITING_RESOLVER_CLIENTS: format text
hulkoba [Mon, 26 Feb 2024 08:38:14 +0000 (09:38 +0100)] 
docs/WRITING_RESOLVER_CLIENTS: format text

2 years agodocs: add pax control groups
Mariano Giménez [Thu, 22 Feb 2024 16:02:19 +0000 (17:02 +0100)] 
docs: add pax control groups

and adapt links

2 years agodocs/TIPS_AND_TRICKS: update faq link
Mariano Giménez [Wed, 7 Feb 2024 16:08:38 +0000 (17:08 +0100)] 
docs/TIPS_AND_TRICKS: update faq link

2 years agodocs/DEBUGGING: add screenshot and fix path to it
Mariano Giménez [Wed, 7 Feb 2024 14:29:00 +0000 (15:29 +0100)] 
docs/DEBUGGING: add screenshot and fix path to it

2 years agodocs/WRITING VM_AND_CONTAINER_MANAGERS: update manpage link
Mariano Giménez [Mon, 5 Feb 2024 10:36:25 +0000 (11:36 +0100)] 
docs/WRITING VM_AND_CONTAINER_MANAGERS: update manpage link

and container interface link

2 years agodocs/WRITING_NETWORK_CONFIGURATION_MANAGERS: update manpage links
Mariano Giménez [Mon, 5 Feb 2024 09:07:39 +0000 (10:07 +0100)] 
docs/WRITING_NETWORK_CONFIGURATION_MANAGERS: update manpage links

2 years agodocs/WRITING_DISPLAY_MANAGERS: update links
Mariano Giménez [Mon, 5 Feb 2024 09:02:03 +0000 (10:02 +0100)] 
docs/WRITING_DISPLAY_MANAGERS: update links

to desktop environments and logind manpage

2 years agodocs/WRITING_DESKTOP_ENV: update links
Mariano Giménez [Mon, 5 Feb 2024 00:25:29 +0000 (01:25 +0100)] 
docs/WRITING_DESKTOP_ENV: update links

to 'bus api of logind' and 'inhitor locks'

2 years agodocs/THE_CASE_FOR_THE_USR_MERGE): update link to 'seprate usr is broken'
Mariano Giménez [Mon, 5 Feb 2024 00:03:37 +0000 (01:03 +0100)] 
docs/THE_CASE_FOR_THE_USR_MERGE): update link to 'seprate usr is broken'

2 years agodocs/MINIMAL_BUILDS: remove last sentence due to missing link
Mariano Giménez [Fri, 2 Feb 2024 17:03:16 +0000 (18:03 +0100)] 
docs/MINIMAL_BUILDS: remove last sentence due to missing link

http://kdzbn.homelinux.net/libcap-add-pkg-config.patch
This link is a 404, so we removed the whole sentence.

2 years agodocs/INHIBITOR_LOCKS: update logind d-bus api link
Mariano Giménez [Fri, 2 Feb 2024 16:57:21 +0000 (17:57 +0100)] 
docs/INHIBITOR_LOCKS: update logind d-bus api link

and fix freedesktop wiki link

2 years agodocs/CONTROL_GROUP_INTERFACE: update links
Mariano Giménez [Fri, 2 Feb 2024 16:44:33 +0000 (17:44 +0100)] 
docs/CONTROL_GROUP_INTERFACE: update links

2 years agodocs/BOOT: update bootloader specification link
Mariano Giménez [Fri, 2 Feb 2024 16:13:12 +0000 (17:13 +0100)] 
docs/BOOT: update bootloader specification link

2 years agodocs/BACKPORTS: close parenthesis
Mariano Giménez [Fri, 2 Feb 2024 16:02:35 +0000 (17:02 +0100)] 
docs/BACKPORTS: close parenthesis

2 years agodocs/HACKING: fix jinja link
hulkoba [Fri, 2 Feb 2024 11:39:57 +0000 (12:39 +0100)] 
docs/HACKING: fix jinja link

2 years agodocs/HACKING: link mkosi webpage
hulkoba [Fri, 2 Feb 2024 11:30:59 +0000 (12:30 +0100)] 
docs/HACKING: link mkosi webpage

and remove one of two mkosi github links

2 years agodocs/CODING_STYLE: remove whitespace
hulkoba [Fri, 2 Feb 2024 11:07:29 +0000 (12:07 +0100)] 
docs/CODING_STYLE: remove whitespace

2 years agodocs/ARCHITECTURE: link test/readme.testsuite
hulkoba [Fri, 2 Feb 2024 09:57:04 +0000 (10:57 +0100)] 
docs/ARCHITECTURE: link test/readme.testsuite

2 years agocore: add counter for soft-reboot iterations 31980/head
Luca Boccassi [Wed, 27 Mar 2024 00:30:45 +0000 (00:30 +0000)] 
core: add counter for soft-reboot iterations

Allow to query via D-Bus how many times the current booted system has
been soft rebooted

2 years agoanalyze: show only current times after soft-reboot
Luca Boccassi [Tue, 26 Mar 2024 22:32:04 +0000 (22:32 +0000)] 
analyze: show only current times after soft-reboot

The firmware/loader/kernel times are no longer relevant for the startup
sequence on soft-reboot, so use only the userspace timestamps

2 years agocore: add SoftRebootStartTimestamp
Luca Boccassi [Tue, 26 Mar 2024 22:30:43 +0000 (22:30 +0000)] 
core: add SoftRebootStartTimestamp

Will be useful to calculate how long it took to shut down the system before starting
in the new root

2 years agocore: do not serialize timestamps that are re-measured on soft-reboot
Luca Boccassi [Tue, 26 Mar 2024 22:28:58 +0000 (22:28 +0000)] 
core: do not serialize timestamps that are re-measured on soft-reboot

Otherwise the de-serialization overwrites the timestamps taken after
soft-reboot (e.g.: userspace start/finish) and sd-analyze shows bogus
data

2 years agoMerge pull request #31789 from jsitnicki/socket-pass-fds-to-exec
Yu Watanabe [Wed, 27 Mar 2024 01:18:13 +0000 (10:18 +0900)] 
Merge pull request #31789 from jsitnicki/socket-pass-fds-to-exec

Pass socket FDs to all ExecXYZ= commands in socket unit but ExecStartPre=

2 years agoresolved: always return the validated answers when validating
Ronan Pigott [Tue, 26 Mar 2024 07:33:19 +0000 (00:33 -0700)] 
resolved: always return the validated answers when validating

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.

2 years agoresolved: minor dnssec fixups
Ronan Pigott [Tue, 26 Mar 2024 18:00:44 +0000 (11:00 -0700)] 
resolved: minor dnssec fixups

Fixes: ce5b9d5b3c24 ("resolved: request DS with DNSKEY")
2 years agoshared/logs-show: restore infinite loop avoidance for corrupted journals
Zbigniew Jędrzejewski-Szmek [Tue, 26 Mar 2024 17:46:23 +0000 (18:46 +0100)] 
shared/logs-show: restore infinite loop avoidance for corrupted journals

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.

2 years agohome: fix typo
Yu Watanabe [Tue, 26 Mar 2024 19:07:49 +0000 (04:07 +0900)] 
home: fix typo

Follow-up for 5ec87d577f92effe27a62e965e02a6f9a40f81cc.

2 years agotest: integration test for PassFileDescriptorsToExec= option 31789/head
Jakub Sitnicki [Thu, 14 Mar 2024 10:20:50 +0000 (11:20 +0100)] 
test: integration test for PassFileDescriptorsToExec= option

Check if socket file descriptors are passed to ExecXYZ= commands from the
socket unit depending on whether PassFileDescriptorsToExec= option is set.

2 years agosocket: pass socket FDs to all ExecXYZ= commands but ExecStartPre=
Jakub Sitnicki [Thu, 15 Feb 2024 17:02:50 +0000 (18:02 +0100)] 
socket: pass socket FDs to all ExecXYZ= commands but ExecStartPre=

Today listen file descriptors created by socket unit don't get passed to
commands in Exec{Start,Stop}{Pre,Post}= socket options.

This prevents ExecXYZ= commands from accessing the created socket FDs to do
any kind of system setup which involves the socket but is not covered by
existing socket unit options.

One concrete example is to insert a socket FD into a BPF map capable of
holding socket references, such as BPF sockmap/sockhash [1] or
reuseport_sockarray [2]. Or, similarly, send the file descriptor with
SCM_RIGHTS to another process, which has access to a BPF map for storing
sockets.

To unblock this use case, pass ListenXYZ= file descriptors to ExecXYZ=
commands as listen FDs [4]. As an exception, ExecStartPre= command does not
inherit any file descriptors because it gets invoked before the listen FDs
are created.

This new behavior can potentially break existing configurations. Commands
invoked from ExecXYZ= might not expect to inherit file descriptors through
sd_listen_fds protocol.

To prevent breakage, add a new socket unit parameter,
PassFileDescriptorsToExec=, to control whether ExecXYZ= programs inherit
listen FDs.

[1] https://docs.kernel.org/bpf/map_sockmap.html
[2] https://lore.kernel.org/r/20180808075917.3009181-1-kafai@fb.com
[3] https://man.archlinux.org/man/socket.7#SO_INCOMING_CPU
[4] https://www.freedesktop.org/software/systemd/man/latest/sd_listen_fds.html

2 years agoMerge pull request #31951 from bluca/resolve_reload
Yu Watanabe [Tue, 26 Mar 2024 17:37:52 +0000 (02:37 +0900)] 
Merge pull request #31951 from bluca/resolve_reload

resolved: support reloading configuration at runtime

2 years agoMerge pull request #31959 from YHNdnzj/execute-pass-fds
Yu Watanabe [Tue, 26 Mar 2024 17:37:23 +0000 (02:37 +0900)] 
Merge pull request #31959 from YHNdnzj/execute-pass-fds

core/execute: check if EXEC_PASS_FDS is set if got exec_params.fds

2 years agoMerge pull request #31960 from YHNdnzj/capsule-followup
Yu Watanabe [Tue, 26 Mar 2024 17:34:43 +0000 (02:34 +0900)] 
Merge pull request #31960 from YHNdnzj/capsule-followup

Some follow-ups for capsule

2 years agodissect: fix memory leak
Antonio Alvarez Feijoo [Tue, 26 Mar 2024 13:53:44 +0000 (14:53 +0100)] 
dissect: fix memory leak

2 years agoefi: skip check-alignment-* tests if pefile is not installed
Antonio Alvarez Feijoo [Tue, 26 Mar 2024 15:08:57 +0000 (16:08 +0100)] 
efi: skip check-alignment-* tests if pefile is not installed

Otherwise, when building with ukify disabled, no one else requires pefile, and
if it is not installed, those tests fail:

```
================================== 12/1212 ===================================
test:         systemd:efi / check-alignment-systemd-bootx64.efi
start time:   14:21:54
duration:     0.08s
result:       exit status 1
command:      /mnt/work/systemd/upstream-fork/main/tools/check-efi-alignment.py /mnt/work/systemd/upstream-fork/main/build/src/boot/efi/systemd-bootx64.efi
----------------------------------- stderr -----------------------------------
Traceback (most recent call last):
  File "/mnt/work/systemd/upstream-fork/main/tools/check-efi-alignment.py", line 7, in <module>
    import pefile
ModuleNotFoundError: No module named 'pefile'
==============================================================================

================================== 13/1212 ===================================
test:         systemd:efi / check-alignment-linuxx64.efi.stub
start time:   14:21:54
duration:     0.08s
result:       exit status 1
command:      /mnt/work/systemd/upstream-fork/main/tools/check-efi-alignment.py /mnt/work/systemd/upstream-fork/main/build/src/boot/efi/linuxx64.efi.stub
----------------------------------- stderr -----------------------------------
Traceback (most recent call last):
  File "/mnt/work/systemd/upstream-fork/main/tools/check-efi-alignment.py", line 7, in <module>
    import pefile
ModuleNotFoundError: No module named 'pefile'
==============================================================================

================================== 14/1212 ===================================
test:         systemd:efi / check-alignment-addonx64.efi.stub
start time:   14:21:54
duration:     0.07s
result:       exit status 1
command:      /mnt/work/systemd/upstream-fork/main/tools/check-efi-alignment.py /mnt/work/systemd/upstream-fork/main/build/src/boot/efi/addonx64.efi.stub
----------------------------------- stderr -----------------------------------
Traceback (most recent call last):
  File "/mnt/work/systemd/upstream-fork/main/tools/check-efi-alignment.py", line 7, in <module>
    import pefile
ModuleNotFoundError: No module named 'pefile'
==============================================================================
```

Follow-up for 7ff3b88396f440bff60328b4bff7627a34d45e4a

2 years agohwdb: fix Asus T300FA rotation matrix (#31973)
Luxiter [Tue, 26 Mar 2024 17:32:03 +0000 (18:32 +0100)] 
hwdb: fix Asus T300FA rotation matrix (#31973)

Closes #31972.

2 years agologs-show: read the current boot ID if nothing specified for add_match_boot_id() 31965/head
Yu Watanabe [Fri, 22 Mar 2024 08:40:37 +0000 (17:40 +0900)] 
logs-show: read the current boot ID if nothing specified for add_match_boot_id()

No functional change, just refactoring.

2 years agosd-id128: move get_boot_id_for_machine() to id128-util.c
Yu Watanabe [Fri, 22 Mar 2024 08:21:01 +0000 (17:21 +0900)] 
sd-id128: move get_boot_id_for_machine() to id128-util.c

And rename it to id128_get_boot_for_machine().

This also splits out id128_get_boot() from sd_id128_get_boot(), and
make id128_get_boot_for_machine() use it.

2 years agojournalctl-filter: several cleanups for add_matches() 31964/head
Yu Watanabe [Thu, 21 Mar 2024 19:19:42 +0000 (04:19 +0900)] 
journalctl-filter: several cleanups for add_matches()

- split it into small pieces to reduce indentation,
- return earlier if no filter specified,
- use journal_add_matchf() and journal_add_match_pair(),
  chase_and_stat(), is_symlink(), and sd_device_new_from_devname(),
- replace sd_device_get_devname() + stat() with sd_device_get_devnum(),
- refuse to install filter by path with --root, --image, or --machine
  at least now, as previously it has not worked anyway.

2 years agojournalctl-filter: add missing sd_journal_add_conjunction()
Yu Watanabe [Thu, 21 Mar 2024 18:09:35 +0000 (03:09 +0900)] 
journalctl-filter: add missing sd_journal_add_conjunction()

Otherwise, if --facility= is specified with extra matches with '+',
the facility filter will not be applied to the specified filter after '+'.

2 years agojournalctl-filter: several trivial cleanups
Yu Watanabe [Thu, 21 Mar 2024 18:08:54 +0000 (03:08 +0900)] 
journalctl-filter: several trivial cleanups

- declare iterator in loop,
- use journal_add_match_pair() and journal_add_matchf(),
- log failures in the caller.

2 years agojournalctl-filter: modernize add_units()
Yu Watanabe [Thu, 21 Mar 2024 17:47:21 +0000 (02:47 +0900)] 
journalctl-filter: modernize add_units()

- add missing assertions,
- use set_ensure_consume() and strv_consume(),
- use string_hash_ops_free and _cleanup_set_free_,
- use strv_fnmatch_full(),
- replace unused counter with a boolean flag,
- return earlier if no unit filtering is requested.

2 years agoMerge pull request #31879 from yuwata/journalctl-split
Yu Watanabe [Tue, 26 Mar 2024 14:45:20 +0000 (23:45 +0900)] 
Merge pull request #31879 from yuwata/journalctl-split

journalctl: split journalctl.c into small pieces

2 years agondisc-option: sort options in sent message
Yu Watanabe [Sun, 17 Mar 2024 06:33:32 +0000 (15:33 +0900)] 
ndisc-option: sort options in sent message

To make the sent message reproducible.

2 years agoMerge pull request #31943 from yuwata/sd-ndisc-option-getter-remover
Luca Boccassi [Tue, 26 Mar 2024 13:55:46 +0000 (13:55 +0000)] 
Merge pull request #31943 from yuwata/sd-ndisc-option-getter-remover

sd-ndisc: introduce option getter and remover

2 years agosd-ndisc-protocol: list up all known options
Yu Watanabe [Sat, 16 Mar 2024 06:25:47 +0000 (15:25 +0900)] 
sd-ndisc-protocol: list up all known options

See below for more details:
https://www.iana.org/assignments/icmpv6-parameters/icmpv6-parameters.xhtml#icmpv6-parameters-5

2 years agobus-util: dedup bus_set_address_capsule 31960/head
Mike Yuan [Tue, 26 Mar 2024 12:59:32 +0000 (20:59 +0800)] 
bus-util: dedup bus_set_address_capsule

Follow-up for ad963c3f5680796ccd094b81f35ff7aa20b57247

2 years agoresolved: support reloading configuration at runtime 31951/head
Luca Boccassi [Fri, 8 Mar 2024 23:02:19 +0000 (23:02 +0000)] 
resolved: support reloading configuration at runtime

Drop connections and caches and reload config from files, to allow
for low-interruptions updates, and hook up to the usual SIGHUP and
ExecReload=. Mark servers and services configured directly via D-Bus
so that they can be kept around, and only the configuration file
settings are dropped and reloaded.

Fixes https://github.com/systemd/systemd/issues/17503
Fixes https://github.com/systemd/systemd/issues/20604

2 years agojournalctl-show: split out seek_journal() 31879/head
Yu Watanabe [Thu, 21 Mar 2024 10:18:02 +0000 (19:18 +0900)] 
journalctl-show: split out seek_journal()

No functional change, just refactoring.

2 years agojournalctl: split journalctl.c into small pieces
Yu Watanabe [Wed, 20 Mar 2024 18:50:09 +0000 (03:50 +0900)] 
journalctl: split journalctl.c into small pieces

And introduces per-action functions.
No functional change, just refactoring.

2 years agojournalctl: use correct type for flags
Yu Watanabe [Tue, 19 Mar 2024 10:04:10 +0000 (19:04 +0900)] 
journalctl: use correct type for flags

This also moves its declaration, as it is not changed in the loop.

2 years agojournalctl: merge three if blocks for seeking to the initial position
Yu Watanabe [Tue, 19 Mar 2024 09:54:24 +0000 (18:54 +0900)] 
journalctl: merge three if blocks for seeking to the initial position

No functional change, just refactoring.

2 years agosystemctl,busctl: sort includes
Mike Yuan [Tue, 26 Mar 2024 12:48:46 +0000 (20:48 +0800)] 
systemctl,busctl: sort includes

Follow-up for 56cb74c3cd1358d7d0b3f613feaf2eeab601a6bd
and 00431b2b66cb59540deda4ea018170a289673585

2 years agounits: sort lists in meson.build
Mike Yuan [Tue, 26 Mar 2024 12:36:28 +0000 (20:36 +0800)] 
units: sort lists in meson.build

2 years agotest: use /run/ instead of /etc/ in TEST-75-RESOLVE
Luca Boccassi [Sat, 23 Mar 2024 01:32:44 +0000 (01:32 +0000)] 
test: use /run/ instead of /etc/ in TEST-75-RESOLVE

2 years agodaemon-util: introduce notify_reloading helper
Mike Yuan [Tue, 26 Mar 2024 09:40:01 +0000 (17:40 +0800)] 
daemon-util: introduce notify_reloading helper

Prompted by #31951

2 years agoMerge pull request #29721 from poettering/systemd-project
Zbigniew Jędrzejewski-Szmek [Tue, 26 Mar 2024 12:19:33 +0000 (13:19 +0100)] 
Merge pull request #29721 from poettering/systemd-project

New capsule@.service feature

2 years agocore/execute: check if EXEC_PASS_FDS is set if got exec_params.fds 31959/head
Mike Yuan [Tue, 26 Mar 2024 10:57:08 +0000 (18:57 +0800)] 
core/execute: check if EXEC_PASS_FDS is set if got exec_params.fds

Prompted by #31789 (specifically
https://github.com/systemd/systemd/pull/31789#discussion_r1525267612)