Skip to content

Commit

Permalink
Test what happens if Apptainer is allowed to mount /proc
Browse files Browse the repository at this point in the history
  • Loading branch information
brianaydemir committed Jul 16, 2024
1 parent 2778ddc commit 10185af
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 10 deletions.
2 changes: 0 additions & 2 deletions notebooks/htc-datascience-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,9 @@ RUN cd /tmp \
&& rm -rf /etc/subuid /etc/subgid \
#
# Do not allow users to utilize the setuid program flow within Apptainer.
# Do not automatically bind mount /proc within the container.
#
&& sed -i \
-e 's/^allow setuid.*$/allow setuid = no/' \
-e 's/^mount proc.*$/mount proc = no/' \
/etc/apptainer/apptainer.conf


Expand Down
2 changes: 0 additions & 2 deletions notebooks/htc-minimal-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,9 @@ RUN cd /tmp \
&& rm -rf /etc/subuid /etc/subgid \
#
# Do not allow users to utilize the setuid program flow within Apptainer.
# Do not automatically bind mount /proc within the container.
#
&& sed -i \
-e 's/^allow setuid.*$/allow setuid = no/' \
-e 's/^mount proc.*$/mount proc = no/' \
/etc/apptainer/apptainer.conf


Expand Down
2 changes: 0 additions & 2 deletions notebooks/htc-pytorch-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,9 @@ RUN cd /tmp \
&& rm -rf /etc/subuid /etc/subgid \
#
# Do not allow users to utilize the setuid program flow within Apptainer.
# Do not automatically bind mount /proc within the container.
#
&& sed -i \
-e 's/^allow setuid.*$/allow setuid = no/' \
-e 's/^mount proc.*$/mount proc = no/' \
/etc/apptainer/apptainer.conf


Expand Down
2 changes: 0 additions & 2 deletions notebooks/htc-tensorflow-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,9 @@ RUN cd /tmp \
&& rm -rf /etc/subuid /etc/subgid \
#
# Do not allow users to utilize the setuid program flow within Apptainer.
# Do not automatically bind mount /proc within the container.
#
&& sed -i \
-e 's/^allow setuid.*$/allow setuid = no/' \
-e 's/^mount proc.*$/mount proc = no/' \
/etc/apptainer/apptainer.conf


Expand Down
2 changes: 0 additions & 2 deletions template/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,9 @@ RUN cd /tmp \
&& rm -rf /etc/subuid /etc/subgid \
#
# Do not allow users to utilize the setuid program flow within Apptainer.
# Do not automatically bind mount /proc within the container.
#
&& sed -i \
-e 's/^allow setuid.*$/allow setuid = no/' \
-e 's/^mount proc.*$/mount proc = no/' \
/etc/apptainer/apptainer.conf


Expand Down

0 comments on commit 10185af

Please sign in to comment.