summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* logs-show: move journal_find_boot_by_offset() and friends from journalctl.cYu Watanabe2023-09-263-213/+217
|
* journalctl: several cleanups for find_boot_by_offset()/_by_id()Yu Watanabe2023-09-261-21/+26
| | | | | | - their names are prefixed with "journal_", - make them not directly use global variables, - simplifies the loop counter in find_boot_by_offset().
* sd-journal: refuse to write entry without boot IDYu Watanabe2023-09-261-1/+5
| | | | To make journal entries always contain valid boot ID.
* sd-journal: boot_id is always non-NULLYu Watanabe2023-09-261-4/+3
| | | | | The two callers of journal_file_append_entry_internal() always pass non-NULL boot ID.
* sd-journal: also verify tail_entry_boot_id and friends in ↵Yu Watanabe2023-09-262-10/+28
| | | | | | journal_file_verify_header() Then, we can drop the redundant check in journal_file_read_tail_timestamp().
* test: fix header verificationYu Watanabe2023-09-261-3/+6
|
* man: document SystemState's possible valuesLuca Boccassi2023-09-251-2/+46
|
* man: add version information for udev functionsAbderrahim Kitouni2023-09-2511-0/+111
|
* Merge pull request #29314 from YHNdnzj/firstboot-fixupLuca Boccassi2023-09-252-2/+2
|\ | | | | Small fixups for first boot
| * man/systemd-firstboot: /etc/ empty -> unpopulatedMike Yuan2023-09-251-1/+1
| | | | | | | | | | We use the phrase "unpopulated" in systemd.unit(5) too. And "/etc/ is empty" is simply spurious.
| * core/main: log that we assume first boot if failed to read machine-idMike Yuan2023-09-251-1/+1
| |
* | Merge pull request #29309 from poettering/resolved-varlink-tweaksLennart Poettering2023-09-253-5/+17
|\ \ | | | | | | resolved: minor varlink API tweaks
| * | resolved: rename varlink function to match exposed method nameLennart Poettering2023-09-251-2/+2
| | |
| * | resolved: also expose interface index in server JSON dataLennart Poettering2023-09-252-3/+15
| | |
* | | oomd: correct listening socketsLennart Poettering2023-09-253-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So, unfortunately oomd uses "io.system." rather than "io.systemd." as prefix for its sockets. This is a mistake, and doesn't match the Varlink interface naming or anything else in oomd. hence, let's fix that. Given that this is an internal protocol between PID1 and oomd let's simply change this without retaining compat.
* | | varlink: move O_NONBLOCK setting to varlink_server_listen_fd(), and set ↵Lennart Poettering2023-09-251-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | O_CLOEXEC too Let's move setting of O_NONBLOCK into varlink_server_listen_fd() and out of varlink_server_create_listen_fd_socket(). The latter has two callers: varlink_server_listen_fd() and varlink_server_listen_address(), which guarantees O_CLOEXEC+O_NONBLOCK anyway, hence no neet to repeat the logic.
* | | Merge pull request #29315 from poettering/strgrowpad0Lennart Poettering2023-09-252-1/+13
|\ \ \ | | | | | | | | string-util: make strgrowpad0() safer
| * | | repart: add extra safety check that the verity signature fits in the ↵Lennart Poettering2023-09-251-0/+3
| | | | | | | | | | | | | | | | partition we want to write
| * | | string-util: make strgrowpad0() a bit saferLennart Poettering2023-09-251-1/+10
| | |/ | |/| | | | | | | | | | Let#s make sure we never shorten the allocation leaving an invalid string (i.e. a memory allocation without a trailing NUL) around.
* | | Merge pull request #29308 from aafeijoo-suse/dissect-fixLuca Boccassi2023-09-252-13/+38
|\ \ \ | |/ / |/| | dissect: fix man and bash-completion
| * | bash-completion: add missing commands and options to systemd-dissectAntonio Alvarez Feijoo2023-09-251-12/+32
| | |
| * | man/systemd-dissect: various fixesAntonio Alvarez Feijoo2023-09-251-1/+6
| | | | | | | | | | | | | | | - Add synopsis to `--discover` and `--validate` options. - `-l` is for `--list`, not for `--mtree`.
* | | alloc-util: remove duplicate empty lineLennart Poettering2023-09-251-1/+0
| |/ |/|
* | Merge pull request #29301 from poettering/pcr-extend-renameLennart Poettering2023-09-2516-49/+102
|\ \ | | | | | | rename pcrphase binary to pcrextend
| * | man: briefly document that we are now keeping an event log in userspace for ↵Lennart Poettering2023-09-251-0/+24
| | | | | | | | | | | | out measurements
| * | pcrextend: make PCR index configurableLennart Poettering2023-09-252-10/+33
| | | | | | | | | | | | | | | Let's make the tool a tiny bit more generic by allowing the PCR index to measure into to be configurable.
| * | pcrphase: rename binary to pcrextendLennart Poettering2023-09-2516-39/+45
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tool initially just measured the boot phase, but was subsequently extended to measure file system and machine IDs, too. At AllSystemsGo there were request to add more, and make the tool generically accessible. Hence, let's rename the binary (but not the pcrphase services), to make clear the tool is not just measureing the boot phase, but a lot of other things too. The tool is located in /usr/lib/ and still relatively new, hence let's just rename the binary and be done with it, while keeping the unit names stable. While we are at it, also move the tool out of src/boot/ and into its own src/pcrextend/ dir, since it's not really doing boot related stuff anymore.
* | test: enable debug logs for the user instances as wellFrantisek Sumsal2023-09-251-0/+3
| | | | | | | | | | | | To make debugging [0], hopefully, easier. [0] https://github.com/systemd/systemd/issues/28504
* | Merge pull request #29303 from abderrahim/syntax-fixesLuca Boccassi2023-09-253-15/+9
|\ \ | |/ |/| man: a couple of small fixes
| * man: fix docbook syntax for function docsAbderrahim Kitouni2023-09-252-14/+9
| | | | | | | | This fixes sd_bus_error_add_map and man/sd_uid_get_state
| * man/kernel-command-line: don't refer early_core_pattern to systemdAbderrahim Kitouni2023-09-251-1/+0
|/ | | | It is defined later in the same file
* docs/FDS: add missing article and reword sentenceZbigniew Jędrzejewski-Szmek2023-09-251-5/+6
|
* update TODOLennart Poettering2023-09-251-1/+5
|
* mkosi: Run meson and ninja as the user invoking mkosiDaan De Meyer2023-09-251-2/+5
| | | | | | | | | Latest mkosi sets $MKOSI_UID and $MKOSI_GID to the uid/gid of the user running mkosi. Let's make use of this to run meson setup and ninja as the user running mkosi, so that if we execute git as a subprocess during meson setup, it doesn't complain about unsafe directories. This also makes sure all the build artifacts are owned on the host by the user running mkosi.
* po: Translated using Weblate (Korean)김인수2023-09-251-8/+8
| | | | | | | | Currently translated at 100.0% (227 of 227 strings) Co-authored-by: 김인수 <simmon@nplob.com> Translate-URL: https://translate.fedoraproject.org/projects/systemd/master/ko/ Translation: systemd/main
* sd-dhcp-client: reject NAKs from servers that we did not send an offer to ↵Alexandre Peixoto Ferreira2023-09-251-1/+6
| | | | | (#29290) To support multiple DHCP servers in a network.
* hwdb: ieee1394-unit-function: add Miglia Technology Harmony Audio (HA02)Takashi Sakamoto2023-09-241-0/+10
| | | | | | This commit adds hwdb entry for Miglia Technology Harmony Audio (HA02). The device is an application of OXford Semiconductor FW970 and will be supported by ALSA oxfw driver in future.
* test: wait for the swtpm socket to appearFrantisek Sumsal2023-09-231-1/+6
| | | | | | | | | | | | | | | | | On slower/overloaded systems it may take a bit for the swtpm socket to show up: I: Started swtpm as PID 189419 with state dir /tmp/tmp.pWqUutuGUj I: Configured emulated TPM2 device tpm-spapr + tee /var/tmp/systemd-test-TEST-70-TPM2_1/console.log + timeout --foreground 1200 /bin/qemu-system-ppc64le -smp 4 ... qemu-system-ppc64le: -chardev socket,id=chrtpm,path=/tmp/tmp.pWqUutuGUj/sock: Failed to connect to '/tmp/tmp.pWqUutuGUj/sock': No such file or directory E: qemu failed with exit code 1 Spotted regularly in the ppc64le cron job and in some Ubuntu CI/CentOS CI pr runs [0]. [0] https://github.com/systemd/systemd/pull/29183#issuecomment-1721727927
* test: don't panic on soft lockupsFrantisek Sumsal2023-09-231-1/+0
| | | | | | We can't do anything about them anyway, and most importantly this seems to alleviate systemd/systemd-centos-ci#660, which should make the CIs a bit less angry (at least until the issue is addressed properly).
* Merge pull request #29254 from yuwata/sd-ndisc-use-usec_tLuca Boccassi2023-09-226-159/+150
|\ | | | | sd-ndisc: make sd_ndisc return time values in usec
| * sd-ndisc: make sd_ndisc return time values in usecYu Watanabe2023-09-226-121/+111
| | | | | | | | | | This also introduces sd_ndisc_router_get_lifetime_timestamp() and friends that return timestamp rather than timespan.
| * sd-ndisc: rename function arguments for storing resultsYu Watanabe2023-09-212-43/+44
| |
* | Merge pull request #29258 from yuwata/sd-dhcp-client-split-outLuca Boccassi2023-09-224-122/+145
|\ \ | | | | | | sd-dhcp-client: preparation for later PR
| * | sd-dhcp-client: split out client_parse_message()Yu Watanabe2023-09-222-51/+70
| | | | | | | | | | | | | | | No functional change, just refactoring and preparation for later commits.
| * | sd-dhcp-client: introduce dhcp_lease_unref_and_replace()Yu Watanabe2023-09-222-14/+12
| | |
| * | sd-dhcp-client: do not set fallback subnet mask if it is already setYu Watanabe2023-09-222-14/+11
| | |
| * | sd-dhcp-client: split out client_enter_requesting()Yu Watanabe2023-09-221-8/+15
| | | | | | | | | | | | | | | No functional change, just refactoring and preparation for later commits.
| * | sd-dhcp-client: split out client_enter_bound()Yu Watanabe2023-09-221-39/+41
|/ / | | | | | | | | No functional change, just refactoring and preparation for later commits.
* | btrfs-util: fix one memory leakMike Yuan2023-09-221-0/+2
| | | | | | | | Follow-up for efb6a76a2a097132087ee30720421136cba9e708
* | Add recommended initramfs regenerationRoepLuke2023-09-223-0/+27
| | | | | | | | | | | | | | | | | | I recently tried adding a FIDO2-Device as an unlocking method to the LUKS2 partition containing my Fedora install. When trying to do this, I stumbled upon the here edited man files detailing how to do this. I however could not unlock my partition with my FIDO2-Device after editing /etc/crypttab and rebooting. As I found out after a while, I needed to regenerate / update my currently running / used initramfs (https://unix.stackexchange.com/a/705809). This would have most likely solved itself for me with the next kernel update install (as far as I understand). So I propose changing the files edited here to recommend or at least inform the user about this.