aboutsummaryrefslogtreecommitdiff
path: root/docker/keystone
diff options
context:
space:
mode:
authorTim Shearer <tshearer@advaoptical.com>2022-04-01 16:22:28 -0400
committerRadosław Piliszek <radoslaw.piliszek@gmail.com>2022-04-11 17:22:24 +0200
commit1d96a2bbe1b536b7d7f4cdbf55c6dabae6d058ae (patch)
treeaff66bacc9d1dc51d4db006646152329e6777b83 /docker/keystone
parent19765c629734fe699871301be23fb308c14b2639 (diff)
downloadkolla-1d96a2bbe1b536b7d7f4cdbf55c6dabae6d058ae.tar.gz
kolla-1d96a2bbe1b536b7d7f4cdbf55c6dabae6d058ae.zip
Adjust permissions on _extend_start files.
Explicitly set the permissions on the kolla-toolbox kolla_extend_start file. Also, since all extend_start files are sourced rather than executed, the executable bits are now cleared throughout the project. Change-Id: I5c2deb4a2e33575d57c852089f856a9acc6818d0
Diffstat (limited to 'docker/keystone')
-rw-r--r--docker/keystone/keystone-fernet/Dockerfile.j23
-rw-r--r--docker/keystone/keystone-ssh/Dockerfile.j22
-rw-r--r--docker/keystone/keystone/Dockerfile.j23
3 files changed, 5 insertions, 3 deletions
diff --git a/docker/keystone/keystone-fernet/Dockerfile.j2 b/docker/keystone/keystone-fernet/Dockerfile.j2
index 702e064a9..edc2f8d1a 100644
--- a/docker/keystone/keystone-fernet/Dockerfile.j2
+++ b/docker/keystone/keystone-fernet/Dockerfile.j2
@@ -25,7 +25,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
COPY fetch_fernet_tokens.py /usr/bin/
COPY keystone_bootstrap.sh /usr/local/bin/kolla_keystone_bootstrap
COPY extend_start.sh /usr/local/bin/kolla_extend_start
-RUN chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_keystone_bootstrap /usr/bin/fetch_fernet_tokens.py
+RUN chmod 644 /usr/local/bin/kolla_extend_start \
+ && chmod 755 /usr/local/bin/kolla_keystone_bootstrap /usr/bin/fetch_fernet_tokens.py
{% block keystone_fernet_footer %}{% endblock %}
{% block footer %}{% endblock %}
diff --git a/docker/keystone/keystone-ssh/Dockerfile.j2 b/docker/keystone/keystone-ssh/Dockerfile.j2
index 770832991..f9bc63f50 100644
--- a/docker/keystone/keystone-ssh/Dockerfile.j2
+++ b/docker/keystone/keystone-ssh/Dockerfile.j2
@@ -34,7 +34,7 @@ RUN mkdir -p /var/run/sshd \
RUN sed -ri 's/session(\s+)required(\s+)pam_loginuid.so/session\1optional\2pam_loginuid.so/' /etc/pam.d/sshd
COPY extend_start.sh /usr/local/bin/kolla_extend_start
-RUN chmod 755 /usr/local/bin/kolla_extend_start
+RUN chmod 644 /usr/local/bin/kolla_extend_start
{% block keystone_ssh_footer %}{% endblock %}
{% block footer %}{% endblock %}
diff --git a/docker/keystone/keystone/Dockerfile.j2 b/docker/keystone/keystone/Dockerfile.j2
index 3c8df2e75..eee036be3 100644
--- a/docker/keystone/keystone/Dockerfile.j2
+++ b/docker/keystone/keystone/Dockerfile.j2
@@ -9,7 +9,8 @@ LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build
COPY keystone_bootstrap.sh /usr/local/bin/kolla_keystone_bootstrap
COPY extend_start.sh /usr/local/bin/kolla_extend_start
-RUN chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_keystone_bootstrap
+RUN chmod 644 /usr/local/bin/kolla_extend_start \
+ && chmod 755 /usr/local/bin/kolla_keystone_bootstrap
{% if base_package_type == 'rpm' %}
{% set keystone_packages = [