From 3b777b084a438f55482c8bf7508903ff4c30e1db Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Tue, 1 Dec 2009 07:16:13 -0500 Subject: exports: NFSv4 pseudoroot support routines Create v4root exports for each directory that is a parent of an explicit export. Give each the minimal security required to traverse to any of its children. Signed-off-by: Steve Dickson Signed-off-by: J. Bruce Fields --- support/include/exportfs.h | 2 ++ support/include/v4root.h | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 support/include/v4root.h (limited to 'support/include') diff --git a/support/include/exportfs.h b/support/include/exportfs.h index ce7eac0..470b2ec 100644 --- a/support/include/exportfs.h +++ b/support/include/exportfs.h @@ -99,6 +99,8 @@ int xtab_mount_write(void); int xtab_export_write(void); void xtab_append(nfs_export *); +int secinfo_addflavor(struct flav_info *, struct exportent *); + int rmtab_read(void); struct nfskey * key_lookup(char *hname); diff --git a/support/include/v4root.h b/support/include/v4root.h new file mode 100644 index 0000000..706c15c --- /dev/null +++ b/support/include/v4root.h @@ -0,0 +1,15 @@ +/* + * Copyright (C) 2009 Red Hat + * support/include/v4root.h + * + * Support routines for dynamic pseudo roots. + * + */ + +#ifndef V4ROOT_H +#define V4ROOT_H + +extern int v4root_needed; +extern void v4root_set(void); + +#endif /* V4ROOT_H */ -- cgit