Yu Watanabe [Mon, 14 May 2018 01:02:17 +0000 (10:02 +0900)]
bus-util: add more macros for defining functions of getting dbus properties
Yu Watanabe [Tue, 15 May 2018 11:44:15 +0000 (20:44 +0900)]
sysusers: drop an unused variable
Follow-up for
ec0327d69c260d9a3770e9d722dbdcde996651cc.
Alan Jenkins [Mon, 14 May 2018 14:45:09 +0000 (15:45 +0100)]
service: FileDescriptorStoreMax should also imply NotifyAccess
Commenting out "WatchdogTimeout=3min" in systemd-logind.service causes
NotifyAccess to go from "main" to "none", breaking support for logind
restart. Let's fix that.
Yu Watanabe [Tue, 15 May 2018 08:31:32 +0000 (17:31 +0900)]
bash-completion: add missing options and commands of timedatectl
Follow-up for
6129ec852ee470a3682d55f87852ee7ccabb5520.
Zbigniew Jędrzejewski-Szmek [Tue, 15 May 2018 06:58:33 +0000 (08:58 +0200)]
Merge pull request #8947 from yuwata/meson-0.44
meson: bump minimum required version to 0.44
Lucas Werkmeister [Fri, 11 May 2018 22:00:50 +0000 (00:00 +0200)]
man: fix reference in StandardOutput=
Since StandardOutput=file:path is more similar to StandardInput= than
StandardInputText=, and only StandardInput= is actually documented above
StandardOutput= whereas StandardInputText= is documented below it, I
assume the intention was to refer to the former.
Zbigniew Jędrzejewski-Szmek [Mon, 14 May 2018 06:10:46 +0000 (08:10 +0200)]
Merge pull request #8986 from yuwata/sd-bus-free-and-strdup
several cleanups
Yu Watanabe [Mon, 14 May 2018 05:14:17 +0000 (14:14 +0900)]
test: use _cleanup_hashmap_free_ instread of _cleanup_(hashmap_freep)
Yu Watanabe [Mon, 14 May 2018 05:13:57 +0000 (14:13 +0900)]
core: use _cleanup_set_free_ instread of _cleanup_(set_freep)
Yu Watanabe [Mon, 14 May 2018 05:09:03 +0000 (14:09 +0900)]
sd-bus: use free_and_strdup()
Zbigniew Jędrzejewski-Szmek [Sun, 13 May 2018 17:12:27 +0000 (19:12 +0200)]
Merge pull request #8968 from yuwata/bus-macro-2
bus-util: add several macros for defining functions of getting dbus properties
Yu Watanabe [Sun, 13 May 2018 13:10:48 +0000 (22:10 +0900)]
man: drop a trailing space
Yu Watanabe [Sun, 13 May 2018 13:09:18 +0000 (22:09 +0900)]
test: add tests for unit_name_from_dbus_path()
Zbigniew Jędrzejewski-Szmek [Sun, 13 May 2018 16:43:11 +0000 (18:43 +0200)]
Merge pull request #8962 from floppym/issue8905
basic: timezone_is_valid: check for magic bytes "TZif"
Yu Watanabe [Fri, 11 May 2018 09:29:39 +0000 (18:29 +0900)]
dbus-manager: introduce property_get_{hashmap,set}_size()
Yu Watanabe [Fri, 11 May 2018 09:12:12 +0000 (18:12 +0900)]
dbus-unit: check userdata before obtaining data
Yu Watanabe [Fri, 11 May 2018 09:11:18 +0000 (18:11 +0900)]
dbus-unit: use BUS_DEFINE_PROPERTY_GET* macros
Yu Watanabe [Fri, 11 May 2018 09:10:25 +0000 (18:10 +0900)]
dbus-swap: use BUS_DEFINE_PROPERTY_GET* macros
Yu Watanabe [Fri, 11 May 2018 09:10:03 +0000 (18:10 +0900)]
dbus-socket: use BUS_DEFINE_PROPERTY_GET* macros
Yu Watanabe [Fri, 11 May 2018 09:09:40 +0000 (18:09 +0900)]
dbus-mount: use BUS_DEFINE_PROPERTY_GET* macros
Yu Watanabe [Fri, 11 May 2018 09:09:15 +0000 (18:09 +0900)]
dbus-manager: use BUS_DEFINE_PROPERTY_GET* macros
Yu Watanabe [Fri, 11 May 2018 09:21:04 +0000 (18:21 +0900)]
dbus-execute: use BUS_DEFINE_PROPERTY_GET* macros
Yu Watanabe [Sun, 13 May 2018 03:20:51 +0000 (12:20 +0900)]
bus-util: add several macros for defining functions of getting dbus properties
Mike Gilbert [Sat, 12 May 2018 19:20:13 +0000 (15:20 -0400)]
basic: add log_level argument to timezone_is_valid
Zbigniew Jędrzejewski-Szmek [Sat, 12 May 2018 16:58:05 +0000 (18:58 +0200)]
Merge pull request #8959 from yuwata/bash-completion-analyze
bash-completion: update completion for systemd-analyze
Zbigniew Jędrzejewski-Szmek [Sat, 12 May 2018 16:48:58 +0000 (18:48 +0200)]
Merge pull request #8966 from yuwata/bus-resolve-fallback-dns
resolve: add bus property for fallback DNS servers
David Tardon [Fri, 11 May 2018 16:43:40 +0000 (18:43 +0200)]
core: use automatic cleanup more
Mikhail Kasimov [Sat, 12 May 2018 14:02:44 +0000 (17:02 +0300)]
po: uk: fixed missed word
updated uk-translation for 'network time synchronization' construction.
Danylo Korostil [Fri, 11 May 2018 21:16:26 +0000 (00:16 +0300)]
Updated uk translation
Mike Gilbert [Thu, 10 May 2018 19:10:48 +0000 (15:10 -0400)]
basic: timezone_is_valid: check for magic bytes "TZif"
Fixes: https://github.com/systemd/systemd/issues/8905
David Tardon [Wed, 9 May 2018 07:35:52 +0000 (09:35 +0200)]
systemd-analyze: make dump work for large # of units
If there is a large number of units, the size of the generated dump
string can overstep DBus message size limit. So let's pass that string
via a fd.
Philip Withnall [Fri, 11 May 2018 09:58:00 +0000 (10:58 +0100)]
man: Fix a minor typo in systemctl(1)
Signed-off-by: Philip Withnall <withnall@endlessm.com>
Zbigniew Jędrzejewski-Szmek [Fri, 11 May 2018 09:48:05 +0000 (11:48 +0200)]
Merge pull request #8924 from yuwata/fix-3682
resolve: allow whitespaces in the digest
Zbigniew Jędrzejewski-Szmek [Fri, 11 May 2018 08:40:18 +0000 (10:40 +0200)]
Merge pull request #8961 from yuwata/fix-8960
network: make route_update() accept NULL
Yu Watanabe [Fri, 11 May 2018 07:12:57 +0000 (16:12 +0900)]
resolvectl: show current DNS server only when it is set
Yu Watanabe [Fri, 11 May 2018 07:12:17 +0000 (16:12 +0900)]
resolvectl: show fallback DNS servers by status command
Yu Watanabe [Fri, 11 May 2018 07:03:17 +0000 (16:03 +0900)]
resolve: introduce FallbackDNS bus property
This also makes DNS bus property not include the fallback DNS servers.
Yu Watanabe [Fri, 11 May 2018 06:43:04 +0000 (15:43 +0900)]
network: make route_update() accept NULL
This also fixes a wrong argument for route_configure().
Fixes #8960.
Yu Watanabe [Fri, 11 May 2018 03:36:15 +0000 (12:36 +0900)]
network: fix indentation
Lennart Poettering [Thu, 10 May 2018 18:29:11 +0000 (11:29 -0700)]
tmpfiles: remove newline that shouldn't be there
We should really keep "else" branches together with their "if", hence
drop the double newline here...
Lennart Poettering [Thu, 10 May 2018 18:28:33 +0000 (11:28 -0700)]
terminal-util: add a function that shows a pretty separator line
Follow-up for #8824
Yu Watanabe [Fri, 11 May 2018 06:01:35 +0000 (15:01 +0900)]
test: do not call alloca() inside the list of arguments
Lennart Poettering [Fri, 11 May 2018 05:51:17 +0000 (22:51 -0700)]
Merge pull request #8953 from yuwata/bus-macro
core: simplify dbus properties
Yu Watanabe [Thu, 10 May 2018 14:17:50 +0000 (23:17 +0900)]
test-execute: remove state directories before running tests
Fixes #8679.
Yu Watanabe [Thu, 10 May 2018 15:17:38 +0000 (00:17 +0900)]
units: set RestrictNamespaces=yes to networkd and resolved
Closes #8949.
Yu Watanabe [Fri, 11 May 2018 05:44:03 +0000 (14:44 +0900)]
sd-dhcp: drop deserialize_dhcp_option() as it is equivalent to unhexmem()
Yu Watanabe [Wed, 9 May 2018 03:50:27 +0000 (12:50 +0900)]
resolve: allow whitespaces in the DS digest or DNSKEY key data
Fixes #3682.
Yu Watanabe [Fri, 11 May 2018 04:56:28 +0000 (13:56 +0900)]
hexdecoct: drop an unnecessary check
Yu Watanabe [Fri, 11 May 2018 04:55:28 +0000 (13:55 +0900)]
basic: fix comment style
Yu Watanabe [Fri, 11 May 2018 05:36:22 +0000 (14:36 +0900)]
hexdecoct: ignore whitespace within the input hexadecimal text of unhexmem()
Joost Heitbrink [Thu, 10 May 2018 13:28:10 +0000 (15:28 +0200)]
test: add testcase for environment file variables with backslashes
systemd silently strips out backslashes in variables from environment
files. Add a testcase that explicitly tests for this behaviour.
Yu Watanabe [Fri, 11 May 2018 03:42:46 +0000 (12:42 +0900)]
Merge pull request #8964 from MikhailKasimov/patch-2
man: systemd-journal-upload: rsa 2048
Mikhail Kasimov [Thu, 10 May 2018 23:43:00 +0000 (02:43 +0300)]
Update systemd-journal-upload.service.xml
Security note on 2048 bits is added.
Mikhail Kasimov [Thu, 10 May 2018 23:17:27 +0000 (02:17 +0300)]
man: systemd-journal-upload: rsa 2048
rsa:2048 is currently in use as minimal recommended key length on cert/key generating. Specifying rsa:1024 is not recommended for security reasons.
Yu Watanabe [Thu, 10 May 2018 19:11:56 +0000 (04:11 +0900)]
bash-completion: analyze: support cat-config verb
Follow-up for
854a42fb2e9db1b9eaa381559d7671f2e9b3a0f1.
Yu Watanabe [Thu, 10 May 2018 18:33:55 +0000 (03:33 +0900)]
bash-completion: analyze: add --no-pager for some verbs
Lennart Poettering [Thu, 10 May 2018 18:14:23 +0000 (11:14 -0700)]
Merge pull request #8824 from keszybz/analyze-show-config
systemd-analyze show-config
Lennart Poettering [Tue, 24 Apr 2018 15:50:01 +0000 (17:50 +0200)]
mtd: some basic code cleanups
While looking at our exit() invocations I noticed that the mtd_probe
stuff uses 'exit(-1)' at various places, which is not really a good
idea, as exit codes of processes on Linux are supposed to be in the
range of 0…255.
This patch cleans that up a bit, and fixes a number of other things:
1. Let's always let main() exit, nothing intermediary. We generally
don't like code that invokes exit() on its own.
2. Close the file descriptors opened.
3. Some logging for errors is added, mostly on debug level.
Please review this with extra care. As I don't have the right hardware
to test this patch I only did superficial testing.
Susant Sahani [Sun, 29 Apr 2018 04:02:22 +0000 (09:32 +0530)]
Networkd tests: add bridge link properties to test
Test the "[Bridge]" section keys
```
[Bridge]
UnicastFlood=true
HairPin=true
UseBPDU=true
FastLeave=true
AllowPortToBeRoot=true
Cost=555
Priority=23
```
```
test_bridge_init (__main__.BridgeTest) ... ok
test_bridge_port_priority (__main__.BridgeTest) ... ok
test_bridge_port_priority_set_zero (__main__.BridgeTest)
It should be possible to set the bridge port priority to 0 ... ok
test_bridge_port_property (__main__.BridgeTest)
Test the "[Bridge]" section keys ... ok
```
Mikhail Kasimov [Thu, 10 May 2018 16:58:12 +0000 (19:58 +0300)]
man: journal-gatewayd.service: links on {rem,upl}
While set of systemd-journal-{gatewayd,remote,upload}.service services presents single subsystem on journald logs network transmission, systemd-journal-gatewayd.service description should also contain links to other parts of this subsystem: systemd-journal-remote.service and systemd-journal-upload.service.
Yu Watanabe [Thu, 10 May 2018 16:55:46 +0000 (01:55 +0900)]
string-util: rename strdash_if_empty() to empty_to_dash()
Yu Watanabe [Thu, 10 May 2018 16:47:33 +0000 (01:47 +0900)]
path-util: introduce empty_to_root() and use it many places
Yu Watanabe [Thu, 10 May 2018 16:41:06 +0000 (01:41 +0900)]
core: merge duplicated functions
Yu Watanabe [Thu, 10 May 2018 16:22:49 +0000 (01:22 +0900)]
core: send NULL instead of empty string
Yu Watanabe [Thu, 10 May 2018 15:39:52 +0000 (00:39 +0900)]
core: use offsetof() for Syslog{Level,Facility} dbus properties
Zbigniew Jędrzejewski-Szmek [Thu, 10 May 2018 15:23:40 +0000 (17:23 +0200)]
Merge pull request #8950 from dtardon/cleanup
use automatic cleanup more
Zbigniew Jędrzejewski-Szmek [Thu, 10 May 2018 07:01:22 +0000 (09:01 +0200)]
github: use multiple issue templates
Github now has issue templates in the web interface, and allows
more than one to be specified. Let's split our single template
in two: bug report and RFE.
Yu Watanabe [Thu, 10 May 2018 14:22:38 +0000 (23:22 +0900)]
Merge pull request #8943 from keszybz/coverity-fixes
Coverity fixes
Yu Watanabe [Thu, 10 May 2018 14:02:57 +0000 (23:02 +0900)]
core: use bus_property_get_*() functions instead of NULL
David Tardon [Thu, 10 May 2018 13:55:56 +0000 (15:55 +0200)]
sd-bus: use automatic cleanup more
Yu Watanabe [Thu, 10 May 2018 13:36:13 +0000 (22:36 +0900)]
core: drop property_get_syscall_errno()
Yu Watanabe [Thu, 10 May 2018 13:31:47 +0000 (22:31 +0900)]
core: drop property_get_{capability_bounding_set,ambient_capabilities}()
Yu Watanabe [Thu, 10 May 2018 13:26:59 +0000 (22:26 +0900)]
core: use BUS_DEFINE_PROPERTY_GET_ENUM() macro
Yu Watanabe [Thu, 10 May 2018 13:26:27 +0000 (22:26 +0900)]
core: drop 'bus_' prefix from bus_property_get_protect_{home,system}()
Yu Watanabe [Thu, 10 May 2018 13:25:00 +0000 (22:25 +0900)]
core: simplify property_get_cpu_affinity()
David Tardon [Thu, 10 May 2018 12:10:53 +0000 (14:10 +0200)]
basic: use automatic cleanup more
David Tardon [Thu, 10 May 2018 12:08:35 +0000 (14:08 +0200)]
basic: use automatic cleanup more
David Tardon [Thu, 10 May 2018 12:04:30 +0000 (14:04 +0200)]
basic: use automatic cleanup more
David Tardon [Thu, 10 May 2018 11:42:36 +0000 (13:42 +0200)]
journal: use automatic cleanup more
Yu Watanabe [Thu, 10 May 2018 05:54:21 +0000 (14:54 +0900)]
doc: mention the required minimum version of meson and python
Yu Watanabe [Wed, 2 May 2018 04:56:28 +0000 (13:56 +0900)]
meson: use array type option
Array type option is supported since 0.44.0.
Yu Watanabe [Thu, 10 May 2018 05:50:52 +0000 (14:50 +0900)]
meson: use warning() method
This bumps the required minimum version of meson to 0.44, as
`warning()` method is supported since 0.44.
Yu Watanabe [Thu, 10 May 2018 06:30:42 +0000 (15:30 +0900)]
meson: use get_supported_arguments()
This bumps the required minimum version of meson to 0.43, as
`get_supported_arguments()` is supported since meson-0.43.
Mikhail Kasimov [Thu, 10 May 2018 03:47:03 +0000 (06:47 +0300)]
man: systemd-networkd-wait-online: systemd.service (#8945)
* man: systemd-networkd-wait-online: systemd.service
While service type is mentioned (is a oneshot system service), link on systemd.service is added. 'See Also' section is also updated with link on systemd.service man-page.
Mikhail Kasimov [Thu, 10 May 2018 03:15:55 +0000 (06:15 +0300)]
man: systemd-escape: add missed short keys (#8944)
Added short keys -u and -m for --unescape and --mangle respectively. These short keys are present in systemd-escape --help output and are absent in man systemd-escape page.
Filipe Brandenburger [Thu, 10 May 2018 01:10:07 +0000 (18:10 -0700)]
conf-parser: accept trailing backslash at the end of the file (#8941)
This makes it behave the same whether there is a blank line or not at
the end of the file. This is also consistent with the behavior of the
shell on a shell script that ends on a trailing backslash at the last
line.
Added tests to test_config_parse(), which only pass if the corresponding
change to config_parse() is included.
Mikhail Kasimov [Thu, 10 May 2018 00:18:59 +0000 (03:18 +0300)]
add journal-upload.conf refentrytitle (#8942)
Add journal-upload.conf refentrytitle to have the same format to systemd-journal-remote.service description, which contains refentrytitle on journal-remote.conf in 'See Also' section.
Zbigniew Jędrzejewski-Szmek [Thu, 10 May 2018 00:03:23 +0000 (02:03 +0200)]
core/mount-setup: remove part of check which is always true
k was set to join_controllers at this point and only incremented, so
it cannot be null at this point.
CID #1390949.
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 23:55:05 +0000 (01:55 +0200)]
basic/fs-util: remove logically dead code
We can jump to chase_one from two places. In the first 'todo' is set to
'buffer', which comes from path_make_absolute_cwd() and is nonnull In the
second 'todo' is set to 'joined' which is checked to be nonull a few lines
above the jump. So let's kill the code that deals with null todo there.
CID #1390941.
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 23:49:01 +0000 (01:49 +0200)]
udevadm: fix null dererefence on allocation error
CID #1390936.
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 23:45:20 +0000 (01:45 +0200)]
localed: fix memleak in error path
CID #1390929.
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 23:34:33 +0000 (01:34 +0200)]
logind: fix borked r check
CID #1390947, #1390952.
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 23:22:29 +0000 (01:22 +0200)]
basic/format-table: add missing va_end()
CID #1390930, #1390940.
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 23:16:03 +0000 (01:16 +0200)]
Introduce _cleanup_(strbuf_cleanupp) and use it to fix null deref on error
catalog_update() would call strbuf_cleanup(NULL) on allocation error.
CID #1390928.
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 23:04:53 +0000 (01:04 +0200)]
shared/sleep-config: fix memleak of strv, add test
CID #1390921, #1390951.
Zbigniew Jędrzejewski-Szmek [Wed, 9 May 2018 22:39:36 +0000 (00:39 +0200)]
Merge pull request #8689 from davide125/static
meson: add support for building static libsystemd and libudev
Igor Gnatenko [Wed, 9 May 2018 18:55:26 +0000 (20:55 +0200)]
Merge pull request #8939 from yuwata/fix-comment
several cleanups
Yu Watanabe [Wed, 9 May 2018 15:59:47 +0000 (00:59 +0900)]
timedate: use free_and_strdup()
Yu Watanabe [Wed, 9 May 2018 15:34:46 +0000 (00:34 +0900)]
tree-wide: use strv_free_and_replace() macro
Yu Watanabe [Wed, 9 May 2018 13:50:07 +0000 (22:50 +0900)]
time-util: fix indentation for comments