cache: Introduce StringCache, switch to unordered_map, default to memory cache if fs cache dir not given

This commit is contained in:
2024-10-13 15:14:19 +02:00
szülő bfeacb0510
commit 79d69f4b65
3 fájl változott, egészen pontosan 55 új sor hozzáadva és 3 régi sor törölve

Fájl megtekintése

@ -49,7 +49,11 @@ bool SandboxLinux::enable(std::vector<std::string> fsPaths)
}
for(unsigned int i = 0; i < fsPaths.size(); i++)
{
exile_append_path_policies(policy, EXILE_FS_ALLOW_ALL_READ | EXILE_FS_ALLOW_ALL_WRITE, fsPaths[i].c_str());
std::string &path = fsPaths[i];
if(path.size() > 0)
{
exile_append_path_policies(policy, EXILE_FS_ALLOW_ALL_READ | EXILE_FS_ALLOW_ALL_WRITE, path.c_str());
}
}
policy->drop_caps = 1;
policy->not_dumpable = 1;