aboutsummaryrefslogtreecommitdiffstats
path: root/pseudo.h
diff options
context:
space:
mode:
authorPeter Seebach <seebs@eee12.(none)>2010-03-29 17:58:46 -0500
committerPeter Seebach <seebs@eee12.(none)>2010-03-29 17:58:46 -0500
commitfa580977cc4fa8b58a47c483c1a59df66645a120 (patch)
tree42e77c1592e7fa56af0df2d2b86f398a24e119ee /pseudo.h
parent2b57c61b7eeb203cfcda848cc93113ec39a639cc (diff)
downloadpseudo-fa580977cc4fa8b58a47c483c1a59df66645a120.tar.gz
pseudo-fa580977cc4fa8b58a47c483c1a59df66645a120.tar.bz2
pseudo-fa580977cc4fa8b58a47c483c1a59df66645a120.zip
Add password/group call emulation.
This is a first pass at handling password/group calls, allowing the use of custom password/group files. In particular, when chroot()ed to a particular directory, pseudo picks files in that directory by default, to improve support for the typical use case where pseudo uses chroot() only to jump into a virtual target filesystem.
Diffstat (limited to 'pseudo.h')
-rw-r--r--pseudo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/pseudo.h b/pseudo.h
index 93f3e89..91b4dc7 100644
--- a/pseudo.h
+++ b/pseudo.h
@@ -127,6 +127,9 @@ extern char *pseudo_prefix_path(char *);
extern char *pseudo_get_prefix(char *);
extern ssize_t pseudo_sys_path_max(void);
extern ssize_t pseudo_path_max(void);
+#define PSEUDO_PWD_MAX 4096
+extern int pseudo_etc_file(char *filename, char **search, int dircount);
+#define PSEUDO_ETC_FILE(name) pseudo_etc_file((name), (char *[]) { pseudo_chroot, pseudo_passwd }, 2)
extern char *pseudo_version;