Skip to content

Commit decd339

Browse files
committed
build: Sensitive directory permissions
1 parent 9d7a383 commit decd339

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

installer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ RUN chmod 755 /opt/maxkb/app/installer/run-maxkb.sh && \
7171
chown -R sandbox:root /opt/maxkb/app/sandbox && \
7272
chmod g-x /usr/local/bin/* /usr/bin/* /bin/* /usr/sbin/* /sbin/* /usr/lib/postgresql/15/bin/* && \
7373
chmod g+x /usr/local/bin/python* && \
74-
chmod g-rx /etc
74+
find /etc/ -type f ! -path '/etc/resolv.conf' ! -path '/etc/hosts' | xargs chmod g-rx
7575

7676
EXPOSE 8080
7777

0 commit comments

Comments
 (0)