Merge pull request #2120 from dave-tucker/getty

Make it more obvious that getty/sshd are namespaced
This commit is contained in:
Rolf Neugebauer
2017-06-29 23:30:17 +01:00
committed by GitHub
26 changed files with 39 additions and 31 deletions

View File

@@ -1 +1,4 @@
Welcome to LinuxKit
Welcome to LinuxKit!
NOTE: This system is namespaced.
The namespace you are currently in may not be the root.

View File

@@ -0,0 +1 @@
export PS1="(ns: getty) $PS1"

View File

@@ -31,14 +31,14 @@ start_getty() {
# are we secure or insecure?
loginargs=
if [ "$INSECURE" == "true" ]; then
loginargs="-n -l /bin/sh"
loginargs="-a root"
fi
if ! grep -q -w "$tty" "$securetty"; then
echo "$tty" >> "$securetty"
fi
# respawn forever
infinite_loop setsid.getty -w /sbin/getty $loginargs $line $speed $tty $term &
infinite_loop setsid.getty -w /sbin/agetty $loginargs $line $speed $tty $term &
}
# check if we have /etc/getty.shadow

View File

@@ -1 +1,4 @@
Welcome to LinuxKit
Welcome to LinuxKit!
NOTE: This system is namespaced.
The namespace you are currently in may not be the root.

View File

@@ -0,0 +1 @@
export PS1="(ns: sshd) $PS1"