projects
/
project
/
procd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f841e8
)
jail: fix jail root folder permissions
author
Etienne CHAMPETIER
<champetier.etienne@gmail.com>
Mon, 20 Jul 2015 20:41:50 +0000
(22:41 +0200)
committer
John Crispin
<blogic@openwrt.org>
Fri, 24 Jul 2015 06:50:59 +0000
(08:50 +0200)
We need a+x rights on the path to the root of the jails
so we can use users other than root (like nobody)
This partly fixes jailed dnsmasq
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
jail/jail.c
patch
|
blob
|
history
diff --git
a/jail/jail.c
b/jail/jail.c
index a6de1338a1e4e09fe7765b9e8db33fe9847163d5..2bba292d01fcf53563348828fbf8ccb52b1fad9a 100644
(file)
--- a/
jail/jail.c
+++ b/
jail/jail.c
@@
-143,7
+143,7
@@
static int build_jail(const char *path)
mkdir(path, 0755);
- if (mount("tmpfs", path, "tmpfs", MS_NOATIME, "mode=07
44
")) {
+ if (mount("tmpfs", path, "tmpfs", MS_NOATIME, "mode=07
55
")) {
ERROR("tmpfs mount failed %s\n", strerror(errno));
return -1;
}