Lennart Poettering
47eae6ce0c
socket-util: add recvmsg_safe() wrapper that handles MSG_CTRUNC
2020-04-23 09:40:56 +02:00
Zbigniew Jędrzejewski-Szmek
73781de41f
Merge pull request #15530 from ssahani/lpr-dhcpv4-option-9
...
network: add support to DHCPv4 server/client option 9 LPR
2020-04-23 09:10:14 +02:00
Daan De Meyer
0076098b0a
sd-bus: Add sd_bus_message_get_error/errno docs
2020-04-23 08:57:39 +02:00
Daan De Meyer
570f92c691
sd-bus: Add sd_bus_get/set_allow_interactive_authorization docs
2020-04-23 08:53:27 +02:00
Zbigniew Jędrzejewski-Szmek
9786b27cbb
Merge pull request #15546 from poettering/pid1-serialize-comand-fix
...
core: make sure to restore the control command id, too
2020-04-23 08:51:58 +02:00
Zbigniew Jędrzejewski-Szmek
4ee40eefce
Merge pull request #15516 from poettering/nspawn-resolv-conf
...
beef up --resolv-conf= options of systemd-nspawn
2020-04-23 08:01:46 +02:00
Lennart Poettering
81d2fe53fc
nspawn: some minor modernizations
2020-04-23 07:59:26 +02:00
Niklas Hambüchen
69123c218c
man: Fix typo "multiplied with" -> "multiplied by"
2020-04-23 07:56:28 +02:00
Daan De Meyer
e8c47f7370
sd-bus: Add sd_bus_message_at_end docs
2020-04-22 23:42:03 +02:00
Zbigniew Jędrzejewski-Szmek
bbdeb2b5e9
Merge pull request #15517 from DaanDeMeyer/sd-bus-monitor-docs
...
sd-bus: Add sd_bus_set/is_monitor docs
2020-04-22 23:38:37 +02:00
Zbigniew Jędrzejewski-Szmek
1943d50e4e
Merge pull request #15507 from poettering/bus-log-api
...
add generic bus interface for setting log level that can be implemented by any daemon
2020-04-22 23:30:09 +02:00
Lennart Poettering
e8cf09b2a2
core: make sure we don't get confused when setting TERM for a tty fd
...
Fixes : #15344
2020-04-22 22:59:41 +02:00
Lennart Poettering
60e16d20a3
man: document that VirtualEthernetExtra= has nothing to do with Bridge=
...
Fixes : #15402
2020-04-22 22:34:52 +02:00
Lennart Poettering
e9da62b18a
core: make sure to restore the control command id, too
...
Fixes : #15356
2020-04-22 20:34:02 +02:00
Lennart Poettering
5b99bd5fd4
core: some minor clean-ups/modernizations
2020-04-22 20:33:57 +02:00
Lennart Poettering
e309b929ba
man: document the new --resolv-conf= options
2020-04-22 19:38:04 +02:00
Lennart Poettering
86775e3524
nspawn: beef up --resolve-conf= modes
...
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
2020-04-22 19:38:04 +02:00
Lennart Poettering
082814743f
resolve: move resolv.conf path definitions to shared header
...
That way we can use it from nspawn.
2020-04-22 19:38:04 +02:00
Susant Sahani
828e653c48
networkctl: Add support to display LPR servers
2020-04-22 14:50:27 +02:00
Susant Sahani
d64cc72e80
sd-network: Add support to retrive LPR servers
2020-04-22 14:49:52 +02:00
Susant Sahani
d361b3730a
network: Add support send and receive LPR servers
2020-04-22 14:49:27 +02:00
Susant Sahani
50018bfa84
sd-network: DHCPv4 Add support to send and receive LPR servers.
2020-04-22 14:48:11 +02:00
Zbigniew Jędrzejewski-Szmek
eecf4f7e04
Merge pull request #15526 from bluca/start_stop_wait_debug
...
Add debug log when a job in the activation queue is not runnable
2020-04-22 14:24:07 +02:00
Luca Boccassi
c03fbd37d6
core: 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.
2020-04-22 09:58:12 +01:00
Zbigniew Jędrzejewski-Szmek
9df91db5e0
Merge pull request #15519 from DaanDeMeyer/sd-bus-message-read-strv-docs
2020-04-22 09:44:27 +02:00
Frantisek Sumsal
80b44b38b5
test: correctly clean up test artifacts
...
Remove the artifact files indicating test result (testok, failed, and
skipped) just before running the test so we always get the latest and
most relevant result instead of incorrectly consuming previous results.
Discovered in https://github.com/systemd/systemd/pull/15378#issuecomment-616801873
2020-04-22 08:57:38 +02:00
Balaji Punnuru
f6f4f5fe53
util: return the correct correct wd from inotify helpers
...
We need to propagate the acquired watch descriptors because our callers
are counting on them.
[Lennart: this is split out of #15381 and simplified]
2020-04-22 08:57:17 +02:00
Lennart Poettering
df3d3bdfe8
core: minor error code handling fixes
2020-04-22 08:56:05 +02:00
Daan De Meyer
42f5c9a335
sd-bus: Clarify sd_bus_list_names results ownership
2020-04-22 08:42:50 +02:00
Daan De Meyer
e5f1a3faab
sd-bus: Add sd_bus_message_read_strv docs
2020-04-22 08:42:29 +02:00
Zbigniew Jędrzejewski-Szmek
2807b68019
Merge pull request #15520 from mrc0mmand/various-codebase-improvements
...
tree-wide: various codebase improvements
2020-04-22 08:41:38 +02:00
Zbigniew Jędrzejewski-Szmek
a00f28c554
Merge pull request #15443 from ddstreet/use_gateway_backwards_compatible
...
Make UseGateway= default backwards compatible, and fix UseGateway/RoutesToDNS
2020-04-22 08:39:46 +02:00
Dan Streetman
06c2b0c76b
test: verify RoutesToDNS= is independent of UseGateway=
2020-04-21 17:21:37 -04:00
Frantisek Sumsal
86b52a3958
tree-wide: fix spelling errors
...
Based on a report from Fossies.org using Codespell.
Followup to #15436
2020-04-21 23:21:08 +02:00
Frantisek Sumsal
e4ff03935c
tree-wide: formatting tweaks reported by Coccinelle
2020-04-21 23:21:04 +02:00
Dan Streetman
244490f5e0
network: honor SetDNSRoutes= even if UseGateway=False
2020-04-21 17:15:07 -04:00
Dan Streetman
7c0d36ff5f
test: modify/add tests for UseRoutes= and UseGateway= configuration
...
The last commit changed the UseGateway= default to the value of UseRoutes=
so the tests need to check for all combinations of the two parameters.
2020-04-21 17:15:02 -04:00
Dan Streetman
589397a277
network: change UseGateway= default to UseRoutes= setting
...
Anyone previously using the UseRoutes=false parameter expected their
dhcp4-provided gateway route to be ignored, as well. However, with
the introduction of the UseGateway= parameter, this is no longer true.
In order to keep backwards compatibility, this sets the UseGateway=
default value to whatever UseRoutes= has been set to.
2020-04-21 16:56:48 -04:00
Daan De Meyer
f74067dfbd
sd-bus: Add sd_bus_list_names docs
2020-04-21 22:20:54 +02:00
Frantisek Sumsal
ff3518f1f4
test: drop Disk (Size|Free|Floor|Ceiling) fields prior comparing
...
The disk attributes can take some time to update on certain filesystems,
so let's strip them from inputs of both `homectl` and `userdbctl` before
comparing them to avoid unexpected fails.
Also, switch from `cmp` to `diff` to make a potential test fail a bit more
debuggable.
Fixes : #14755
2020-04-21 22:09:35 +02:00
Lennart Poettering
c5ca6d9076
update TODO
2020-04-21 21:23:01 +02:00
Daan De Meyer
0eb5b641c5
sd-bus: Add sd_bus_set/is_monitor docs
2020-04-21 19:33:25 +02:00
Daan De Meyer
7fffaafaf2
sd-bus: Rewrap sd_bus_set_server docs at 109 columns
2020-04-21 19:08:25 +02:00
Luca Boccassi
c5bc2c01ee
core: add log_get_max_level check optimization in log_unit_full
...
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.
2020-04-21 18:05:24 +01:00
Lennart Poettering
893f801d67
core: implement generic log control API in PID1 too
...
It has slightly different setters in place, so it needs some special
love, which is easy enough though.
2020-04-21 17:08:23 +02:00
Lennart Poettering
25141692e9
core: use generic implementations of log level/target bus propertier getters
...
The setters are slightly different, hence keep them as they are for now.
2020-04-21 17:08:23 +02:00
Lennart Poettering
ac9f55ed40
tree-wide: implement new log control API dbus interface in all our daemons
2020-04-21 17:08:16 +02:00
Lennart Poettering
4c4520789d
resolved: replace private log level control API with generic one
...
The property was just added, let's replace it again. Given that it was
never released this should not be an API breakage.
2020-04-21 17:08:02 +02:00
Lennart Poettering
052740e2e3
log-control-api: add generic D-Bus interface for querying/setting log 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.
2020-04-21 17:07:43 +02:00
Lennart Poettering
33b58dfb41
core: automatically add udev dependency for units using RootImage=
...
We use udev to wait for /dev/loopX devices to be fully proped hence we
need an implicit ordering dependency on it, for RootImage= to work
reliably in early boot, too.
Fixes : #14972
2020-04-21 16:31:06 +02:00