summaryrefslogtreecommitdiff
path: root/netfs/fuse.h
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-10-23 02:18:23 +0000
committerrandomdan <randomdan@localhost>2010-10-23 02:18:23 +0000
commitb53eef3844086aad1686091eafa3bcdf060802fb (patch)
tree23e19d213090b5895c32a356f350581a83fe252e /netfs/fuse.h
parentInitialise the IC after fuse forks, fixes whatever the hell it is that stops ... (diff)
downloadnetfs-b53eef3844086aad1686091eafa3bcdf060802fb.tar.bz2
netfs-b53eef3844086aad1686091eafa3bcdf060802fb.tar.xz
netfs-b53eef3844086aad1686091eafa3bcdf060802fb.zip
Send a request environment object container the auth token, and now with context user and group
Diffstat (limited to 'netfs/fuse.h')
-rw-r--r--netfs/fuse.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/netfs/fuse.h b/netfs/fuse.h
index bfe9335..6bcc3ae 100644
--- a/netfs/fuse.h
+++ b/netfs/fuse.h
@@ -8,6 +8,14 @@
class NetFS : public FuseAppBase
{
public:
+ class ReqEnv : public NetFSComms::ReqEnv {
+ public:
+ ReqEnv(Ice::Long at);
+ private:
+ static std::map<uid_t, std::string> uidcache;
+ static std::map<gid_t, std::string> gidcache;
+ static void makeugidCache();
+ };
NetFS(int & argc, char ** argv);
~NetFS();
private:
@@ -42,6 +50,8 @@ class NetFS : public FuseAppBase
int statfs(const char *, struct statvfs *);
// stuff
+ ReqEnv reqEnv() const;
+
int & _argc;
char ** _argv;
Ice::CommunicatorPtr ic;