summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* hwdb: Add touchpad toggle mapping for System76 Pangolin 1213r0ck2023-01-211-1/+5
|
* logs-show: move strlen() handling into update_json_data() so that we can use ↵Lennart Poettering2023-01-211-6/+11
| | | | SD_ID128_TO_STRING()
* Merge pull request #26131 from poettering/bootctl-help-text-fixLennart Poettering2023-01-202-38/+51
|\ | | | | bootctl --help fixes
| * bootctl: remove space that should not be thereLennart Poettering2023-01-201-1/+1
| |
| * bootctl: split out boot loader spec + boot loader interface commands in ↵Lennart Poettering2023-01-202-20/+33
| | | | | | | | | | | | | | | | | | | | | | --help text grub (at least on fedora) nowadays implements the boot loader spec, but not the boot loader interface. Hence let's split out the commands specific to each in two groups in the --help text. This way the first group just covers boot lodaer spec stuff (i.e. stuff on disk in the ESP/XBOOTLDR partition). And the other covers talking to the boot loader via EFI var.
| * bootctl: realign column in --help textLennart Poettering2023-01-201-17/+17
| | | | | | | | | | for some reason the descriptions of the switches and the commands weren't aligned, one space off. Fix that.
| * bootctl: change section title for kernel image commandsLennart Poettering2023-01-202-3/+3
| | | | | | | | Let's call them kernel *images*, not just *kernels*.
| * bootctl: drop full stop at end of --help textsLennart Poettering2023-01-201-2/+2
| | | | | | | | We never do that, don't do so here either.
* | journal: use compound initializors at one more placeLennart Poettering2023-01-201-6/+8
| |
* | journal: modernize match_make_string()Lennart Poettering2023-01-201-17/+8
| |
* | journalctl: don't convert between strv/Set for each log lineLennart Poettering2023-01-203-17/+9
| | | | | | | | | | | | | | | | If output fields are specified, let's store this in a Set right-away, instead of converting between strv and Set again and again for each line. This is not only faster, but also simpler and shorter.
* | logs-show: use json_variant_unref_many() where appropriateLennart Poettering2023-01-201-5/+1
| |
* | Merge pull request #26126 from poettering/format-table-dateLennart Poettering2023-01-206-47/+77
|\ \ | |/ |/| hostnamectl: show firmware date as date only, with now time
| * hostnamectl: show firmware date with date only, without timeLennart Poettering2023-01-201-1/+1
| | | | | | | | | | The source (usually DMI/SMBIOS) only has 24h granularity, hence don't show time as well, it's useless.
| * format-table: add cell type for showing date only timestampsLennart Poettering2023-01-202-1/+9
| |
| * time-util: add timestamp output style that shows dates only, no timesLennart Poettering2023-01-203-17/+47
| |
| * time-util: condition size check based on utc modeLennart Poettering2023-01-201-1/+1
| |
| * time-util: simplify formatting of UNIX timestampsLennart Poettering2023-01-201-5/+3
| |
| * time-util: move buffer size check after handling of UNIX timestamp styleLennart Poettering2023-01-201-10/+11
| |
| * time-util: if a date is unrepresentable, honour style to generate XXX stringLennart Poettering2023-01-202-5/+11
| |
| * time-util: use IN_SET() moreLennart Poettering2023-01-201-18/+5
|/
* boot: Properly strip EFI binariesJan Janssen2023-01-201-0/+1
| | | | | | | Removing debugging related sections is apparently not enough to truely strip a (PE) binary. Better late than never. It gets rid of this pesky warning from sbsign: warning: data remaining[174080 vs 193173]: gaps between PE/COFF sections?
* Merge pull request #26114 from bluca/sd_login_pidfdLennart Poettering2023-01-209-12/+357
|\ | | | | sd-login: add sd_pidfd_* APIs
| * sd-login: add sd_pidfd_* APIsLuca Boccassi2023-01-206-1/+332
| | | | | | | | | | | | Same as the sd_pid_* counterparts, but take a pid file descriptor instead of a pid, so that the callers can be sure that the returned values are really about the process they asked for, and not about a recycled PID.
| * process-util: add helper to verify a pid via its pidfdLuca Boccassi2023-01-203-11/+25
| |
* | string-util: add new strdupcspn()/strdupspn()Lennart Poettering2023-01-208-13/+27
| | | | | | | | | | | | | | | | These combine strndup() + strspn()/strcspn() into one. There are a bunch of strndupa() calls that could use similar treatment (or should be converted to strdup[c]spn(), but this commit doesn't bother with that.
* | Merge pull request #23309 from DaanDeMeyer/log-contextLuca Boccassi2023-01-2022-96/+528
|\ \ | | | | | | basic: Add log context
| * | device-monitor: Add extra fields to the log context before callbackDaan De Meyer2023-01-083-0/+82
| | |
| * | sd-bus: Log extra fields when processing bus messageDaan De Meyer2023-01-083-0/+29
| | |
| * | basic: Add log contextDaan De Meyer2023-01-085-18/+308
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds support for attaching extra metadata to log messages written to the journal via log.h. We keep track of a thread local log context in log.c onto which we can push extra metadata fields that should be logged. Once a field is no longer relevant, it can be popped again from the log context. On top of this, we then add macros to allow pushing extra fields onto the log context. LOG_CONTEXT_PUSH() will push the provided field onto the log context and pop the last field from the log context when the current block ends. LOG_CONTEXT_PUSH_STRV() will do the same but for all fields in the given strv. Using the macros is as simple as putting them anywhere inside a block to add a field to all following log messages logged from inside that block. void myfunction(...) { ... LOG_CONTEXT_PUSH("MYMETADATA=abc"); // Every journal message logged will now have the MYMETADATA=abc // field included. } For convenience, there's also LOG_CONTEXT_PUSHF() to allow constructing the field to be logged using printf() syntax. log_context_new()/log_context_free() can be used to attach a log context to an async operation by storing it in the associated userdata struct.
| * | basic: Add strv_extend_assignment()Daan De Meyer2023-01-083-0/+30
| | |
| * | basic: Use statement expressions more in list.hDaan De Meyer2023-01-088-69/+65
| | | | | | | | | | | | | | | Let's use statement expressions to return values instead of passing in return arguments to the LIST macros.
| * | basic: Drop memory-util.h include from stdio-util.hDaan De Meyer2023-01-081-2/+1
| | | | | | | | | | | | | | | | | | We want to include stdio-util.h in log.h in a future commit. To avoid circular includes, we need to drop the memory-util.h include from stdio-util.h
| * | basic: Make snprintf_ok() a static inline functionDaan De Meyer2023-01-081-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | This allows passing pre-allocated buffers via compound initializers to snprint_ok(). If snprintf_ok() is a macro, the compound initializer block will be scoped to the macro block, if snprint_ok() is a function, the compound initializer block will be scoped to the block from which snprintf_ok() is called.
* | | bootctl: add kernel-inspect to --help textGerd Hoffmann2023-01-201-0/+1
| | |
* | | hwdb: Add Chuwi Hi10X (N4120 version) iio matrixWaltibaba2023-01-201-0/+4
| | | | | | | | | | | | | | | There is a later model version of the Chuwi Hi10X that has significantly changed components compared to the existing hwdb one. Differentiator (on Chuwi forums, in thesofproject, etc.) is the N4120 rather than the N4100 processor. The svn and pn seem to be identical, my Chuwi Hi10X matches with the old model except for the changed KIOX000A* iio sensor. With the added ACCEL_MOUNT_MATRIX, my device works on gnome and has the correct (right-up) output in monitor-sensors.
* | | ukify: Downgrade required python version to 3.9Daan De Meyer2023-01-202-27/+24
| | |
* | | Merge pull request #26115 from yuwata/test-fix-memleak-fdleakLuca Boccassi2023-01-203-28/+17
|\ \ \ | | | | | | | | test: fix memleak and fd leak
| * | | test-unit-name: fix fd leakYu Watanabe2023-01-201-1/+3
| | | | | | | | | | | | | | | | Fixes an issue reported at https://github.com/systemd/systemd/issues/22576#issuecomment-1396774385.
| * | | test-ndisc: fix memleak and fd leakYu Watanabe2023-01-202-27/+14
| | |/ | |/| | | | | | | Fixes issues reported at #22576.
* | | tree-wide: fix typoYu Watanabe2023-01-2013-15/+15
|/ /
* | Merge pull request #26105 from ↵Luca Boccassi2023-01-198-63/+38
|\ \ | | | | | | | | | | | | yuwata/network-config-parse-address-make-prefix-length-full network: make config_parse_address() assume full prefix length
| * | NEWS: mention that Address= assumes /32 or /128 prefix length if not specifiedYu Watanabe2023-01-191-0/+4
| | |
| * | in-addr-util: drop unused mode to parse prefix lengthYu Watanabe2023-01-193-46/+26
| | |
| * | network: assume prefix length is full address sizeYu Watanabe2023-01-193-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The commit 0f707207b9fc04d45ad176930cfefc77c0068545 enables strong warning about missing prefix length in Address= setting. The change was done in v241, and was about 4 years ago. Let's drop the legacy assumption and make the parser consistent with 'ip address' command. C.f. #11307. Closes #26102.
| * | test-network: drop unused fileYu Watanabe2023-01-191-8/+0
| | |
* | | core: mount namespaces: Remove auxiliary bind mounts directory after unit ↵Michal Koutný2023-01-193-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | termination Unit that requires its own mount namespace creates a temporary directory to implement dynamic bind mounts (org.freedesktop.systemd1.Manager.BindMountUnit). However, this directory is never removed and they will accumulate for each unique unit (e.g. templated units of systemd-coredump@). Attach the auxiliary runtime directory existence to lifetime of other "runtime" only per-unit directories.
* | | Merge pull request #25977 from YHNdnzj/PropagatesStopTo-fix-restartLennart Poettering2023-01-191-27/+33
|\ \ \ | | | | | | | | core: propagate stop too if restart is issued
| * | | core: propagate stop too if restart is issuedMike Yuan2023-01-191-15/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The restart of a unit should also be considered as that a stop job happens, and thus gets propagated to units specified using PropagatesStopTo=. Fixes #24068
| * | | core/transaction: modernize to use cleanup attributeMike Yuan2023-01-111-5/+2
| | | |