if (!mountMkdirAndTest(destdir)) {
snprintf(destdir, PATH_MAX, "/tmp/nsjail.root");
if (!mountMkdirAndTest(destdir)) {
- snprintf(destdir, PATH_MAX, "/tmp/nsjail.root.%" PRIx64, utilRnd64());
+ snprintf(destdir, PATH_MAX, "/tmp/nsjail.root.rnd.%" PRIx64, utilRnd64());
if (!mountMkdirAndTest(destdir)) {
LOG_E("Couldn't create directory for ROOT fs");
return false;
if (!mountMkdirAndTest(tmpdir)) {
snprintf(tmpdir, PATH_MAX, "/tmp/nsjail.tmp");
if (!mountMkdirAndTest(tmpdir)) {
- snprintf(tmpdir, PATH_MAX, "/tmp/nsjail.tmp.%" PRIx64, utilRnd64());
+ snprintf(tmpdir, PATH_MAX, "/tmp/nsjail.tmp.rnd.%" PRIx64, utilRnd64());
if (!mountMkdirAndTest(tmpdir)) {
LOG_E("Couldn't create a directory for TMP files");
return false;