Make allow-idmap optional (default: false) (#1541)
Some checks failed
CodeQL / Analyze (push) Has been cancelled
mkdocs / deploy (push) Has been cancelled

This is just to correct default behavior for now. More investigation
is necessary to properly support idmapping.
This commit is contained in:
trapexit 2025-10-06 15:46:58 -04:00 • committed by GitHub
parent 3cb35a3a65
commit 0f24bb29ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 27 additions and 4 deletions

View file

@ -1930,6 +1930,15 @@ 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
int
fuse_ll_buf_receive_read(struct fuse_session *se_,
@ -1961,6 +1970,9 @@ 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);