diff options
author | 2009-06-19 10:27:38 +0000 | |
---|---|---|
committer | 2009-06-19 10:27:38 +0000 | |
commit | ecd073bd7054c9e13516041e3ef930e39270c8df (patch) | |
tree | bb36abf9662bec5c5027363f6d0d902d00f40815 /lib/fuse.c | |
parent | 17d1cf6956d08de9aa79b4a7691fb50a2446fa18 (diff) |
Add fuse_getgroups (high level lib) and fuse_req_getgroups (low
level lib) functions to query the supplementary group IDs for the
current request. Currently this is implemented on Linux by
reading from the /proc filesystem.
Diffstat (limited to 'lib/fuse.c')
-rw-r--r-- | lib/fuse.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -3450,6 +3450,12 @@ struct fuse_context *fuse_get_context(void) return &fuse_get_context_internal()->ctx; } +int fuse_getgroups(int size, gid_t list[]) +{ + fuse_req_t req = fuse_get_context_internal()->req; + return fuse_req_getgroups(req, size, list); +} + int fuse_interrupted(void) { return fuse_req_interrupted(fuse_get_context_internal()->req); |