Skip to content

Commit 96d5570

Browse files
authored
Merge pull request #478 from ksalerno99/master
Patch to support auditd loginuid immutability
2 parents 7c4d9d0 + 1d783b7 commit 96d5570

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

debian/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,10 @@ RUN sed -i /etc/ssh/sshd_config \
9999
-e 's/#PasswordAuthentication.*/PasswordAuthentication no/' \
100100
-e 's/#SyslogFacility.*/SyslogFacility AUTH/' \
101101
-e 's/#LogLevel.*/LogLevel INFO/' && \
102-
mkdir /var/run/sshd
102+
mkdir /var/run/sshd && \
103+
sed -i /etc/pam.d/sshd \
104+
-e 's/\(session\s*\)required\(\s*pam_loginuid.so\)/\1optional\2/' \
105+
-e '/pam_motd/s/^/#/'
103106

104107
# VOLUME directive must happen after setting up permissions and content
105108
VOLUME "${AGENT_WORKDIR}" "${JENKINS_AGENT_HOME}"/.jenkins "/tmp" "/run" "/var/run"

0 commit comments

Comments
 (0)