Browse Source

Add /var/lib/kolla/venv/bin to Zun exec_dirs

This is necessary for rootwrap/privsep to work properly

Closes-Bug: #1883604
Change-Id: I128fb04a5ddeb77428697d33e2015158bc74738f
(cherry picked from commit 570a6120be)
changes/98/737198/4
Hongbin Lu 2 years ago
committed by Radosław Piliszek
parent
commit
dd0069addb
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      docker/zun/zun-base/Dockerfile.j2

+ 2
- 1
docker/zun/zun-base/Dockerfile.j2 View File

@@ -52,7 +52,8 @@ RUN ln -s zun-base-source/* zun \
&& mkdir -p /etc/zun /var/www/cgi-bin/zun \
&& cp -r /zun/etc/zun/* /etc/zun/ \
&& cp /zun/zun/api/app.wsgi /var/www/cgi-bin/zun \
&& chown -R zun: /etc/zun /var/www/cgi-bin/zun
&& chown -R zun: /etc/zun /var/www/cgi-bin/zun \
&& sed -i 's|^exec_dirs.*|exec_dirs=/var/lib/kolla/venv/bin,/sbin,/usr/sbin,/bin,/usr/bin,/usr/local/bin,/usr/local/sbin|g' /etc/zun/rootwrap.conf

{% endif %}



Loading…
Cancel
Save