Lennart Poettering
efebb613c7
core: optionally, trigger .timer units on timezone and clock changes
...
Fixes : #6228
2019-04-02 08:20:10 +02:00
Lennart Poettering
787be190a8
run: rename with_timer → arg_with_timer
...
The value is directly initialized from cmdline args, hence let's name it
so, following our usual naming style.
2019-04-02 08:19:35 +02:00
Lennart Poettering
7dd1e315b2
core: use more structured initialization
2019-04-02 08:19:35 +02:00
Topi Miettinen
509276f2b7
build: install /etc/systemd/{system,user}-generators
...
Manual page systemd.generators refers to /etc/systemd/{system,user}-generators,
but the paths do not exist, so let's install them.
2019-04-02 07:53:32 +02:00
Yu Watanabe
3f8f021541
Merge pull request #12030 from poettering/condition-memory
...
add ConditionCPUs= + ConditionMemory=
2019-04-02 08:01:42 +09:00
Lennart Poettering
ca006fc640
core: refactor transaction.c to use fewer gotos
...
In particular, let's not use gotos that jump up, i.e. are loops. gotos
that jump down for the purpose of clean-up are cool, but using them for
loops is evil.
No change in behaviour, just some refactoring.
2019-04-02 07:28:58 +09:00
Yu Watanabe
dd09a9ec0f
Merge pull request #12160 from yuwata/wait-online-allow-configuring
...
wait-online: add --any option
2019-04-02 06:10:36 +09:00
Yu Watanabe
7a24df5ecc
Merge pull request #12155 from yuwata/network-fix-and-extend-foo-over-udp-support
...
network: fix and extend Foo over UDP
2019-04-02 06:10:07 +09:00
Lennart Poettering
d2e1b2fd67
systemctl: print a more accurate error message when we can
2019-04-02 05:44:12 +09:00
Lennart Poettering
c2f64c07c1
rm-rf: refuse combining REMOVE_ONLY_DIRECTORIES and REMOVE_SUBVOLUME for now
...
It's not easy to implement such a combined operation race-freely since
dropping a subvolume will drop all its contents, including any
non-directories.
Hence, let's just not support this combination for now. Which isn't much
of a loss, since we never combine these flags anyway.
2019-04-02 05:40:05 +09:00
Lennart Poettering
ebf8d79a58
core: export ReloadResult value on the bus
...
We keep track of it, but never exposed it. Let's fix that.
2019-04-02 05:39:05 +09:00
Lennart Poettering
c25c118710
shared: add some minor comments
2019-04-02 05:34:53 +09:00
Lennart Poettering
4659bf6f76
core: add a common function for bus calls that return unit dbus path
...
Let's shorten the code a bit by using a single function for similar
cases.
No change in behaviour, just some refactoring and shortening.
2019-04-02 05:34:03 +09:00
Yu Watanabe
6872bd4721
Merge pull request #12167 from poettering/timer-parse-tweak
...
two tweaks for timer expression parsing
2019-04-02 05:29:53 +09:00
Lennart Poettering
b6cceaae30
fs-util: suppress world-writable warnings if we read /dev/null
...
Fixes : #12165
2019-04-01 22:07:41 +02:00
Lennart Poettering
c0b471e197
sd-bus: add missing empty line
2019-04-01 20:56:19 +02:00
Yu Watanabe
2f9859baa8
wait-online: add --any option
...
When this option is specified, wait-online exits with success even
when several interfaces are in configuring state.
Closes #9714 .
2019-04-02 03:37:50 +09:00
Yu Watanabe
7df5c6ba90
network: make FooOverUDP.Protocol= support name of ipproto
2019-04-02 03:29:41 +09:00
Yu Watanabe
881c74bd64
network: use asynchronous call for creating FOU tunnels
...
Otherwise, multiple FOU tunnels cannot be created correctly.
2019-04-02 03:08:49 +09:00
Yu Watanabe
3abf950fdb
network: do not ignore FooOverUDP.Encapsulation= setting
...
Previously the setting is ignored and always FOU_ENCAP_GUE is sent.
2019-04-02 03:07:42 +09:00
Yu Watanabe
a27a0ad641
network: merge ipip_init() and sit_init()
2019-04-02 03:07:08 +09:00
Yu Watanabe
4799d932b5
network: add FooOverUDP support for SIT and GRE tunnels
2019-04-02 03:07:08 +09:00
Lennart Poettering
dc44c96d97
core: pass parse error to log functions when parsing timer expressions
2019-04-01 18:25:43 +02:00
Lennart Poettering
25a04ae55e
core: simply timer expression parsing by using ".ltype" field of conf-parser logic
...
No change of behaviour. Let's just not parse the lvalue all the time
with timer_base_from_string() if we can already pass it in parsed.
2019-04-01 18:25:43 +02:00
Yu Watanabe
76e62a4d22
udev: move udev_ctrl_cleanup() into manager_free()
2019-04-01 15:20:03 +02:00
Lennart Poettering
245d386a03
Merge pull request #12157 from yuwata/network-netdev-name-conflict
...
network: handle NetDev.Name= conflict nicely
2019-04-01 15:17:07 +02:00
Yu Watanabe
4b4a6c9b41
udev: shorten code a bit
2019-04-01 10:30:31 +09:00
Yu Watanabe
c6e77d7b22
network: add '=' to config key names in log
...
Also, long lines are wrapped.
2019-04-01 10:30:31 +09:00
Yu Watanabe
b519908cac
network: do not abort execution when NetDev.Name= conflicts
...
This also changes that .netdev files are loaded in ascending order.
Otherwise, when NetDev.ifname= setting conflicts with other .netdev file,
then .netdev file with large prefix number wins.
2019-04-01 10:30:31 +09:00
Yu Watanabe
18268197fa
bootspec: fix memleak caused by setting invalid cleanup function
2019-03-31 23:31:29 +09:00
Yu Watanabe
7226337574
bootspec: add missing free() in boot_config_free()
2019-03-31 23:30:30 +09:00
Yu Watanabe
b07b19dff8
Merge pull request #12147 from yuwata/network-gre-key-12144
...
network: make GRE and GRETAP support Key= or friends
2019-03-31 22:12:34 +09:00
Yu Watanabe
a8b9a65c50
network: make GRE and GRETAP support Key=, InputKey=, OutputKey=, and SerializeTunneledPackets=
...
This also merge netdev_gre_fill_message_create() and netdev_erspan_fill_message_create().
2019-03-30 21:16:03 +09:00
Zbigniew Jędrzejewski-Szmek
d923021aeb
Merge pull request #12048 from jengelh/master
...
rpm: avoid hiding errors from systemd commands
2019-03-29 22:27:31 +01:00
Yu Watanabe
9282f75bf4
network: make erspan netdev can be specified in Network.Tunnel=
2019-03-30 03:52:25 +09:00
Yu Watanabe
1a9bc3d8f6
network: do not continue when appending data to netlink message fails
2019-03-30 03:52:21 +09:00
Zbigniew Jędrzejewski-Szmek
6ea07d4fb4
Merge pull request #12140 from poettering/copy-early
...
chattr/copy.c fixes
2019-03-29 15:02:50 +01:00
Zbigniew Jędrzejewski-Szmek
983616735e
Merge pull request #12137 from poettering/socket-var-run
...
warn about sockets in /var/run/ too
2019-03-29 15:00:25 +01:00
Zbigniew Jędrzejewski-Szmek
2818ddc8f4
Merge pull request #12133 from poettering/rseq-whitelist
...
whitelist rseq() system call in `@default` syscall group
2019-03-29 14:59:00 +01:00
Lennart Poettering
196f306795
analyze: check both possible mount points of tracefs
...
Let's try the new one first, the old one second.
2019-03-29 14:57:37 +01:00
Lennart Poettering
bd169c2be0
fsck: copy out device argument from argv[] before forking
...
We nowadays rename our child processes, hence argv[] will be clobbered,
let's hence copy the device path to dynamic memory before forking.
This is fall-out from 60ffa37a65 since we
now a lot more often end up overriding the argv[] buffer than before,
simple because we know what to override.
These kind of bugs kinda suck. THere are only two options here: stop
overriding argv[] for all cases (or just these cases) or explicitly
copying out everything we need in child processes before forking. With
this patch I opt for the latter, though I am not 100% convinced this is
a great solution. Just a better solution than everything else, i.e.
allowing argv[] to remain out of sync with what others see.
Fixes : #12135
2019-03-29 08:18:25 +01:00
Jörg Thalheim
7232c1f9da
wireguard: fix exponential backoff when resolving hosts
...
It should stop at 25s, not start.
Fixes #12134
2019-03-28 20:00:19 +01:00
Zbigniew Jędrzejewski-Szmek
f2dc22b447
headers: add missing includes
...
Fixes #12125 .
2019-03-28 19:59:56 +01:00
Lennart Poettering
b8a736d7a0
sd-bus: change "int" → "signed int" on bitfield
...
Apparently by the C standard "int" bitfields can have any signedness
(unlike non-bitfield declarations which are "signed" if the signedness
is not specified).
Let's fix the LGTM warning about this hence and be explicit that we mean
"signed" here.
2019-03-28 19:07:51 +01:00
Lennart Poettering
d629ba7045
tmpfiles: move full chattr flag set to chattr-util.h
...
It's a pretty generic concept and fits will there, hence let's move it.
2019-03-28 18:43:05 +01:00
Lennart Poettering
75006470ce
tmpfiles: support the FS_PROJINHERIT_FL chattr flag
2019-03-28 18:43:04 +01:00
Lennart Poettering
8a016c746e
util-lib: when copying files make sure to apply some chattrs early, some late
...
Some chattrs only work sensible if you set them right after opening a
file for create (think: FS_NOCOW_FL). Others only work when they are
applied when the file is fully written (think: FS_IMMUTABLE_FL). Let's
take that into account when copying files and applying a chattr to them.
2019-03-28 18:43:04 +01:00
Lennart Poettering
c3272fd4df
missing: add FS_PROJINHERIT_FL
...
It's available since kernel 4.5, but not in older kernels.
2019-03-28 18:43:04 +01:00
Lennart Poettering
4a66b5c9bf
core: complain and correct /var/run/ → /run/ for listening sockets
...
We already do that for PIDFile= paths, and for tmpfiles.d/ snippets,
let's also do this for .socket paths.
2019-03-28 16:59:57 +01:00
Lennart Poettering
7d2c9c6b50
load-fragment: use TAKE_PTR() where we can
2019-03-28 16:46:27 +01:00