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

@ -53,6 +53,9 @@ inline
int
_setgroups(const std::vector<gid_t> gids_)
{
if(gids_.empty())
return 0;
#if defined __linux__ and UGID_USE_RWLOCK == 0
# if defined SYS_setgroups32
return ::syscall(SYS_setgroups32,gids_.size(),gids_.data());
@ -93,7 +96,7 @@ _getgroups(const uid_t uid_,
error:
gids_.clear();
gids_.push_back(gid_);
//gids_.push_back(gid_);
}