um: port_user: Allow setting path to port-helper using UML_PORT_HELPER envvar
authorGlenn Washburn <development@efficientek.com>
Thu, 3 Mar 2022 07:53:31 +0000 (01:53 -0600)
committerRichard Weinberger <richard@nod.at>
Fri, 11 Mar 2022 09:55:38 +0000 (10:55 +0100)
commitdb8109a8bb4a4b31e7f630d7667749d62ee4a087
tree1f7fedc262ab378bfcb8921804c634717f584bcf
parent6e8f4b70127fa852020718e636b3ea53f6e17d88
um: port_user: Allow setting path to port-helper using UML_PORT_HELPER envvar

This is useful when the uml-utilities user-space package has not been
installed by the administrator and an unprivileged user wants to be able to
telnet into a UML instance. The user can install the port-helper binary to
a writable path and set UML_PORT_HELPER. Fallback to using hardcoded path to
port-helper if environment variable is not set.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
arch/um/drivers/port_user.c