projects
/
platform
/
upstream
/
nsjail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3c7eb87
)
mount: use /dev/shm first as a tmp dir
author
Robert Swiecki
<robert@swiecki.net>
Wed, 21 Jun 2017 23:21:09 +0000
(
01:21
+0200)
committer
Robert Swiecki
<robert@swiecki.net>
Wed, 21 Jun 2017 23:21:09 +0000
(
01:21
+0200)
mount.c
patch
|
blob
|
history
diff --git
a/mount.c
b/mount.c
index 22631656cea7b09e647e66678081408185579ab7..057d91f258a040ebc416e41863b74543fd80747f 100644
(file)
--- a/
mount.c
+++ b/
mount.c
@@
-250,6
+250,10
@@
static bool mountMkdirAndTest(const char *dir)
static bool mountGetDir(struct nsjconf_t *nsjconf, char *dir, const char *name)
{
+ snprintf(dir, PATH_MAX, "/dev/shm/nsjail.%s", name);
+ if (mountMkdirAndTest(dir)) {
+ return true;
+ }
snprintf(dir, PATH_MAX, "/tmp/nsjail.%s", name);
if (mountMkdirAndTest(dir)) {
return true;