summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* units: add IgnoreOnIsolate=yes to systemd-journald tooZbigniew Jędrzejewski-Szmek2022-07-013-6/+11
| | | | | | | | | We already had it on the socket units, so it's possible that systemd-journald.service would be stopped and then restarted when trafic hits the sockets when something logs. Let's not try to stop it. It is supposed to run until the end and be eventually killed in the final killing spree. This might (or not) help with #23287.
* Merge pull request #23868 from keszybz/lib-resplit-2Yu Watanabe2022-07-0158-560/+860
|\ | | | | Export sd-netlink and clean up exported interfaces a bit
| * docs/ARCHITECTURE: mention src/fundamental/ and add more detailsZbigniew Jędrzejewski-Szmek2022-06-301-16/+46
| |
| * basic/socket-util: rename fd_inc_rcvbuf → fd_increase_rxbufZbigniew Jędrzejewski-Szmek2022-06-305-8/+8
| | | | | | | | See previous commit for justification.
| * sd-netlink: rename sd_netlink_inc_rcvbuf → sd_netlink_increase_rxbufZbigniew Jędrzejewski-Szmek2022-06-305-6/+6
| | | | | | | | | | | | We have RxBufferSize= and TxBufferSize= in .link files. Let's use the same abbreviation here. OTOH, "inc" could be short for "increment" or "increase", let's avoid that.
| * sd-bus: indentationZbigniew Jędrzejewski-Szmek2022-06-301-8/+8
| |
| * sd-bus: use assert_return() in public function sd_bus_message_dumpZbigniew Jędrzejewski-Szmek2022-06-303-5/+8
| | | | | | | | Also, document that NULL is allowed.
| * sd-event: let sd_event_source_set_enabled accept NULLZbigniew Jędrzejewski-Szmek2022-06-304-19/+18
| | | | | | | | | | | | Same story as before: disabling a non-existent event source shouldn't need to be guarded by an if. I retained the wrapper so that that we don't have to say SD_EVENT_OFF in the many places where this is called.
| * sd-event: allow sd_event_source_is_enabled() to return false for NULLZbigniew Jędrzejewski-Szmek2022-06-306-22/+17
| | | | | | | | | | | | | | | | | | | | | | This is a natural use case, and instead of defining a wrapper to do this for us, let's just make this part of the API. Calling with NULL was not allowed, so this is not a breaking change to the interface. (After sd_event_source_is_enabled was originally added, we introduced sd_event_source_disable_unref() and other similar functions which accept NULL. So not accepting NULL here is likely to confuse people. Let's just make the API usable with minimal fuss.)
| * sd-netlink: allow sd_netlink_message_read() to be used for union typesZbigniew Jędrzejewski-Szmek2022-06-301-3/+3
| | | | | | | | | | | | | | | | | | | | | | Before, sd_netlink_message_read() expected to fill a buffer completely, and would return -EIO if the attribute being read was shorter than the buffer. This means that the function can be used to "peek" into attributes (by specifying a short buffer to just read part of the attribute), but cannot be used to read something into a union without knowing beforehand which specific field in the union is being filled. That latter operation seems more useful (messages are short, so we don't really need to do partial reads), so let's allow reads that don't fill the output buffer completely.
| * man: document sd_bus_message_read_strv_extend()Zbigniew Jędrzejewski-Szmek2022-06-302-5/+19
| |
| * sd-bus: export sd_bus_message_read_strv_extend()Zbigniew Jędrzejewski-Szmek2022-06-305-5/+6
| | | | | | | | | | The same story as before: it's a useful helper, other uses of the library are likely to find it useful.
| * man: document sd_id128_string_equal()Zbigniew Jędrzejewski-Szmek2022-06-302-0/+12
| |
| * man: rework the text in sd-id128Zbigniew Jędrzejewski-Szmek2022-06-301-45/+108
| | | | | | | | | | | | | | | | | | | | | | | | | | In places the text was overly formal, e.g. "an 128-bit ID" was repeated, even though it is clear from the context that we're talking about this type of ID. OTOH, in other places the text was informal, e.g. "You can use …". Also, "you may use f() to frob" → "f() frobs". The text without all the flourishes is easier to read. sd_id128_in_set_sentinel() was described only in passing when taking about sd_id128_in_set(), now it gets is own brief paragraph. The synopsis was missing.
| * sd-id128: rename and export sd_id128_string_equal()Zbigniew Jędrzejewski-Szmek2022-06-308-26/+30
| | | | | | | | | | | | | | | | We find this function useful in our code, so no reason not to export it. I changed the order of last two words in the name to match the arguments. (With "equal_string" I expected sd_id128_t first, string second, but in actual use, the second argument is usually a long constant so it's nice to keep this order of arguments.)
| * man: document sd_bus_error_setfv()Zbigniew Jędrzejewski-Szmek2022-06-302-17/+29
| | | | | | | | | | The description for sd_bus_error_set_errnof/sd_bus_error_set_errnofv are adjusted to use the same pattern.
| * meson: update man-generation rules for sd_hwdb_new_from_pathZbigniew Jędrzejewski-Szmek2022-06-301-1/+4
| | | | | | | | Forgotten in 60f0ba75569312825ff14680d05a4b4f95842951.
| * sd-bus: export sd_bus_error_setfv()Zbigniew Jędrzejewski-Szmek2022-06-306-6/+8
| | | | | | | | | | | | The usual: if we find that function useful, other users of the library will too. In particular, the v-variants are necessary to build pass-thru wrappers.
| * sd-bus: drop unused prototypeZbigniew Jędrzejewski-Szmek2022-06-301-1/+0
| | | | | | | | | | Function was exported in 07a0d22f9ec5a0cac2385b73dc08b12a811cead8, but apparently we forgot to remove the old declaration.
| * libsystemd: drop unexported sd-utf8Zbigniew Jędrzejewski-Szmek2022-06-303-20/+0
| | | | | | | | | | | | | | | | | | | | | | It had two symbols which were not actually exported because they were not listed in libsystemd.sym. They were also entirely unused in our codebase. I don't think it makes much sense to export just those two functions, and it doesn't make to build a string processing library in systemd either. History of the file shows that it was created in faaa5728d956b7f0d24f27f3341d0b9fff30af00 'utf8: export utf8 validation functions as part of sd-bus' and hasn't gone even one non-trivial change since then ;)
| * libsystemd: export sd-netlinkZbigniew Jędrzejewski-Szmek2022-06-3012-297/+485
| | | | | | | | | | | | | | | | | | | | | | It was added originally in 65f568bbeb9b8c70200e44c19a797df3a0bfd485. The API is has stabilized pretty much, and generally follows the usual style for libsystemd. We've held it as a public-but-private library for almost 10 years, let's export it. sd_netlink_sendv() and sd_nfnl_nft_*() are excluded. libsystemd.so seems to grow by 12k.
| * test-lib*-sym: print symbols names in addition to addressesZbigniew Jędrzejewski-Szmek2022-06-301-8/+13
| | | | | | | | | | | | | | This makes it easier to see what the test is doing. I converted the code to use f-strings. They are already used in other scripts necessary for build, so IIUC this is OK.
| * sd-daemon: remove sd_ prefix from static functionZbigniew Jędrzejewski-Szmek2022-06-301-5/+5
| |
| * sd-netlink: remove sd_ prefix from static functionZbigniew Jędrzejewski-Szmek2022-06-301-3/+3
| |
| * Turn mempool_enabled() into a weak symbolZbigniew Jędrzejewski-Szmek2022-06-298-36/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before we had the following scheme: mempool_enabled() would check mempool_use_allowed, and libsystemd-shared would be linked with a .c file that provides mempool_use_allowed=true, while other things would linked with a different .c file with mempool_use_allowed=false. In the new scheme, mempool_enabled() itself is a weak symbol. If it's not found, we assume false. So it only needs to be provided for libsystemd-shared, where it can return false or true. test-set-disable-mempool is libshared, so it gets the symbol. But then we actually disable the mempool via envvar. mempool_enable() is called to check its return value directly.
* | logind: log wall messages to the journalZbigniew Jędrzejewski-Szmek2022-06-303-14/+35
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently kde installs a fake utmp session to listen for this. This provides an alternative mechanism as discussed in #23574. Example with 'shutdown 6 -r' and shutdown -c': PRIORITY=6 SYSLOG_FACILITY=4 SYSLOG_IDENTIFIER=systemd-logind ... CODE_FILE=src/login/logind-utmp.c CODE_LINE=90 CODE_FUNC=warn_wall MESSAGE_ID=9e7066279dc8403da79ce4b1a69064b2 OPERATOR=root MESSAGE=The system will reboot at Thu 2022-06-30 12:16:43 CEST! ACTION=reboot PRIORITY=5 SYSLOG_FACILITY=4 SYSLOG_IDENTIFIER=systemd-logind ... OPERATOR=root CODE_FILE=src/login/logind-dbus.c CODE_LINE=2407 CODE_FUNC=method_cancel_scheduled_shutdown MESSAGE=System shutdown has been cancelled MESSAGE_ID=249f6fb9e6e2428c96f3f0875681ffa3 ACTION=reboot
* journal: Fix missing parenthesisDaan De Meyer2022-06-291-1/+1
|
* virt: fix detection of Parallels virtualizationYu Watanabe2022-06-291-7/+11
| | | | | | | | If Parallels virtualization is detected from DMI, then trust that over CPUID. Fixes issue caused by 28b1a3eac252d471de4fbb6f317353af30d68878. Fixes #23856.
* Merge pull request #23836 from yuwata/journal-file-check-object-headerDaan De Meyer2022-06-292-69/+60
|\ | | | | sd-journal: check object header before verifying object data
| * sd-journal: data object may be invalid after data_object_in_hash_table()Yu Watanabe2022-06-281-0/+5
| | | | | | | | | | | | | | | | | | | | Fixes a bug introduced by 578cd1855b73d2710ae14a8d77c4fac1d8ea7f48. The function `data_object_in_hash_table()` calls `journal_file_move_to_object()` with `OBJECT_DATA`. Hence, previously obtained pointer to a data object may be now invalid. Fixes #23794.
| * sd-journal: also check object header before verifying object dataYu Watanabe2022-06-281-51/+44
| | | | | | | | | | Otherwise, the check by journal_file_check_object() may be meaning less when the header is broken.
| * sd-journal: drop unused argument from journal_file_check_object()Yu Watanabe2022-06-281-4/+3
| | | | | | | | And rename the function.
| * sd-journal: shorten code a bitYu Watanabe2022-06-281-9/+3
| |
| * sd-journal: align tableYu Watanabe2022-06-281-6/+6
|/
* Merge pull request #23821 from dtardon/ascii-loggingYu Watanabe2022-06-2840-106/+193
|\ | | | | Allow ASCII fallback for Unicode characters in logs
| * tree-wide: allow ASCII fallback for … in logsDavid Tardon2022-06-2818-45/+77
| |
| * tree-wide: allow ASCII fallback for → in logsDavid Tardon2022-06-2822-61/+116
| |
* | Merge pull request #23849 from mbiebl/more-httpsYu Watanabe2022-06-28126-165/+165
|\ \ | | | | | | Use https for freedesktop.org
| * | Use https for gnu.orgMichael Biebl2022-06-2865-65/+65
| | |
| * | Use https for man7.orgMichael Biebl2022-06-2810-25/+25
| | |
| * | Use https for freedesktop.orgMichael Biebl2022-06-2852-75/+75
| | | | | | | | | | | | grep -l -r http:// | xargs sed -E -i s'#http://(.*).freedesktop.org#https://\1.freedesktop.org#'
* | | Merge pull request #23827 from yuwata/sd-event-process-buffered-inotify-dataZbigniew Jędrzejewski-Szmek2022-06-282-4/+56
|\ \ \ | | | | | | | | sd-event: process buffered inotify data
| * | | test: add another test for inotify event sourceYu Watanabe2022-06-271-0/+52
| | | | | | | | | | | | | | | | The test case is for issue #23826.
| * | | sd-event: make sd_event_prepare() return positive when buffered inotify data ↵Yu Watanabe2022-06-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | exists Previously, even if there is buffered inotify data, sd_event_prepare() did not process the data when there is no pending event source. Fixes #23826.
| * | | sd-event: use LIST_IS_EMPTY()Yu Watanabe2022-06-271-3/+3
| | | |
* | | | Merge pull request #23181 from thesamesam/parisc-seccompYu Watanabe2022-06-2812-6/+691
|\ \ \ \ | |_|/ / |/| | | Add seccomp support for PARISC (HPPA)
| * | | gpt: add PARISC UUIDsSam James2022-06-283-0/+13
| | | | | | | | | | | | | | | | Not doing PARISC64 for now as no userland exists for it yet.
| * | | seccomp: add PARISC (HPPA support)Sam James2022-06-282-2/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have to skip the W^X protections as we need executable memory on PARISC for now. Kernel work is in progress (started w/ 5.18). Closes: https://github.com/systemd/systemd/issues/23180
| * | | basic/missing-syscalls: add PARISC (HPPA support)Sam James2022-06-287-4/+643
|/ / / | | | | | | | | | Bug: https://github.com/systemd/systemd/issues/23180
* / / github: add more components to RFE issue templateJan Macku2022-06-271-3/+44
|/ / | | | | | | Follow-up to: #23838