Age | Commit message (Collapse) | Author |
|
A few fixes for several issues uncovered with a home-brew fuzzer for journald
|
|
(#9855)
The references to the dns_server are now setup after the tls connection is setup.
This ensures that the stream got fully stopped when the initial tls setup failed
instead of having the unref being blocked by the reference to the stream by the server.
Therefore on_stream_io would no longer be called with a half setup encrypted connection.
Fixes the issue reported in #9838.
|
|
Fixes #9833.
|
|
|
|
core: namespace fixes
|
|
This is a kind of follow-up to e88baee88fad8bc59d3 which should finally fix
the issue which that commit was supposed to fix.
|
|
This fixes a minor memory leak.
|
|
The function replaces a couple commas, a semicolon and the final newline with
zero bytes in the string passed to it. The 'const' seems to have been added
by accident during a bulk edit (more specifically 3b3154df7e2773332bb814).
|
|
Fixes #9846.
|
|
Single space is used as separator.
C.f. discussions in #156.
Fixes #9839 introduced by a6aadf4ae0bae185dc4c414d492a4a781c80ffe5.
|
|
be accessed
Fixes #9844.
|
|
Suggested by #9835.
|
|
both were silently ignored leading to some of the pkg-config files
ending up in the wrong place
|
|
Follow-up for 3af0a96c0fcc623bd16649fc3640396a657cf9ef (#9684).
|
|
journal: fixes issues reported by ASan
|
|
The qgroup logic (types 'q' and 'Q') only has an effect if there's no previous
setup at all, and any explicitly configured subvolumes with their qgroups are
left entirely unmodified.
The idea is that if users want a different logic than the one we set up by
default, then by all means they should do that before hand, and tmpfiles won't
override their logic.
|
|
Fixes #9793.
|
|
journal: do not hide options in help message
|
|
|
|
Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
|
|
|
|
As the length of salt in NSEC3 may be zero.
Fixes #9757.
|
|
|
|
Fixes #9738.
|
|
Fixes #9829.
|
|
Fixes another issue reported in #9795.
|
|
Even if built without gcrypt, show the relevant options in help message.
Otherwise, the help message diverges from the man page or suggestions
by the shell completion.
|
|
|
|
The message may contains only whitespaces.
Fixes #9795.
|
|
The "features" fields is parsed as a tristate value. The values
are thus not of type NetDevFeature enum but int. The NetDevFeature
enum is instead the index for the features array.
Adjust the type. In practice, this had no impact because NetDevFeature
enum commonly has size of int.
Also, don't use memset() 0xFF to initilize the int with -1. While
it works correctly in practice, it feels ugly.
|
|
Follow-up for #9789.
|
|
tree-wide: Shorten error logging and several code cleanups
|
|
Make RootImage= work with PrivateDevices=
|
|
The default setup for the Lenovo ThinkPad X140e is 104x104mm, and the kernel
claims that it's 64x21. The default 104x104mm dimensions causes the vertical
axis to act oddly, causing random vertical jitters and higher vertical
sensitivity.
Measuring it showed that it was 74x32, and these touchpad dimensions provide
a better (if a little bit slower) experience but a consistent sensitivity
in all directions.
These values were obtained using the `touchpad-edge-detector` tool.
|
|
Add new CMP(a, b) macro
|
|
This makes it possible to wait until boot is finished without having to poll
for this command repeatedly, instead using the syntax:
$ systemctl is-system-running --wait
Waiting is implemented by waiting for the StartupFinished signal to be posted
on the bus.
Register the matcher before checking for the property to avoid race conditions.
Tested by artificially delaying startup with a oneshot service and calling this
command, checked that it emitted `running` and exited with a 0 return code as
soon as the delay service completed startup.
Also tested that booting to degraded state unblocks the command.
Inserted a delay between getting the property and waiting for the signal and
confirmed this seems to work free of race conditions.
Updated the --help text (under --wait) and the man page to document the new
feature.
|
|
|
|
|
|
This function doesn't really implement ordering, but CMP() is still fine to use
there. Keep the comment in place, just update it slightly to indicate that.
|
|
Looked for definitions of functions using the *_compare_func() suffix.
Tested:
- Unit tests passed (ninja -C build/ test)
- Installed this build and booted with it.
|
|
Follow up for PRs #9764 and #9760.
|
|
Macro returns -1, 0, 1 depending on whether a < b, a == b or a > b.
It's safe to use on unsigned types.
Add tests to confirm corner cases are properly covered.
|
|
Drop __extension__, since we don't use gcc -Wpedantic or -ansi.
Reformat code for spacing. Add spaces after commas almost everywhere.
Reindent code blocks in macro definitions, for consistency.
|
|
Continuation of 4027f96aa08c73f109aa46b89842ca0e25c9c0e9.
|
|
|
|
|
|
|
|
|
|
|
|
mac_smack_fix_at()
|