fix UnitSaveTorture with linux namespaces
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com> Change-Id: I035dbf79daf379642b8b6d329adced3cd974d0fe
This commit is contained in:
parent
28d6f681bc
commit
20d48e7dbb
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue