Skip to content

Commit 04de4ca

Browse files
committed
Use a sticky bit for tmp/
1 parent ea2d5dc commit 04de4ca

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

Dockerfile-alpine.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ RUN set -ex; \
120120
php -l /var/www/html/libraries/vendor_config.php; \
121121
find /var/www/html -type d -exec chmod 555 {} \;; \
122122
find /var/www/html -type f -exec chmod 444 {} \;; \
123-
chmod 777 /var/www/html/tmp;
123+
chmod 1777 /var/www/html/tmp;
124124

125125
# Copy configuration
126126
COPY --chown=www-data:www-data config.inc.php /etc/phpmyadmin/config.inc.php

Dockerfile-debian.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ RUN set -ex; \
139139
php -l /var/www/html/libraries/vendor_config.php; \
140140
find /var/www/html -type d -exec chmod 555 {} \;; \
141141
find /var/www/html -type f -exec chmod 444 {} \;; \
142-
chmod 777 /var/www/html/tmp;
142+
chmod 1777 /var/www/html/tmp;
143143

144144
# Copy configuration
145145
COPY --chown=www-data:www-data config.inc.php /etc/phpmyadmin/config.inc.php

apache/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ RUN set -ex; \
140140
php -l /var/www/html/libraries/vendor_config.php; \
141141
find /var/www/html -type d -exec chmod 555 {} \;; \
142142
find /var/www/html -type f -exec chmod 444 {} \;; \
143-
chmod 777 /var/www/html/tmp;
143+
chmod 1777 /var/www/html/tmp;
144144

145145
# Copy configuration
146146
COPY --chown=www-data:www-data config.inc.php /etc/phpmyadmin/config.inc.php

fpm-alpine/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ RUN set -ex; \
121121
php -l /var/www/html/libraries/vendor_config.php; \
122122
find /var/www/html -type d -exec chmod 555 {} \;; \
123123
find /var/www/html -type f -exec chmod 444 {} \;; \
124-
chmod 777 /var/www/html/tmp;
124+
chmod 1777 /var/www/html/tmp;
125125

126126
# Copy configuration
127127
COPY --chown=www-data:www-data config.inc.php /etc/phpmyadmin/config.inc.php

fpm/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ RUN set -ex; \
137137
php -l /var/www/html/libraries/vendor_config.php; \
138138
find /var/www/html -type d -exec chmod 555 {} \;; \
139139
find /var/www/html -type f -exec chmod 444 {} \;; \
140-
chmod 777 /var/www/html/tmp;
140+
chmod 1777 /var/www/html/tmp;
141141

142142
# Copy configuration
143143
COPY --chown=www-data:www-data config.inc.php /etc/phpmyadmin/config.inc.php

0 commit comments

Comments
 (0)