mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-25 17:22:55 +00:00
build: Sensitive directory permissions
This commit is contained in:
parent
9d7a383348
commit
decd3395db
|
|
@ -71,7 +71,7 @@ RUN chmod 755 /opt/maxkb/app/installer/run-maxkb.sh && \
|
||||||
chown -R sandbox:root /opt/maxkb/app/sandbox && \
|
chown -R sandbox:root /opt/maxkb/app/sandbox && \
|
||||||
chmod g-x /usr/local/bin/* /usr/bin/* /bin/* /usr/sbin/* /sbin/* /usr/lib/postgresql/15/bin/* && \
|
chmod g-x /usr/local/bin/* /usr/bin/* /bin/* /usr/sbin/* /sbin/* /usr/lib/postgresql/15/bin/* && \
|
||||||
chmod g+x /usr/local/bin/python* && \
|
chmod g+x /usr/local/bin/python* && \
|
||||||
chmod g-rx /etc
|
find /etc/ -type f ! -path '/etc/resolv.conf' ! -path '/etc/hosts' | xargs chmod g-rx
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue