summaryrefslogtreecommitdiffstats
path: root/src/journal-remote/journal-remote-parse.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-06-09meson: Build with frame pointers in developer modeDaan De Meyer1-0/+4
Profiling tools tend to work better when binaries and libraries are compiled with frame pointers as without them there's no easy and fast way to get the current stacktrace.
2022-06-09shutdown: Lazy unmount /oldroot/{dev,proc,sys}Jan Janssen1-0/+11
These should not prevent us from cleaning up the remainders of /oldroot if something in the kernel is blocking these from being unmounted.
2022-06-09shutdown: Log processes that block umountJan Janssen1-3/+63
2022-06-09shutdown: Rename umount_log_level and make it a boolJan Janssen3-50/+44
This was already effectively a bool because only ever two states were valid. To make the meaning of it more clear, also rename it to last_try.
2022-06-09systemctl: simplify code a bitZbigniew Jędrzejewski-Szmek1-4/+5
gcc insists that bus may be used unitialized here, but I don't see any possibility of that.
2022-06-09shared/bus-util: rename variables to follow newer styleZbigniew Jędrzejewski-Szmek2-14/+12
2022-06-09shared/bus-util: simplificationZbigniew Jędrzejewski-Szmek1-17/+9
2022-06-09test-udev-util: do not pass NULL to printf, style fixesZbigniew Jędrzejewski-Szmek1-8/+8
2022-06-09test-process-util: do not pass NULL to printf, simplify testsZbigniew Jędrzejewski-Szmek1-6/+7
We don't need to fork to test that the function returns -EINVAL on null input. So let's simplify things a bit.
2022-06-09test-dns-domain: a few more "NULL in printf %s"sZbigniew Jędrzejewski-Szmek1-10/+10
2022-06-09test-fstab-util: one more "NULL in printf %s"Zbigniew Jędrzejewski-Szmek1-3/+3
2022-06-09various: indentationZbigniew Jędrzejewski-Szmek2-11/+11
2022-06-09docs/AUTOMATIC_BOOT_ASSESSMENT: describe how to integrate a DE viability checkZbigniew Jędrzejewski-Szmek1-28/+45
I reordered the component list to match chronological order: we first install an entry, then boot it, then the checks happen, etc. Before it was ordered by "importance", but that is harder to follow.
2022-06-09docs/BLS: move "boot counting" into the main specZbigniew Jędrzejewski-Szmek2-63/+118
The boot-counting file-renaming entry-sorting part that the boot loader implements is moved to the main document. The second document describes a specific implementation that is provided through systemd units. The sorting algorithm is extended to say that bad entries should be sorted later. I also added a note that bad entries should be available for booting. For some reason, the second document said that it applies only to EFI systems. AFAIK there are no implementations for non-EFI, but the specification should work just fine, if somebody were to implement it. So that part is dropped. Fixes #23345. Sadly, bootctl doesn't implement sorting of boot entries with counting :(((( But I'm leaving that for another PR.
2022-06-09bash-completion: add systemd-cryptenroll supportAntonio Alvarez Feijoo2-0/+103
2022-06-09bash-completion: fix typos in commentsAntonio Alvarez Feijoo2-2/+2
2022-06-09Resolve conflicts between #23616 and the recent NFT additionsZbigniew Jędrzejewski-Szmek3-36/+22
2022-06-09test-load-fragment: don't print NULLsZbigniew Jędrzejewski-Szmek1-2/+2
2022-06-09test-bus-address: silence gcc warning about NULL arg to strcmp()Zbigniew Jędrzejewski-Szmek1-7/+5
The code was overly complicated… We know what value we expect, we can test it directly.
2022-06-09test-mountpoint-util: fix NULL arg to %sZbigniew Jędrzejewski-Szmek1-1/+1
2022-06-09sd-journal: inline variable declarationsZbigniew Jędrzejewski-Szmek1-16/+9
2022-06-09sd-journal: use _cleanup_Zbigniew Jędrzejewski-Szmek1-29/+18
2022-06-09hwdb: Add HP Dev OneJeremy Soller1-0/+5
This enables the microphone mute and programmable hotkey for the HP Dev One.
2022-06-09meson: Add nspawn-locale meson optionDaan De Meyer3-4/+6
https://github.com/systemd/systemd/pull/23192 caused breakage in Arch Linux's build tooling. Let's give users an opt-out aside from reverting the patch. It's hardly any maintenance work on our side and gives users an easy way to revert the locale change if needed. Of course, by default we still pick C.UTF-8 if the option is not specified.
2022-06-09nspawn: use udev_available()Nick Rosbrook1-1/+1
2022-06-09libsystemd-network: use udev_available()Nick Rosbrook1-2/+1
2022-06-08cifuzz: build fuzzers on i386 as wellEvgeny Vereshchagin1-2/+7
It's a follow-up to https://github.com/systemd/systemd/pull/23550.
2022-06-08po: Added translation using Weblate (Estonian)H A2-0/+848
Co-authored-by: H A <contact+fedora@hen.ee>
2022-06-08core: firewall integration with DynamicUserNFTSet=Topi Miettinen14-0/+310
New directive `DynamicUserNFTSet=` provides a method for integrating configuration of dynamic users into firewall rules with NFT sets. Example: ``` table inet filter { set u { typeof meta skuid } chain service_output { meta skuid != @u drop accept } } ``` ``` /etc/systemd/system/dunft.service [Service] DynamicUser=yes DynamicUserNFTSet=inet:filter:u ExecStart=/bin/sleep 1000 [Install] WantedBy=multi-user.target ``` ``` $ sudo nft list set inet filter u table inet filter { set u { typeof meta skuid elements = { 64864 } } } $ ps -n --format user,group,pid,command -p `pgrep sleep` USER GROUP PID COMMAND 64864 64864 55158 /bin/sleep 1000 ```
2022-06-08core: firewall integration with ControlGroupNFTSet=Topi Miettinen15-0/+304
New directive `ControlGroupNFTSet=` provides a method for integrating services into firewall rules with NFT sets. Example: ``` table inet filter { ... set timesyncd { type cgroupsv2 } chain ntp_output { socket cgroupv2 != @timesyncd counter drop accept } ... } ``` /etc/systemd/system/systemd-timesyncd.service.d/override.conf ``` [Service] ControlGroupNFTSet=inet:filter:timesyncd ``` ``` $ sudo nft list set inet filter timesyncd table inet filter { set timesyncd { type cgroupsv2 elements = { "system.slice/systemd-timesyncd.service" } } } ```
2022-06-08network: firewall integration with NFT setsTopi Miettinen13-7/+792
New directives `NFTSet=`, `IPv4NFTSet=` and `IPv6NFTSet=` provide a method for integrating configuration of dynamic networks into firewall rules with NFT sets. /etc/systemd/network/eth.network ``` [DHCPv4] ... NFTSet=netdev:filter:eth_ipv4_address ``` ``` table netdev filter { set eth_ipv4_address { type ipv4_addr flags interval } chain eth_ingress { type filter hook ingress device "eth0" priority filter; policy drop; ip saddr != @eth_ipv4_address drop accept } } ``` ``` sudo nft list set netdev filter eth_ipv4_address table netdev filter { set eth_ipv4_address { type ipv4_addr flags interval elements = { 10.0.0.0/24 } } } ```
2022-06-07basic: Propagate SIGBUS signal info when re-raising signalsDaan De Meyer1-1/+3
raise() won't propagate the siginfo information of the signal that's re-raised. rt_sigqueueinfo() allows us to provide the original siginfo struct which makes sure it is propagated to the next signal handler (or to the coredump).
2022-06-07basic/socket-util: align tablesZbigniew Jędrzejewski-Szmek1-20/+20
2022-06-07activate: reduce scope of iterator variablesZbigniew Jędrzejewski-Szmek1-12/+9
2022-06-07core: wrap some long commentsZbigniew Jędrzejewski-Szmek1-7/+7
2022-06-07shared/condition: reduce scope of variablesZbigniew Jędrzejewski-Szmek1-18/+7
2022-06-07bootctl: inline iterator variableZbigniew Jędrzejewski-Szmek1-6/+5
2022-06-07meson: adjust rootlibdir default for multiarchMike Gilbert1-1/+6
On Debian, libdir is commonly something like 'lib/x86_64-linux-gnu'. The result of get_option('libdir') is normalized to a prefix-relative path by meson, so we can just append it to rootprefixdir. Fixes https://github.com/systemd/systemd/issues/23648.
2022-06-07sd-journal: fix NULL arg to %s in error messages and hashmap lookupZbigniew Jędrzejewski-Szmek1-22/+28
The lookup "works", but is not useful. It was introduced in 9c66f528138f4fc856b3e9e137245b7048d5747d. And printf will NULL args is invalid was introduced in 5d1ce25728856956c1fbfe05b491067f83bd2216 when support for fds was initally added :(
2022-06-07sd-hwdb: fix NULL arg to %s in error messagesZbigniew Jędrzejewski-Szmek1-14/+10
gcc warns about $subject, and it is obviously correct. path may or may not be set.
2022-06-07basic/unit-file: make sure we don't call streq() on NULLZbigniew Jędrzejewski-Szmek1-0/+1
add_names is called in two places, with fragment_basename=NULL in one of them. gcc warns that it can be NULL. Fixes #23646.
2022-06-07meson: install libsystemd-shared into rootpkglibdirMichael Biebl5-128/+132
Introduce rootpkglibdir for installing libsystemd-{shared,core}.so. The benefit over using rootlibexecdir is that this path can be multiarch aware, i.e. this path can be architecture qualified. This is something we'd like to make use of in Debian/Ubuntu to make libsystemd-shared co-installable, e.g. for i386 the path would be /usr/lib/i386-linux-gnu/systemd/libsystemd-shared-*.so and for amd64 /usr/lib/x86_64-linux-gnu/systemd/libsystemd-shared-*.so. This will allow for example to install and run systemd-boot/i386 on an amd64 host. It also simplifies/enables cross-building/bootstrapping. For more infos about Multi-Arch see https://wiki.debian.org/Multiarch. See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=990547
2022-06-06networkd: NetLabel integrationTopi Miettinen16-7/+445
New directive `NetLabel=` provides a method for integrating dynamic network configuration into Linux NetLabel subsystem rules, used by Linux security modules (LSMs) for network access control. The option expects a whitespace separated list of NetLabel labels. The labels must conform to lexical restrictions of LSM labels. When an interface is configured with IP addresses, the addresses and subnetwork masks will be appended to the NetLabel Fallback Peer Labeling rules. They will be removed when the interface is deconfigured. Failures to manage the labels will be ignored. Example: ``` [DHCP] NetLabel=system_u:object_r:localnet_peer_t:s0 ``` With the above rules for interface `eth0`, when the interface is configured with an IPv4 address of 10.0.0.0/8, `systemd-networkd` performs the equivalent of `netlabelctl` operation ``` $ sudo netlabelctl unlbl add interface eth0 address:10.0.0.0/8 label:system_u:object_r:localnet_peer_t:s0 ``` Result: ``` $ sudo netlabelctl -p unlbl list ... interface: eth0 address: 10.0.0.0/8 label: "system_u:object_r:localnet_peer_t:s0" ... ```
2022-06-06hwdb: Add accel orientation quirk for the Aya Neo NextMaccraft1231-0/+8
2022-06-06execute: fix resource leakShreenidhi Shedi1-1/+1
CID#1431998
2022-06-06journalctl: Use STATIC_DESTRUCTOR_REGISTER()Daan De Meyer1-17/+16
2022-06-06shared: Rename pcre2-dlopen.h/c to pcre2-util.h/cDaan De Meyer5-8/+10
We already store the dlopen() stuff for other libraries in util headers as well so let's do the same for pcre2. We also move the definition of some trivial cleanup functions from journalctl.c to pcre2-util.h
2022-06-06test: fix TEST-70 under sanitizersFrantisek Sumsal1-2/+1
Addresses: * https://github.com/systemd/systemd/issues/23578#issuecomment-1144089821 * https://github.com/systemd/systemd-centos-ci/pull/496#issuecomment-1144640305
2022-06-06test: set $ASAN_RT_PATH along with $LD_PRELOAD to the ASan runtime DSOFrantisek Sumsal1-1/+1
Since we unset $LD_PRELOAD in the testsuite-* units (due to another issue), let's store the path to the ASan DSO in another env variable, so we can easily access it in the testsuite scripts when needed.
2022-06-06various: use CONST_MAX for array allocationZbigniew Jędrzejewski-Szmek2-3/+3
IIUC, with MAX() we get a VLA and the size is "decided" at runtime, even though the result is always the same, but with CONST_MAX() we get a normal stack variable.