diff options
author | Etienne CHAMPETIER <champetier.etienne@gmail.com> | 2015-07-20 22:41:50 +0200 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2015-07-24 08:50:59 +0200 |
commit | 22b5270d16b92613d42c24168d33a8a14c74701a (patch) | |
tree | d27588182b1d4138701e2b16cc55ce6a44930587 /jail | |
parent | 6f841e89dfe9200a6f3a2f93a9dd83f66f8ef550 (diff) | |
download | unitd-22b5270d16b92613d42c24168d33a8a14c74701a.tar unitd-22b5270d16b92613d42c24168d33a8a14c74701a.zip |
jail: fix jail root folder permissions
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>
Diffstat (limited to 'jail')
-rw-r--r-- | jail/jail.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jail/jail.c b/jail/jail.c index a6de133..2bba292 100644 --- 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=0744")) { + if (mount("tmpfs", path, "tmpfs", MS_NOATIME, "mode=0755")) { ERROR("tmpfs mount failed %s\n", strerror(errno)); return -1; } |