Skip to content

Commit 56b7814

Browse files
usbguard and libreswan patch
1 parent 3b7757c commit 56b7814

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pkg/controller/build/buildrequest/assets/Containerfile.on-cluster-build-template

+2-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ RUN ostree container commit
4040
# Hardcoded tmpfiles configuration for usbguard and ipsec.
4141
# Eventually when https://github.com/USBGuard/usbguard/pull/652 is backported to RHEL, we will be able to remove the usbguard patch
4242
# For now, libreswan (ipsec) patch will live here until we find a better alternative
43-
RUN echo -e "d /var/log/usbguard 0755 root root -\nd /var/lib/ipsec 0755 root root -\nd /var/lib/ipsec/nss 0755 root root -" > /usr/lib/tmpfiles.d/usbguard_ipsec.conf && \
44-
systemd-tmpfiles --create && \
45-
chmod 0755 /var/log/usbguard
43+
RUN [ -f /usr/lib/tmpfiles.d/usbguard.conf ] && rm /usr/lib/tmpfiles.d/usbguard.conf
44+
RUN echo -e "d /var/log/usbguard 0755 root root -\nd /var/lib/ipsec 0700 root root -\nd /var/lib/ipsec/nss 0700 root root -" > /usr/lib/tmpfiles.d/usbguard_ipsec.conf
4645

4746
COPY ./openshift-config-user-ca-bundle.crt /etc/pki/ca-trust/source/anchors/openshift-config-user-ca-bundle.crt
4847
RUN update-ca-trust

0 commit comments

Comments
 (0)