Merge "Drop systemd support from nsswitch.conf on RHEL-based distros"
This commit is contained in:
commit
22d7ffa382
|
@ -416,7 +416,8 @@ RUN apt-get update \
|
|||
{% endif %}
|
||||
|
||||
{% if base_distro == 'centos' or base_distro == 'rhel' %}
|
||||
RUN sed -ri '/-session(\s+)optional(\s+)pam_systemd.so/d' /etc/pam.d/system-auth
|
||||
RUN sed -ri '/-session(\s+)optional(\s+)pam_systemd.so/d' /etc/pam.d/system-auth \
|
||||
&& sed -ri '/^[^#]/ s/systemd//g' /etc/nsswitch.conf
|
||||
{% endif %}
|
||||
|
||||
COPY set_configs.py /usr/local/bin/kolla_set_configs
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
fixes:
|
||||
- |
|
||||
Drop systemd support from nsswitch.conf on RHEL-based distros. This avoids
|
||||
unneeded systemd nss lookups inside containers and it also avoids possible
|
||||
selinux denials when a container bind mounts /run and makes the dbus socket
|
||||
available inside the container only to be denied by selinux on the host.
|
Loading…
Reference in New Issue