mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-12-03 05:10:14 -05:00
Rework credential handling to support chroot & idmap (#1595)
Some checks are pending
mkdocs / deploy (push) Waiting to run
Some checks are pending
mkdocs / deploy (push) Waiting to run
Run in an elevated credential mode (root) and let the kernel manage entitlements. Will result in slightly different behavior but should not be noticed by most.
This commit is contained in:
parent
d8918458bf
commit
9b046d9a34
69 changed files with 788 additions and 1066 deletions
|
|
@ -1737,14 +1737,14 @@ fuse_send_enomem(struct fuse_ll *f_,
|
|||
fuse_send_errno(f_,ch_,ENOMEM,unique_id_);
|
||||
}
|
||||
|
||||
static
|
||||
void
|
||||
fuse_send_einval(struct fuse_ll *f_,
|
||||
struct fuse_chan *ch_,
|
||||
const uint64_t unique_id_)
|
||||
{
|
||||
fuse_send_errno(f_,ch_,EINVAL,unique_id_);
|
||||
}
|
||||
// static
|
||||
// void
|
||||
// fuse_send_einval(struct fuse_ll *f_,
|
||||
// struct fuse_chan *ch_,
|
||||
// const uint64_t unique_id_)
|
||||
// {
|
||||
// fuse_send_errno(f_,ch_,EINVAL,unique_id_);
|
||||
// }
|
||||
|
||||
static
|
||||
int
|
||||
|
|
@ -1777,9 +1777,6 @@ fuse_ll_buf_process_read(struct fuse_session *se_,
|
|||
|
||||
in = (struct fuse_in_header*)msgbuf_->mem;
|
||||
|
||||
if((in->uid == FUSE_INVALID_UIDGID) || (in->gid == FUSE_INVALID_UIDGID))
|
||||
return fuse_send_einval(se_->f,se_->ch,in->unique);
|
||||
|
||||
req = fuse_ll_alloc_req(se_->f);
|
||||
if(req == NULL)
|
||||
return fuse_send_enomem(se_->f,se_->ch,in->unique);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue