fix UnitSaveTorture with linux namespaces

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I035dbf79daf379642b8b6d329adced3cd974d0fe
This commit is contained in:
Caolán McNamara 2024-07-16 14:15:47 +01:00 committed by Michael Meeks
parent 28d6f681bc
commit 20d48e7dbb

View file

@ -15,6 +15,7 @@
#include <Util.hpp>
#include <JsonUtil.hpp>
#include <FileUtil.hpp>
#include <JailUtil.hpp>
#include <helpers.hpp>
#include <StringVector.hpp>
#include <WebSocketSession.hpp>
@ -55,7 +56,7 @@ class UnitSaveTorture : public UnitWSD
std::string getJailRootPath(const std::string &name)
{
return getJailRoot() + "/tmp/" + name;
return FileUtil::buildLocalPathToJail(JailUtil::isMountNamespacesEnabled(), getJailRoot(), "/tmp/" + name);
}
void createStamp(const std::string &name)