mergerfs/src/ugid.cpp
trapexit 9b046d9a34
Some checks are pending
mkdocs / deploy (push) Waiting to run
Rework credential handling to support chroot & idmap (#1595)
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.
2025-12-05 21:03:48 -06:00

8 lines
158 B
C++

#include <unistd.h>
namespace ugid
{
thread_local uid_t currentuid = 0;
thread_local gid_t currentgid = 0;
thread_local bool initialized = false;
}