| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
unregister binary formats during shutdown
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We unregister binfmt_misc twice during shutdown with this change:
1. A previous commit added support for doing that in the final shutdown
phase, i.e. when we do the aggressive umount loop. This is the robust
thing to do, in case the earlier ("clean") shutdown phase didn't work
for some reason.
2. This commit adds support for doing that when systemd-binfmt.service
is stopped. This is a good idea so that people can order mounts
before the service if they want to register binaries from such
mounts, as in that case we'll undo the registration on shutdown
again, before unmounting those mounts.
And all that, just because of that weird "F" flag the kernel introduced
that can pin files...
Fixes: #14981
|
| |
| |
| |
| |
| |
| | |
Let's just copy out the bit of the string we need, and let's make sure
we refuse rules called "status" and "register", since those are special
files in binfmt_misc's file system.
|
| |
| |
| |
| |
| |
| |
| |
| | |
Apparently if the new "F" flag is used they might pin files, which
blocks us from unmounting things. Let's hence clear this up explicitly.
Before entering our umount loop.
Fixes: #14981
|
| | |
|
| |
| |
| |
| | |
Fixes: #15559
|
| |
| |
| |
| | |
Fixes: #15146
|
|\ \
| | |
| | | |
Add NULL callback check in one more place
|
| | |
| | |
| | |
| | | |
Follow-up for 9f65637308.
|
| | | |
|
|\ \ \
| | | |
| | | | |
udev: nulstr NUL termination fix
|
| | | | |
|
| |/ /
| | |
| | |
| | | |
Fixes: #15162
|
|\ \ \
| |_|/
|/| | |
just the recvmsg_safe() stuff from #15457
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Let's be extra careful whenever we return from recvmsg() and see
MSG_CTRUNC set. This generally means we ran into a programming error, as
we didn't size the control buffer large enough. It's an error condition
we should at least log about, or propagate up. Hence do that.
This is particularly important when receiving fds, since for those the
control data can be of any size. In particular on stream sockets that's
nasty, because if we miss an fd because of control data truncation we
cannot recover, we might not even realize that we are one off.
(Also, when failing early, if there's any chance the socket might be
AF_UNIX let's close all received fds, all the time. We got this right
most of the time, but there were a few cases missing. God, UNIX is hard
to use)
|
| | | |
|
|\ \ \
| |_|/
|/| | |
A few more dbus api documentation updates
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
It's not that I think that "hostname" is vastly superior to "host name". Quite
the opposite — the difference is small, and in some context the two-word version
does fit better. But in the tree, there are ~200 occurrences of the first, and
>1600 of the other, and consistent spelling is more important than any particular
spelling choice.
|
|\ \ \
| | | |
| | | | |
sd-bus: work around ubsan warning
|
| | | |
| | | |
| | | |
| | | | |
Let's make sure the alignment doesn't matter.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
ubsan complains that we add an offset to a NULL ptr here in some cases.
Which isn't really a bug though, since we only use it as the end
condition for a for loop, but we can still fix it...
Fixes: #15522
|
| | | |
| | | |
| | | |
| | | | |
BugLink: https://bugs.launchpad.net/bugs/1870930
|
|\ \ \ \
| | | | |
| | | | | |
sd-journal: fix namespace check
|
| | |_|/
| |/| |
| | | |
| | | | |
Fixes: #15528
|
|\ \ \ \
| | | | |
| | | | | |
nspawn: politely refuse --image= when run inside non-host netns
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
with --image=
Strictly speaking this doesn't really fix #15079, but it at least means
we won't hang anymore.
Fixes: #15079
|
| |/ / / |
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Otherwise we'd not read the services input while waiting for the job to
wait, and there's no point in waiting for the job anyway if we wait for
the unit to stop ultimately.
Fixes: #15395
|
|\ \ \
| |/ /
|/| | |
network: add support to DHCPv4 server/client option 9 LPR
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
core: make sure to restore the control command id, too
|
| | | |
| | | |
| | | |
| | | | |
Fixes: #15356
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
beef up --resolv-conf= options of systemd-nspawn
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Let's add flavours for copying stub/uplink resolv.conf versions.
Let's add a more brutal "replace" mode, where we'll replace any existing
destination file.
Let's also change what "auto" means: instead of copying the static file,
let's use the stub file, so that DNS search info is copied over.
Fixes: #15340
|
| |/ / /
| | | |
| | | |
| | | | |
That way we can use it from nspawn.
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
add generic bus interface for setting log level that can be implemented by any daemon
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
It has slightly different setters in place, so it needs some special
love, which is easy enough though.
|
| | | | |
| | | | |
| | | | |
| | | | | |
The setters are slightly different, hence keep them as they are for now.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The property was just added, let's replace it again. Given that it was
never released this should not be an API breakage.
|
| | |_|/
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
level/target
Let's define a new, generic bus interface that any daemon can implement
for querying/setting the log level.
We can turn this into something more powerful later on, but for now,
only expose three properties: the log level, log target and the syslog
identifier (with the former two being writable).
This is supposed to be generic, so that it can be implemented by 3rd
party daemons too, eventually.
|
| |/ /
|/| |
| | |
| | | |
Fixes: #15344
|
|\ \ \
| | | |
| | | | |
Add debug log when a job in the activation queue is not runnable
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
When a job is skipped due its dependencies not being ready, log
a debug message saying what is holding it back.
This was very useful with transient units timing out to figure
out where the problem was.
|
| |/ /
| | |
| | |
| | |
| | |
| | | |
Just as log_full already does, check if the log level would result in
logging immediately in the macro in order to avoid doing
unnecessary work that adds up in hot spots.
|