Browse Source
Merge pull request #643 from trapexit/ioctl_setuid
set uid & gid when calling ioctl
pull/653/head
trapexit
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
2 deletions
-
src/fuse_ioctl.cpp
|
|
@ -107,12 +107,13 @@ namespace l |
|
|
|
void *data_, |
|
|
|
uint32_t *out_bufsz_) |
|
|
|
{ |
|
|
|
FileInfo *fi = reinterpret_cast<FileInfo*>(ffi_->fh); |
|
|
|
FileInfo *fi = reinterpret_cast<FileInfo*>(ffi_->fh); |
|
|
|
const fuse_context *fc = fuse_get_context(); |
|
|
|
const ugid::Set ugid(fc->uid,fc->gid); |
|
|
|
|
|
|
|
return l::ioctl(fi->fd,cmd_,data_,out_bufsz_); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#ifndef O_NOATIME
|
|
|
|
#define O_NOATIME 0
|
|
|
|
#endif
|
|
|
|