Systemd/src
Lennart Poettering 9c857b9d16 nspawn: when connected to pipes for stdin/stdout, pass them as-is to PID 1
Previously we always invoked the container PID 1 on /dev/console of the
container. With this change we do so only if nspawn was invoked
interactively (i.e. its stdin/stdout was connected to a TTY). In all other
cases we directly pass through the fds unmodified.

This has the benefit that nspawn can be added into shell pipelines.

https://bugs.freedesktop.org/show_bug.cgi?id=87732
2015-02-18 23:36:20 +01:00
..
ac-power treewide: no need to negate errno for log_*_errno() 2014-11-28 13:29:21 +01:00
activate treewide: another round of simplifications 2014-11-28 19:57:32 +01:00
analyze Transpose args in strv_fnmatch() to be more oo 2015-02-16 14:04:36 -05:00
ask-password include <poll.h> instead of <sys/poll.h> 2015-02-12 20:47:38 +01:00
backlight backlight: let udev properties override clamping 2015-02-02 17:18:40 +01:00
binfmt treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
boot systemd-boot: fix alignment of version in table 2015-02-18 22:19:17 +01:00
bootchart bootchart: display each CPU utilization/wait 2015-02-14 10:25:03 -05:00
bus-proxyd bus-proxy: be more verbose if messages cannot be forwarded 2015-02-14 19:01:21 +01:00
cgls util: rework strappenda(), and rename it strjoina() 2015-02-03 02:05:59 +01:00
cgroups-agent treewide: no need to negate errno for log_*_errno() 2014-11-28 13:29:21 +01:00
cgtop treewide: no need to negate errno for log_*_errno() 2014-11-28 13:29:21 +01:00
compat-libs #pragma once here and there 2015-01-23 09:30:44 -05:00
console Move DEFINE_TRIVIAL_CLEANUP_FUNC to macro.h 2015-01-18 19:06:48 -05:00
core everywhere: remove configurability of sysv runlevel to target mapping 2015-02-18 20:20:14 +01:00
cryptsetup util: rework strappenda(), and rename it strjoina() 2015-02-03 02:05:59 +01:00
dbus1-generator util: rework strappenda(), and rename it strjoina() 2015-02-03 02:05:59 +01:00
debug-generator treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
delta delta: fix output alignment of [REDIRECTED] entries 2014-12-14 12:54:17 -05:00
detect-virt treewide: no need to negate errno for log_*_errno() 2014-11-28 13:29:21 +01:00
efi-boot-generator util: rework strappenda(), and rename it strjoina() 2015-02-03 02:05:59 +01:00
escape Unify parse_argv style 2014-08-03 21:46:07 -04:00
firstboot util: rework strappenda(), and rename it strjoina() 2015-02-03 02:05:59 +01:00
fsck Connect to plymouth and support cancellation of in progress fsck 2015-02-18 16:33:46 +01:00
fsckd Translate fsckd messages for plymouth 2015-02-18 16:33:46 +01:00
fstab-generator util: rework strappenda(), and rename it strjoina() 2015-02-03 02:05:59 +01:00
getty-generator util: rework strappenda(), and rename it strjoina() 2015-02-03 02:05:59 +01:00
gpt-auto-generator util: rework strappenda(), and rename it strjoina() 2015-02-03 02:05:59 +01:00
gudev gudev: replace regex with sym file 2014-06-21 16:25:15 +02:00
hibernate-resume treewide: another round of simplifications 2014-11-28 19:57:32 +01:00
hostname logind: open up most bus calls for unpriviliged processes, using PolicyKit 2015-02-18 12:55:25 +01:00
hwdb hwdb: adjust --help text to be more like other --help texts 2015-02-12 13:17:08 +01:00
import shared: introduce cmsg_close_all() call 2015-02-18 19:42:24 +01:00
initctl everywhere: remove configurability of sysv runlevel to target mapping 2015-02-18 20:20:14 +01:00
journal include <poll.h> instead of <sys/poll.h> 2015-02-12 20:47:38 +01:00
journal-remote journal-remote: fix client_cert memory leak 2015-02-17 10:36:57 +01:00
kernel-install kernel-install/90-loaderentry.install: fix cmdline parsing 2014-11-01 14:39:48 -04:00
libsystemd logind: open up most bus calls for unpriviliged processes, using PolicyKit 2015-02-18 12:55:25 +01:00
libsystemd-network Transpose args in strv_fnmatch() to be more oo 2015-02-16 14:04:36 -05:00
libsystemd-terminal util: rework strappenda(), and rename it strjoina() 2015-02-03 02:05:59 +01:00
libudev Revert "build-sys: re-add old symbols for abi compat" 2015-02-16 21:22:00 +01:00
locale logind: open up most bus calls for unpriviliged processes, using PolicyKit 2015-02-18 12:55:25 +01:00
login logind: open up most bus calls for unpriviliged processes, using PolicyKit 2015-02-18 12:55:25 +01:00
machine nspawn: when connected to pipes for stdin/stdout, pass them as-is to PID 1 2015-02-18 23:36:20 +01:00
machine-id-commit machine-id-commit: Introduce machine-id-commit binary 2014-12-03 03:41:19 +01:00
machine-id-setup Unify parse_argv style 2014-08-03 21:46:07 -04:00
modules-load treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
network networkd: network - rename ipv6token parser 2015-02-14 00:32:56 +01:00
notify notify,firstboot,analyze,run: trim --help output to 80 lines 2015-01-27 21:48:12 -05:00
nspawn nspawn: when connected to pipes for stdin/stdout, pass them as-is to PID 1 2015-02-18 23:36:20 +01:00
nss-myhostname nss-myhostname: always will in canonical hostname field when resolving addresses to hostnames 2015-01-05 16:24:41 +01:00
nss-mymachines nss: remove dead code 2014-09-19 00:15:39 +02:00
nss-resolve sd-bus: move common errors src/shared/bus-errors.h → src/libsystemd/sd-bus/bus-common-errors.h 2014-12-10 19:07:48 +01:00
path treewide: yet more log_*_errno + return simplifications 2014-11-28 18:56:16 +01:00
python-systemd python-systemd: avoid hitting assert in __exit__ 2014-10-14 08:35:16 -04:00
quotacheck delta: diff returns 1 when files differ, ignore this 2014-11-29 11:10:51 -05:00
random-seed random-seed: avoid errors when we cannot write random-seed file 2015-01-17 11:55:14 +01:00
rc-local-generator treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
remount-fs treewide: use log_*_errno whenever %m is in the format string 2014-11-28 19:49:27 +01:00
reply-password include <poll.h> instead of <sys/poll.h> 2015-02-12 20:47:38 +01:00
resolve include <poll.h> instead of <sys/poll.h> 2015-02-12 20:47:38 +01:00
resolve-host sd-bus: move common errors src/shared/bus-errors.h → src/libsystemd/sd-bus/bus-common-errors.h 2014-12-10 19:07:48 +01:00
rfkill rfkill: rework how we generate file names from rfkill devices 2014-12-03 02:04:55 +01:00
run nspawn: when connected to pipes for stdin/stdout, pass them as-is to PID 1 2015-02-18 23:36:20 +01:00
shared nspawn: when connected to pipes for stdin/stdout, pass them as-is to PID 1 2015-02-18 23:36:20 +01:00
shutdownd shared: introduce cmsg_close_all() call 2015-02-18 19:42:24 +01:00
sleep Implement masking and overriding of generators 2015-01-11 18:17:33 -05:00
socket-proxy treewide: another round of simplifications 2014-11-28 19:57:32 +01:00
sysctl sysctl: consider --prefix while parsing the files 2015-02-07 12:19:37 -05:00
system-update-generator util: rework strappenda(), and rename it strjoina() 2015-02-03 02:05:59 +01:00
systemctl everywhere: remove configurability of sysv runlevel to target mapping 2015-02-18 20:20:14 +01:00
systemd sd-bus: allow setting a per-connection default value for the "allow-interactive-authentication" message flag 2015-02-18 11:43:18 +01:00
sysusers util: rework strappenda(), and rename it strjoina() 2015-02-03 02:05:59 +01:00
sysv-generator everywhere: remove configurability of sysv runlevel to target mapping 2015-02-18 20:20:14 +01:00
test test: utf8 - fix utf16 tests on BE machines 2015-02-18 15:23:23 +01:00
timedate logind: open up most bus calls for unpriviliged processes, using PolicyKit 2015-02-18 12:55:25 +01:00
timesync timesync: Use UINT64_C for OFFSET_1900_1970 2015-02-16 18:43:47 +01:00
tmpfiles tmpfiles: Fix parse_acl error message 2015-02-17 12:47:51 +01:00
tty-ask-password-agent include <poll.h> instead of <sys/poll.h> 2015-02-12 20:47:38 +01:00
udev shared: introduce cmsg_close_all() call 2015-02-18 19:42:24 +01:00
update-done tmpfiles: add new line type 'v' for creating btrfs subvolumes 2014-12-28 02:08:40 +01:00
update-utmp everywhere: remove configurability of sysv runlevel to target mapping 2015-02-18 20:20:14 +01:00
vconsole treewide: sanitize loop_write 2014-12-09 21:36:08 -05:00
.gitignore
Makefile