| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Unfortunately, gcc keeps warning about those even when we use an
explicit (void) cast to indicate we are not interested in the result.
LLVM's clang does not have that issue and works fine with the casts.
GCC bug being tracked at:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425
Until that GCC bug is fixed (and the version with the fix is in
many/most distributions) or we switch to LLVM as the default compiler,
it looks like we'll have to disable this warning by default...
Tested by building files known to present warnings about unused results
without the suppression, confirmed that the warnings were no longer
present with this patch applied.
This partially reverts commit 00c11bc53a1d37 ("build-sys: don't suppress irrelevant warnings").
|
|\
| |
| | |
cgtop enhancements for easier machine-readable output
|
| |
| |
| |
| |
| |
| |
| | |
since last tick
Emit "0" rather than "-" if no change in IO values are seen for a process since
last tick, so long as accounting has registered content at all.
|
| |
| |
| |
| |
| |
| | |
- Explicitly flush stdout before sleep between iterations
- Only clear user keystrokes when output is to TTY
- Add a newline between output batches when output is not to TTY
|
| | |
|
| | |
|
|\ \
| | |
| | | |
shared: Drop 'name=' prefix from SYSTEMD_CGROUP_CONTROLLER define.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
In cgtop,mount-setup,nspawn the name= prefix is hard-coded in the
mount options, and the define is not used.
Everywhere else, we explicitly white-list allow 'name=' prefix to be
used with all controllers, and strip it out to 'normalise' the
controller name. That work is mostly inflicted on us due to 'name='
prefix in the define. Dropping this prefix makes everything more sane
overall.
|
|\ \ \
| | | |
| | | | |
build-sys: make man/systemd.directives.xml depend on man/custom-entit…
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Currently, the following command sequence fails:
make distclean
./autogen.sh c
make distcheck
That's because the command invoked to build man/systemd.directives.xml needs
man/custom-entities.ent to function, which itself isn't a dependency.
The $(filter-out $<,$^) logic used to filter out everything from the
prerequisites except for the first word, which doesn't work anymore
now. Use $(SOURCE_XML_FILES) instead.
|
|\ \ \ \
| | | | |
| | | | | |
sd-network: allow the state dir to be created after the monitor
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
We now listen for new subdirs of /run/systemd, and /run/systemd/netif in case
/run/systemd/netif/links does not exist.
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
move dns code from resolve to shared v3
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
dhcp domain option
previously hostname_is_valid was used to validate domain names, which
would silently drop perfectly valid dns names that were longer than a
single dns label.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This prevents a build failure when /usr/share/fonts/unifont/unifont.hex
is newer than unifont-glyph-array.bin.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Our bloom-filters support root-path matching. Make sure we properly add
the path_namespace= tag.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
DBus-spec defines two different pattern matchings:
1) Path and namespace prefix matching. In this case, A matches B either
if both are equal, or if B is fully included in the namespace of A.
In other words, A has to be a prefix of B, but end with a separator
character (or the following character in B must be one).
This is used for path_namespace= and arg0namespace=
2) The other pattern matching is used for arg0path= which does a two-way
matching. That is, A must be a prefix of B, or B a prefix of A.
Furthermore, the prefix must end with a separator.
Fix the sd-bus helpers to reflect that. The 'simple_' and 'complex_'
prefixes don't make any sense now, but.. eh..
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Make sure we actually verify our match-rules are executed properly. Right
now all we test is the bloom-matches, which are non-reliable as they leave
through false-positives.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
DBus spec clearly defines arg0path= to be a two-way matching. That is,
either the matcher or the matchee can be a prefix of the other to match.
This is not possible to implement with bloom-filters. Instead, we'd have
to add a separate filter for each prefix. This is non-trivial, though.
Hence, just skip the match for now and match locally.
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Lets look at an example where we add arg0="/foo/bar/waldo" to a
bloom-filter. The following strings are added:
"arg0:/foo/bar/waldo"
"arg0-slash-prefix:/foo/bar"
"arg0-slash-prefix:/foo"
Two problems arise:
1) If we match on "arg0path=/foo/bar/waldo", the dbus-spec explicitly
states that equal strings are also considered prefixes. However, in the
bloom-match, we can only provide a single match-filter. Therefore, we have
to add "arg0-slash-prefix:/foo/bar/waldo" there, but this never occured in
the bloom-mask of the message.
Hence, this patch makes sure bloom_add_prefixes() adds the full path as
prefix, too.
2) If we match on "arg0path=/foo/", the dbus-spec states that arg0path
does prefix-matching with the trailing slash _included_, unlike
path_namespace= matches, which does *not* include them. This is
inconsistent, but we have to support the specs. Therefore, we must add
prefixes with _and_ without trailing separators.
Hence, this patch makes sure bloom_add_prefixes() adds all prefixes with
the trailing slash included.
The final set of strings added therefore is:
"arg0:/foo/bar/waldo"
"arg0-slash-prefix:/foo/bar/waldo"
"arg0-slash-prefix:/foo/bar/"
"arg0-slash-prefix:/foo/bar"
"arg0-slash-prefix:/foo/"
"arg0-slash-prefix:/foo"
"arg0-slash-prefix:/"
|
|\ \ \ \
| | | | |
| | | | | |
util: introduce CMSG_FOREACH() macro and make use of it everywhere
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
It's only marginally shorter then the usual for() loop, but certainly
more readable.
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
man: clarify that IMPORT{program} is done only for zero exit code
|
| |/ / / |
|
|/ / /
| | |
| | |
| | | |
Follow up for 7c918141ed.
|
|\ \ \
| | | |
| | | | |
sd-network: allow NULL in sd_network_monitor_unref
|
| | | |
| | | |
| | | |
| | | | |
Match rest of codebase, we always allow unref'ing NULL.
|
|\ \ \ \
| | | | |
| | | | | |
man: udevd - correct default event timeout
|
| |/ / /
| | | |
| | | |
| | | | |
This was changed from 30 to 180 seconds quite some time ago.
|
|\ \ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | | |
By using our homegrown function we can dispense with all the iffdefery.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This appears to be the right time to do it for SOCK_STREAM
unix sockets.
Also: condition bus_get_owner_creds_dbus1 was reversed. Split
it out to a separate variable for clarity and fix.
https://bugzilla.redhat.com/show_bug.cgi?id=1224211
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
SELinux information cannot be retrieved this way, since we are
using stream unix sockets and SCM_SECURITY does not work for
them.
SCM_CREDENTIALS use dropped to be consistent. We also should
get this information at connection time.
https://bugzilla.redhat.com/show_bug.cgi?id=1224211
"SCM_SECURITY was only added for datagram sockets."
|
| | | | |
| | | | |
| | | | |
| | | | | |
Also reorder the code a bit to be easier to parse.
|
| |/ / /
|/| | | |
|
| | | |
| | | |
| | | |
| | | | |
use it anymore
|
| | | | |
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
networkd: bond improve logging
|
| | |_|/
| |/| |
| | | |
| | | | |
Replaces a lof of strerror() usage with log_netdev_error_errno()
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
utezduyar/use-async-convenience-function-on-setting-hostname
networkd: use async convenience call to set hostname
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
networkd: vxlan improve logging
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Replaces a lof of strerror() usage with log_netdev_error_errno()
|
| | |/ / /
| |/| | |
| | | | |
| | | | | |
Replaces a lof of strerror() usage with log_netdev_error_errno()
|
|\ \ \ \ \
| | | | | |
| | | | | | |
sd-bus: Correct typo
|
|/ / / / / |
|