Patchwork D12631: docker: avoid /tmp write access issues by fixing permissions

login
register
mail settings
Submitter phabricator
Date June 8, 2022, 10:31 a.m.
Message ID <differential-rev-PHID-DREV-5lz6xmwn44bflmvkpk5u-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/50994/
State New
Headers show

Comments

phabricator - June 8, 2022, 10:31 a.m.
Mathiasdm created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  stable

REVISION DETAIL
  https://phab.mercurial-scm.org/D12631

AFFECTED FILES
  contrib/packaging/docker/rhel8

CHANGE DETAILS




To: Mathiasdm, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/contrib/packaging/docker/rhel8 b/contrib/packaging/docker/rhel8
--- a/contrib/packaging/docker/rhel8
+++ b/contrib/packaging/docker/rhel8
@@ -16,3 +16,6 @@ 
 
 # For rust extensions
 RUN yum install -y cargo
+
+# avoid incorrect docker image permissions on /tmp preventing writes by non-root users
+RUN chmod 1777 /tmp