Skip to content

Commit a9b4c53

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Swift: Remove unused rootwrap"
2 parents a198525 + d7e497c commit a9b4c53

File tree

4 files changed

+0
-43
lines changed

4 files changed

+0
-43
lines changed

docker/swift/swift-base/Dockerfile.j2

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,13 @@ ADD swift-base-archive /swift-base-source
3030
'/swift'
3131
] %}
3232

33-
COPY swift-rootwrap /var/lib/kolla/venv/bin/swift-rootwrap
34-
COPY rootwrap.conf /etc/swift/rootwrap.conf
3533
COPY swift_sudoers /etc/sudoers.d/kolla_swift_sudoers
3634

3735
RUN ln -s swift-base-source/* swift \
3836
&& {{ macros.install_pip(swift_base_pip_packages | customizable("pip_packages")) }} \
3937
&& mkdir -p /etc/swift /var/cache/swift /var/lock/swift \
4038
&& cp -r /swift/etc/* /etc/swift/ \
4139
&& chown -R swift: /var/cache/swift /var/lock/swift \
42-
&& chmod 755 /var/lib/kolla/venv/bin/swift-rootwrap \
43-
&& chmod 644 /etc/swift/rootwrap.conf \
44-
&& 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/swift/rootwrap.conf \
4540
&& chmod 750 /etc/sudoers.d \
4641
&& chmod 440 /etc/sudoers.d/kolla_swift_sudoers \
4742
&& mkdir -p /opt/swift

docker/swift/swift-base/rootwrap.conf

Lines changed: 0 additions & 27 deletions
This file was deleted.

docker/swift/swift-base/swift-rootwrap

Lines changed: 0 additions & 10 deletions
This file was deleted.
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
swift ALL=(root) NOPASSWD: /bin/find /srv/node/ -maxdepth 1 -type d -execdir chown swift\:swift {} \\+
22
swift ALL=(root) NOPASSWD: /usr/bin/find /srv/node/ -maxdepth 1 -type d -execdir chown swift\:swift {} \\+
3-
swift ALL=(root) NOPASSWD: /var/lib/kolla/venv/bin/swift-rootwrap /etc/swift/rootwrap.conf *

0 commit comments

Comments
 (0)