Zbigniew Jędrzejewski-Szmek
094eecd29d
Merge pull request #12055 from poettering/save-argc-argv
...
main-func.h and systemctl argc/argv improvements
2019-03-22 16:58:18 +01:00
Zbigniew Jędrzejewski-Szmek
4210e60eb6
Merge pull request #12072 from poettering/string-table-fixes
...
three small string table fixes
2019-03-22 16:49:56 +01:00
Zbigniew Jędrzejewski-Szmek
9b89e602ea
NEWS: prepare for v242
2019-03-22 15:38:53 +01:00
Evgeny Vereshchagin
53294d9496
network: add missing nulstr terminator
...
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13821
2019-03-22 13:25:42 +01:00
Lennart Poettering
c425c7c245
dbus-execute: don't needlessly override error code
2019-03-22 12:25:16 +01:00
Lennart Poettering
b1ea85dc08
dbus-execute: lets use exec_directory_type_from_string() to simplify things
2019-03-22 12:25:03 +01:00
Lennart Poettering
0f4b93c4b5
udev: use string_table_lookup() where we can
2019-03-22 12:21:12 +01:00
Lennart Poettering
63c691c648
string-table: use string_table_lookup() in our own macros everywhere
2019-03-22 12:21:12 +01:00
Franck Bui
8238423095
meson: add libseccomp as a nspawn dep ( #12067 )
...
Due to this specific change: d0b6a10#diff-0203416587516c224c8fcfe8129e7caeR8,
systemd-nspawn uses libseccomp now if it is available. We we need to pass -I/usr/include
/libseccomp (or wherever seccomp.h is located) when compiling systemd-nspawn because
nspawn-settings.h does #include <seccomp.h>.
Fixes : #12060
2019-03-22 11:09:08 +01:00
Lennart Poettering
ae408d77a9
nspawn: conditionalize libseccomp use
...
We support compilation without libseccomp, hence don't rely on its
symbols.
2019-03-22 11:07:03 +01:00
Yu Watanabe
3f4c9bc04c
Merge pull request #12066 from yuwata/fix-network-tunnel-12041
...
network: fix netdev_tunnel_verify()
2019-03-22 05:57:38 +09:00
Zbigniew Jędrzejewski-Szmek
2615de9d79
hwdb: make ids_parser.py compatible with pyparsing-2.3.0+
...
https://github.com/pyparsing/pyparsing/blob/master/CHANGES#L175
says something about fixing erroneously created levels in the hierarchy.
I don't have the faintest idea what this means, but with the change in
this patch we generate output that is unchanged from pre-2.3.0 versions.
Tested with python3-pyparsing-2.3.1-1.fc30.noarch and
python3-pyparsing-2.2.0-3.fc29.noarch.
Fixes #12021 .
2019-03-21 20:10:57 +01:00
Yu Watanabe
8643885f58
man: mention that Tunnel.Local= and Tunnel.Remote= can take 'any'
2019-03-22 03:31:55 +09:00
Yu Watanabe
d653a35919
man: do not wrap line in the table
2019-03-22 03:31:55 +09:00
Yu Watanabe
6a97a86489
test-network: add more tests for tunneling devices
2019-03-22 03:31:50 +09:00
Lennart Poettering
e947830460
Merge pull request #12046 from keszybz/simplify-invocation-id-check
...
sd-id128: look for invocation id in environment first, keyring second
2019-03-21 19:15:49 +01:00
Yu Watanabe
b239288f72
Merge pull request #11931 from yuwata/condition-test-list
...
split static condition tests from net_match_config()
2019-03-22 02:30:57 +09:00
Zbigniew Jędrzejewski-Szmek
59b44cc3b1
Merge pull request #12020 from mrc0mmand/test-functions-interactive-debug
...
test: test-functions improvements for debugging
2019-03-21 18:15:04 +01:00
Lennart Poettering
8d1ee64829
systemctl: make a copy of the "verb" from argv[] before forking off a child
2019-03-21 18:10:06 +01:00
Lennart Poettering
a0c6f3cb66
main-func: make sure we destruct memory and stuff last
...
Let's terminate pagers and agents before releasing all memory.
2019-03-21 18:10:06 +01:00
Lennart Poettering
290cb8e883
systemctl: tiny optimization
2019-03-21 18:10:06 +01:00
Lennart Poettering
b1dffbb91b
systemctl: add missing OOM check
2019-03-21 18:10:06 +01:00
Lennart Poettering
3483460cb8
systemctl: document argv[] array
2019-03-21 18:10:06 +01:00
Lennart Poettering
d86e4c979a
systemctl: use saved_argv where we can
...
No need to have another variable where we keep the original argv[].
Let's juse reuse the one DEFINE_MAIN_FUNCTION() stores for us anyway.
2019-03-21 18:10:06 +01:00
Lennart Poettering
60ffa37a65
main-func: implicitly save argc/argv in DEFINE_MAIN_FUNCTION() functions
...
Let's remove the risk of forgetting to save argc/argv if
DEFINE_MAIN_FUNCTION() is used.
2019-03-21 18:10:06 +01:00
Lennart Poettering
36fea15565
util: introduce save_argc_argv() helper
2019-03-21 18:08:56 +01:00
Lennart Poettering
c82cfae00b
Merge pull request #12062 from poettering/nspawn-main-func
...
nspawn: port to DEFINE_MAIN_FUNCTION()
2019-03-21 18:08:27 +01:00
Yu Watanabe
bb9683e096
network: fix netdev_tunnel_verify()
...
Fixes #12041 .
2019-03-22 01:47:38 +09:00
Zbigniew Jędrzejewski-Szmek
bb068de080
nspawn: add --no-pager switch
...
It only matters for --help.
2019-03-21 17:42:43 +01:00
Zbigniew Jędrzejewski-Szmek
9dd6ccf7c0
Merge pull request #12014 from poettering/systemctl-exit-fix
...
systemctl fallback error propagation fix
2019-03-21 17:37:09 +01:00
Zbigniew Jędrzejewski-Szmek
05a8a7a0fb
Merge pull request #12052 from poettering/systemctl-fixlets
...
systemctl refactorings
2019-03-21 17:33:44 +01:00
Zbigniew Jędrzejewski-Szmek
c8c194a982
Merge pull request #12057 from poettering/chown-tty
...
chown TTY back to root:tty after a service terminates that used them
2019-03-21 17:31:19 +01:00
Lennart Poettering
04f590a4a4
nspawn: voidify sd_notify() calls
2019-03-21 16:32:46 +01:00
Lennart Poettering
6145bb4f78
nspawn: port to static destructors
2019-03-21 16:32:46 +01:00
Lennart Poettering
44dbef90f1
nspawn: port to main-func.h logic
2019-03-21 16:32:46 +01:00
Yu Watanabe
d689bbcaa3
man: mention that conditions in [Match] section support negation
2019-03-21 23:38:51 +09:00
Yu Watanabe
1cdca39752
man: use literal tag
2019-03-21 23:38:51 +09:00
Yu Watanabe
c4f58deab5
network,udev: split static condition tests from net_match_config()
2019-03-21 23:37:39 +09:00
Yu Watanabe
2bd0da7a05
network: drop unnecessary strdup()
2019-03-21 23:37:39 +09:00
Yu Watanabe
f9f88198ce
core/unit: use condition_test_list()
2019-03-21 23:37:39 +09:00
Yu Watanabe
828fa6108b
condition: introduce condition_test_list()
2019-03-21 23:37:39 +09:00
Yu Watanabe
f6d6d53237
log: expose log_object_internalv()
2019-03-21 23:37:39 +09:00
Zbigniew Jędrzejewski-Szmek
fa28e4e377
Merge pull request #12059 from poettering/nspawn-typos
...
some typo and other fixes result of the OCI nspawn merge
2019-03-21 15:14:11 +01:00
Zbigniew Jędrzejewski-Szmek
b1de39dec8
man: make separate "Errors" sections subsection of "Return value"
...
Logically, this is better, because we're describing a subset of possible
return values. Visually this also looks quite good because groff renders
refsect2 much less prominently.
Also rewrap things, add <constant> in various places, fix some typos.
2019-03-21 14:53:00 +01:00
Zbigniew Jędrzejewski-Szmek
6d99c5d1d9
man: document error values for sd_id128_get_*()
2019-03-21 14:13:02 +01:00
Lennart Poettering
c3d13d2ad5
Merge pull request #12058 from keszybz/oci-simplifications
...
Follow-ups for nspawn-oci review
2019-03-21 13:55:09 +01:00
Lennart Poettering
f4e803c809
nspawn: add a few missing flags from --help text
2019-03-21 13:31:09 +01:00
Lennart Poettering
d99058c979
man: adjust nspawn man page to follow same section/order as --help text
...
No other changes, just some reshuffling and adding of section headers
(well, admittedly, I changed some "see above" and "see below" in the
text to match the new order.)
2019-03-21 13:27:48 +01:00
Lennart Poettering
2514865391
nspawn: reorder --help text, and add section
...
The list is so long, let's add a bit of structure and order things a
bit.
2019-03-21 13:27:19 +01:00
Lennart Poettering
2c9b7a7e62
mount: when we fail to establish an inaccessible mount gracefully, undo the mount
2019-03-21 12:41:02 +01:00