| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
| |
If StartLimitIntervalSec is huge, or more specifically, set to "infinity", we need to take care about overflows.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is useful for development where overwriting files out side
the configured prefix will affect the host as well as stateless
systems such as NixOS that don't let packages install to /etc but handle
configuration on their own.
Alternative to https://github.com/systemd/systemd/pull/17501
tested with:
$ mkdir inst build && cd build
$ meson \
-Dcreate-log-dirs=false \
-Dsysvrcnd-path=$(realpath ../inst)/etc/rc.d \
-Dsysvinit-path=$(realpath ../inst)/etc/init.d \
-Drootprefix=$(realpath ../inst) \
-Dinstall-sysconfdir=false \
--prefix=$(realpath ../inst) ..
$ ninja install
|
|\
| |
| | |
Various small cleanups
|
| | |
|
| |
| |
| |
| |
| | |
Inspired by coverity CID#1435984. I'm confused by the union definion every time I look at it...
Let's at least add a comment to help future readers.
|
| |
| |
| |
| |
| |
| | |
... when called with a valid environment variable name. This means that
any time we call it with a fixed string, it is guaranteed to return 0.
(Also when the variable is not present in the environment block.)
|
| | |
|
| |
| |
| |
| |
| | |
With this change the pattern used for epoll_ctl() is the same in all calls in
this file. Consistency FTW!
|
| |
| |
| |
| |
| | |
Neither source_child_pidfd_register() nor event_make_signal_data() look at
n_enabled_child_sources.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Coverity in CID#1435966 was complaining that s->enabled is not "restored" in
all cases. But the code was actually correct, since it should only be
"restored" in the error paths. But let's still make this prettier by not setting
the state before all operations that may fail are done.
We need to set .enabled for the prioq reshuffling operations, so move those down.
No functional change intended.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
":" is prettier, but meson 0.56+ doesn't like it:
src/systemd/meson.build:73: DEPRECATION: ":" is not allowed in test name "cc-sd-bus.h:c", it has been replaced with "_"
src/systemd/meson.build:73: DEPRECATION: ":" is not allowed in test name "cc-sd-bus.h:c-ansi", it has been replaced with "_"
...
Fixes #17568.
|
|\ \
| | |
| | | |
Use app.slice by default in user manager (and define special user slices)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
With the grandparent change to move most units to app.slice,
those units would be ordered After=app.slice which doesn't make any sense.
Actually they appear earlier, before the manager is even started, and
conceputally it doesn't seem useful to put them under any slice.
|
| | |
| | |
| | |
| | |
| | | |
The only visible change from this is that we show Extrinsic: yes/no
in dumps for swap units (this was already done for mount units).
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This changes the default from putting all units into the root slice to
placing them into the app slice in the user manager. The advantage is
that we get the right behaviour in most cases, and we'll need special
case handling in all other cases anyway.
Note that we have currently defined that applications *should* start
their unit names with app-, so we could also move only these by creating
a drop-in for app-.scope and app-.service.
However, that would not answer the question on how we should manage
session.slice. And we would end up placing anything that does not fit
the system (e.g. anything started by dbus-broker currently) into the
root slice.
|
| | | |
|
|\ \ \
| | | |
| | | | |
timer: add new feature FixedRandomDelay=
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
FixedRandomDelay=yes will use
`siphash24(sd_id128_get_machine() || MANAGER_IS_SYSTEM(m) || getuid() || u->id)`,
where || is concatenation, instead of a random number to choose a value between
0 and RandomizedDelaySec= as the timer delay.
This essentially sets up a fixed, but seemingly random, offset for each timer
iteration rather than having a random offset recalculated each time it fires.
Closes #10355
Co-author: Anita Zhang <the.anitazha@gmail.com>
|
|\ \ \ \
| | | | |
| | | | | |
ethtool: make ethtool_get_driver() return -ENODATA if driver is an empty string.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
driver name is empty
Inspired by #17532.
|
| | | | | |
|
| |_|_|/
|/| | |
| | | |
| | | | |
Fixes #17502.
|
|\ \ \ \
| | | | |
| | | | | |
udev: make algorithm that selects highest priority devlink less susceptible to race conditions
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
to race conditions
Previously it was very likely, when multiple contenders for the symlink
appear in parallel, that algorithm would select wrong symlink (i.e. one
with lower-priority).
Now the algorithm is much more defensive and when we detect change in
set of contenders for the symlink we reevaluate the selection. Same
happens when new symlink replaces already existing symlink that points
to different device node.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Note that st_mtime member of struct stat is defined as follows,
#define st_mtime st_mtim.tv_sec
Hence we omitted checking nanosecond part of the timestamp (struct
timespec) and possibly would miss modifications that happened within the
same second.
|
| | | | |
| | | | |
| | | | |
| | | | | |
strerror_safe() internally applies abs().
|
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes #17552.
|
| | | | |
| | | | |
| | | | |
| | | | | |
Inspired by #17532.
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
network: about router lifetime
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
Closes #17527.
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
tiny fixes
|
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes #17543.
|
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes #17541.
|
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes #17542.
|
| | | | | |
|
|/ / / / |
|
| | | |
| | | |
| | | |
| | | | |
Fix for bug introduced in 1ed314087fab3988f3221b1b736a7e711f174349.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
It's the mDNS top-level domain, hence don't consider it for LLMNR, ever.
Fixes: #16233
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Fixes: #17504
(While we are it, also move $SYSTEMD_SECCOMP_LOG= env var description
into the right document section)
Also suggested in: https://github.com/systemd/systemd/issues/17245#issuecomment-704773603
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Fedora Rawhide still has the old policy, so selinux prevents our selinux code
from checking if selinux is enabled. But it seems smart to fall back to the old
API anyway.
Follow-up for fd5e402fa9377f2860e02bdb5b84d5f5942e73f4.
Both the reference policy [1] and Fedora selinux policy [2] needed to be
updated, so it's likely that this will impact other distros too.
[1] https://github.com/SELinuxProject/refpolicy/pull/308
[2] https://github.com/fedora-selinux/selinux-policy/pull/464
|