sandbox: paths must be bind mounted in order of their length
这个提交包含在:
父节点
f83c705230
当前提交
e14aa99a4b
@ -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();
|
||||
|
正在加载...
在新工单中引用
屏蔽一个用户