浏览代码

Make container environment accessible to everyone

Signed-off-by: Laurent Bercot <[email protected]>
Laurent Bercot 3 年之前
父节点
当前提交
f565afc1b8

+ 4 - 0
layout/rootfs-overlay/package/admin/s6-overlay-@VERSION@/etc/s6-linux-init/skel/rc.init

@@ -2,6 +2,10 @@
 
 top="$1" ; shift
 
+if test -d /run/s6/container_environment ; then
+  s6-chmod 0755 /run/s6/container_environment
+fi
+
 if profile=`printcontenv S6_RUNTIME_PROFILE` ; then
   etc="/etc/cont-profile.d/$profile"
 else