summaryrefslogtreecommitdiffstats
path: root/lib/libfuse
diff options
context:
space:
mode:
authorhelg <helg@openbsd.org>2018-06-19 11:27:54 +0000
committerhelg <helg@openbsd.org>2018-06-19 11:27:54 +0000
commit413ec31c49a681fcd185c34be06e8b17074efb80 (patch)
tree00024a07b506cfbfe5fca9a12fded7b340ebe828 /lib/libfuse
parentdescribe more supported hardware (diff)
downloadwireguard-openbsd-413ec31c49a681fcd185c34be06e8b17074efb80.tar.xz
wireguard-openbsd-413ec31c49a681fcd185c34be06e8b17074efb80.zip
Send the calling thread id, effective uid and gid, and umask to the
FUSE file system. fuse_get_context(3) will now return the correct values. ok mpi@
Diffstat (limited to 'lib/libfuse')
-rw-r--r--lib/libfuse/fuse.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libfuse/fuse.c b/lib/libfuse/fuse.c
index d0551a84f0d..9ed4079c5ba 100644
--- a/lib/libfuse/fuse.c
+++ b/lib/libfuse/fuse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fuse.c,v 1.45 2018/05/22 12:52:14 helg Exp $ */
+/* $OpenBSD: fuse.c,v 1.46 2018/06/19 11:27:54 helg Exp $ */
/*
* Copyright (c) 2013 Sylvestre Gallon <ccna.syl@gmail.com>
*
@@ -228,10 +228,10 @@ fuse_loop(struct fuse *fuse)
}
ctx.fuse = fuse;
- ctx.uid = fuse->conf.uid;
- ctx.gid = fuse->conf.gid;
- ctx.pid = fuse->conf.pid;
- ctx.umask = fuse->conf.umask;
+ ctx.uid = fbuf.fb_uid;
+ ctx.gid = fbuf.fb_gid;
+ ctx.pid = fbuf.fb_tid;
+ ctx.umask = fbuf.fb_umask;
ctx.private_data = fuse->private_data;
ictx = &ctx;