File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ def _init_sandbox_dir(self):
7474 with open (sandbox_conf_file_path , "w" ) as f :
7575 f .write (f"SANDBOX_PYTHON_BANNED_HOSTS={ banned_hosts } \n " )
7676 f .write (f"SANDBOX_PYTHON_ALLOW_SUBPROCESS={ allow_subprocess } \n " )
77- os .system (f"chmod -R 550 { sandbox_lib_path } " )
77+ os .system (f"chmod -R 550 { self . sandbox_path } " )
7878
7979 def exec_code (self , code_str , keywords ):
8080 _id = str (uuid .uuid7 ())
Original file line number Diff line number Diff line change @@ -26,9 +26,8 @@ RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
2626 chmod 755 /usr/bin/start-*.sh && \
2727 find /etc/ -type f ! -path '/etc/resolv.conf' ! -path '/etc/hosts' | xargs chmod g-rx && \
2828 curl -L --connect-timeout 120 -m 1800 https://resource.fit2cloud.com/maxkb/ffmpeg/get-ffmpeg-linux | sh && \
29- mkdir -p /opt/maxkb-app/sandbox/lib && \
29+ mkdir -p /opt/maxkb-app/sandbox/lib && chmod -R 550 /opt/maxkb-app/sandbox && \
3030 useradd --no-create-home --home /opt/maxkb-app/sandbox sandbox -g root && \
31- chown sandbox:root /opt/maxkb-app/sandbox && chmod 550 /opt/maxkb-app/sandbox && \
3231 chmod g-xr /usr/local/bin/* /usr/bin/* /bin/* /usr/sbin/* /sbin/* /usr/lib/postgresql/17/bin/* && \
3332 chmod g+xr /usr/bin/ld.so && \
3433 chmod g+x /usr/local/bin/python* && \
You can’t perform that action at this time.
0 commit comments