summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorMichal Vyskocil <mvyskocil@suse.cz>2011-07-01 23:49:56 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-01 23:49:56 +0200
commit1cccf435694675ca1584811179784fc2292e351b (patch)
tree75941c680678c62226dc33104c44710e8b4412c2 /src/util.h
parentbde7f9072109aaf298fe35de59a61b1eb026bf51 (diff)
nspawn: Move the get_user_creds from execute.c to utils.c for later usage in nspawn.c.
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index 083da2a545..411efae933 100644
--- a/src/util.h
+++ b/src/util.h
@@ -445,6 +445,8 @@ int audit_session_from_pid(pid_t pid, uint32_t *id);
bool display_is_local(const char *display);
int socket_from_display(const char *display, char **path);
+int get_user_creds(const char **username, uid_t *uid, gid_t *gid, const char **home);
+
#define NULSTR_FOREACH(i, l) \
for ((i) = (l); (i) && *(i); (i) = strchr((i), 0)+1)