chiark / gitweb /
bus: when entering an existing namespace to connect to a container's system bus also...
[elogind.git] / src / shared / util.h
index 504f63a28fe02bc5711be3492c9a4054784b1455..57689e9cf3c0823866051f30f6875e7cb42ad0f1 100644 (file)
@@ -552,6 +552,7 @@ bool in_initrd(void);
 void warn_melody(void);
 
 int get_home_dir(char **ret);
+int get_shell(char **_ret);
 
 static inline void freep(void *p) {
         free(*(void**) p);
@@ -789,3 +790,8 @@ static inline void qsort_safe(void *base, size_t nmemb, size_t size,
 }
 
 int proc_cmdline(char **ret);
+
+int container_get_leader(const char *machine, pid_t *pid);
+
+int namespace_open(pid_t pid, int *pidns_fd, int *mntns_fd, int *root_fd);
+int namespace_enter(int pidns_fd, int mntns_fd, int root_fd);