summaryrefslogtreecommitdiff
path: root/src/shared/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-12-23 19:12:49 +0100
committerLennart Poettering <lennart@poettering.net>2014-12-23 19:15:27 +0100
commit5f8cc96a0301c1177b11dd2e89370ef0b2ef577b (patch)
treeff5e3aebdfa5aa6ea88882595e5cda5c7b0e4986 /src/shared/util.h
parentee502e0c28a611470a4e10b0c90bade6ff7fa389 (diff)
machined: add new call OpenMachineLogin() that starts a getty in a container on a pty and returns the pty master fd to the client
This is a one-stop solution for "machinectl login", and should simplify getting logins in containers.
Diffstat (limited to 'src/shared/util.h')
-rw-r--r--src/shared/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/util.h b/src/shared/util.h
index d3e78e43ca..ec0a6639ca 100644
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -1054,3 +1054,5 @@ int sethostname_idempotent(const char *s);
#define laccess(path, mode) faccessat(AT_FDCWD, (path), (mode), AT_SYMLINK_NOFOLLOW)
int ptsname_malloc(int fd, char **ret);
+
+int openpt_in_namespace(pid_t pid, int flags);