Skip to content

Commit fe081c9

Browse files
authored
Merge pull request #14383 from alanmcanonical/mtu
Restrict mtu size for podman
2 parents 1898858 + e592d27 commit fe081c9

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

Dockerfiles/test_suite-ubuntu2204

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,9 @@ RUN true \
2626
RUN true \
2727
&& ssh-keygen -A \
2828
&& mkdir -p /root/.ssh \
29+
&& mkdir /run/sshd && chmod 0755 /run/sshd \
2930
&& printf "%s\n" "$CLIENT_PUBLIC_KEY" >> "$AUTH_KEYS" \
3031
&& chmod og-rw /root/.ssh "$AUTH_KEYS" \
3132
&& sed -i '/session\s\+required\s\+pam_loginuid.so/d' /etc/pam.d/sshd \
3233
&& echo CPE_NAME="cpe:/o:canonical:ubuntu_linux:22.04" >> /etc/os-release \
3334
&& true
34-
35-
RUN mkdir /run/sshd
36-
CMD ["/usr/sbin/sshd", "-D"]

Dockerfiles/test_suite-ubuntu2404

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ RUN true \
1919
RUN true \
2020
&& ssh-keygen -A \
2121
&& mkdir -p /root/.ssh \
22+
&& mkdir /run/sshd && chmod 0755 /run/sshd \
2223
&& printf "%s\n" "$CLIENT_PUBLIC_KEY" >> "$AUTH_KEYS" \
2324
&& chmod og-rw /root/.ssh "$AUTH_KEYS" \
2425
&& sed -i '/session\s\+required\s\+pam_loginuid.so/d' /etc/pam.d/sshd \
25-
&& echo CPE_NAME="cpe:/o:canonical:ubuntu_linux:24.04" >> /etc/os-release
26-
27-
RUN mkdir /run/sshd
28-
CMD ["/usr/sbin/sshd", "-D"]
26+
&& echo CPE_NAME="cpe:/o:canonical:ubuntu_linux:24.04" >> /etc/os-release \
27+
&& true

tests/ssg_test_suite/test_env.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,7 @@ def _new_container_from_image(self, image_name, container_name):
533533
"--cap-add=cap_sys_admin",
534534
"--cap-add=cap_sys_chroot",
535535
# "--privileged",
536+
"--network", "slirp4netns:mtu=1500",
536537
"--publish", "{}".format(self.internal_ssh_port), "--detach", image_name,
537538
"/usr/sbin/sshd", "-p", "{}".format(self.internal_ssh_port), "-D"]
538539
try:

0 commit comments

Comments
 (0)