From d6c7f3841cc9827344bfc9e30a5a92dfd72b9cbc Mon Sep 17 00:00:00 2001 From: Stanislaw Adaszewski Date: Sat, 2 May 2020 12:00:40 +0200 Subject: [PATCH] chmod /focker to 0600 --- example/gitea-custom/files/body_inner_pre.tmpl | 2 +- focker/zfs.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/example/gitea-custom/files/body_inner_pre.tmpl b/example/gitea-custom/files/body_inner_pre.tmpl index c337bf3..ecb9c4f 100644 --- a/example/gitea-custom/files/body_inner_pre.tmpl +++ b/example/gitea-custom/files/body_inner_pre.tmpl @@ -5,6 +5,6 @@ are only meant to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED - projects. + projects. Thank you for your understanding! {{end}} diff --git a/focker/zfs.py b/focker/zfs.py index 24e1892..6d037e9 100644 --- a/focker/zfs.py +++ b/focker/zfs.py @@ -195,6 +195,7 @@ def zfs_init(): for path in ['/focker', '/focker/images', '/focker/volumes', '/focker/jails']: if not os.path.exists(path): os.mkdir(path) + os.chmod('/focker', 0o600) if not zfs_exists(poolname + '/focker'): zfs_run(['zfs', 'create', '-o', 'canmount=off', '-o', 'mountpoint=/focker', poolname + '/focker']) if not zfs_exists(poolname + '/focker/images'):