1
0
Derivar 0

sandbox: paths must be bind mounted in order of their length

Este cometimento está contido em:
Albert S. 2019-08-11 21:03:50 +02:00
ascendente f83c705230
cometimento e14aa99a4b
1 ficheiros modificados com 2 adições e 0 eliminações

Ver ficheiro

@ -91,6 +91,8 @@ bool SandboxLinux::bindMountPaths(std::string target_root, std::initializer_list
bool SandboxLinux::isolateNamespaces(std::vector<std::string> fsPaths)
{
std::sort(fsPaths.begin(), fsPaths.end(),
[](const std::string &a, const std::string &b) { return a.length() < b.length(); });
auto current_uid = getuid();
auto current_gid = getgid();