Logo Search packages:      
Sourcecode: fuse version File versions  Download package

int fuse_req_getgroups ( fuse_req_t  req,
int  size,
gid_t  list[] 

Get the current supplementary group IDs for the specified request

Similar to the getgroups(2) system call, except the return value is always the total number of group IDs, even if it is larger than the specified size.

The current fuse kernel module in linux (as of 2.6.30) doesn't pass the group list to userspace, hence this function needs to parse "/proc/$TID/task/$TID/status" to get the group IDs.

This feature may not be supported on all operating systems. In such a case this function will return -ENOSYS.

reqrequest handle
sizesize of given array
listarray of group IDs to be filled in
the total number of supplementary group IDs or -errno on failure

Definition at line 1731 of file fuse_lowlevel.c.

References fuse_req_getgroups().

Referenced by fuse_getgroups(), and fuse_req_getgroups().

      return -ENOSYS;

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index