mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-03 13:20:25 -05:00
Rework how fuse request context is handled (#1543)
This commit is contained in:
parent
d18c273293
commit
0371f03def
117 changed files with 1894 additions and 2438 deletions
|
|
@ -4,27 +4,28 @@
|
|||
|
||||
#include "fuse.h"
|
||||
|
||||
// Becoming root is required due to current security policies within
|
||||
// the kernel. This may be able to be changed in the future.
|
||||
|
||||
namespace FUSE
|
||||
{
|
||||
static
|
||||
inline
|
||||
int
|
||||
passthrough_open(const fuse_context *fc_,
|
||||
const int fd_)
|
||||
passthrough_open(const int fd_)
|
||||
{
|
||||
const ugid::SetRootGuard _;
|
||||
|
||||
return fuse_passthrough_open(fc_,fd_);
|
||||
return fuse_passthrough_open(fd_);
|
||||
}
|
||||
|
||||
static
|
||||
inline
|
||||
int
|
||||
passthrough_close(const fuse_context *fc_,
|
||||
const int backing_id_)
|
||||
passthrough_close(const int backing_id_)
|
||||
{
|
||||
const ugid::SetRootGuard _;
|
||||
|
||||
return fuse_passthrough_close(fc_,backing_id_);
|
||||
return fuse_passthrough_close(backing_id_);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue