Skip to content

Commit 77295d2

Browse files
committed
feat: update Dockerfile to adjust permissions for Python binaries and restrict access to certain files
--bug=1057357 --user=刘瑞斌 【工具】工具执行沙箱的权限没有做限制 https://www.tapd.cn/62980211/s/1717636
1 parent 359f9c5 commit 77295d2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

installer/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ RUN chmod 755 /opt/maxkb-app/installer/*.sh && \
7777
useradd --no-create-home --home /opt/maxkb-app/sandbox sandbox -g root && \
7878
chown -R sandbox:root /opt/maxkb-app/sandbox && \
7979
chmod g-x /usr/local/bin/* /usr/bin/* /bin/* /usr/sbin/* /sbin/* /usr/lib/postgresql/17/bin/* && \
80-
chmod g+x /usr/local/bin/python*
80+
chmod g+x /usr/local/bin/python* && \
81+
find /etc/ -type f ! -path '/etc/resolv.conf' ! -path '/etc/hosts' | xargs chmod g-rx
8182

8283
EXPOSE 8080
8384
VOLUME /opt/maxkb

0 commit comments

Comments
 (0)