Systemd/src/nspawn
Zbigniew Jędrzejewski-Szmek 37cbc1d579 When mangling names, optionally emit a warning (#8400)
The warning is not emitted for absolute paths like /dev/sda or /home, which are
converted to .device and .mount unit names without any fuss.

Most of the time it's unlikely that users use invalid unit names on purpose,
so let's warn them. Warnings are silenced when --quiet is used.

$ build/systemctl show -p Id hello@foo-bar/baz
Invalid unit name "hello@foo-bar/baz" was escaped as "hello@foo-bar-baz" (maybe you should use systemd-escape?)
Id=hello@foo-bar-baz.service

$ build/systemd-run --user --slice foo-bar/baz --unit foo-bar/foo true
Invalid unit name "foo-bar/foo" was escaped as "foo-bar-foo" (maybe you should use systemd-escape?)
Invalid unit name "foo-bar/baz" was escaped as "foo-bar-baz" (maybe you should use systemd-escape?)
Running as unit: foo-bar-foo.service

Fixes #8302.
2018-03-21 15:26:47 +01:00
..
meson.build Add license headers and SPDX identifiers to meson.build files 2017-11-19 19:08:15 +01:00
nspawn-cgroup.c nspawn: when in hybrid mode, chown() both the legacy and the unified hierarchy to the root in the container 2017-12-05 13:49:13 +01:00
nspawn-cgroup.h nspawn: when in hybrid mode, chown() both the legacy and the unified hierarchy to the root in the container 2017-12-05 13:49:13 +01:00
nspawn-def.h build-sys: make the dynamic UID range, and the container UID range configurable 2017-12-06 12:55:37 +01:00
nspawn-expose-ports.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn-expose-ports.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn-gperf.gperf tree-wide: adjust fall through comments so that gcc is happy 2017-11-20 13:06:25 -08:00
nspawn-mount.c tree-wide: use reallocarray instead of our home-grown realloc_multiply (#8279) 2018-02-26 21:20:00 +01:00
nspawn-mount.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn-network.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn-network.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn-patch-uid.c tree-wide: make use of new STRLEN() macro everywhere (#7639) 2017-12-14 19:02:29 +01:00
nspawn-patch-uid.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn-register.c When mangling names, optionally emit a warning (#8400) 2018-03-21 15:26:47 +01:00
nspawn-register.h nspawn: make use of the RequestStop logic of scope units 2017-11-23 21:47:48 +01:00
nspawn-seccomp.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn-seccomp.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn-settings.c Replace free and reassignment with free_and_replace 2017-11-24 10:33:41 +00:00
nspawn-settings.h log: minimize includes in log.h 2018-01-11 14:44:31 +01:00
nspawn-setuid.c tree-wide: port various places over to use new rearrange_stdio() 2018-03-02 11:42:10 +01:00
nspawn-setuid.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn-stub-pid1.c tree-wide: introduce new safe_fork() helper and port everything over 2017-12-25 11:48:21 +01:00
nspawn-stub-pid1.h Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
nspawn.c dissect: add dissect_image_and_warn() that unifies error message generation for dissect_image() (#8517) 2018-03-21 12:10:01 +01:00
test-patch-uid.c Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00