Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch to support auditd loginuid immutability #478

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
7 changes: 7 additions & 0 deletions debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,13 @@ RUN sed -i /etc/ssh/sshd_config \
-e 's/#LogLevel.*/LogLevel INFO/' && \
mkdir /var/run/sshd

# modify PAM to allow SSH access to container
RUN sed -i 's/\(session\s*\)required\(\s*pam_loginuid.so\)/\1optional\2/' \
/etc/pam.d/sshd

# remove motd to have quiet login
RUN rm -f /etc/update-motd.d/10-uname; cat /dev/null >/etc/motd

# VOLUME directive must happen after setting up permissions and content
VOLUME "${AGENT_WORKDIR}" "${JENKINS_AGENT_HOME}"/.jenkins "/tmp" "/run" "/var/run"
WORKDIR "${JENKINS_AGENT_HOME}"
Expand Down
Loading