Blame SOURCES/0001-ostree-remount-Explicitly-set-tmp-to-01777.patch

08675a
From e7ef7ccc9540f493fe99037f3592f8b956d5edc6 Mon Sep 17 00:00:00 2001
08675a
From: Matthew Barnes <mbarnes@redhat.com>
08675a
Date: Fri, 13 Nov 2015 09:54:52 -0500
08675a
Subject: [PATCH] [PATCH] ostree-remount: Explicitly set /tmp to 01777
08675a
08675a
See https://bugzilla.redhat.com/show_bug.cgi?id=1276775
08675a
---
08675a
 src/switchroot/ostree-remount.c | 8 ++++++++
08675a
 1 file changed, 8 insertions(+)
08675a
08675a
diff --git a/src/switchroot/ostree-remount.c b/src/switchroot/ostree-remount.c
08675a
index b8d3a96..9dff2a0 100644
08675a
--- a/src/switchroot/ostree-remount.c
08675a
+++ b/src/switchroot/ostree-remount.c
08675a
@@ -117,5 +117,13 @@ main(int argc, char *argv[])
08675a
 
08675a
   maybe_mount_tmpfs_on_var ();
08675a
 
08675a
+  /* Ensure /sysroot/tmp is world-writable.  Works around a bug
08675a
+   * where init-fs left the directory writable only to root. */
08675a
+  if (chmod ("/sysroot/tmp", 01777) == -1)
08675a
+    {
08675a
+      perror ("failed to chmod /sysroot/tmp");
08675a
+      exit (EXIT_FAILURE);
08675a
+    }
08675a
+
08675a
   exit (EXIT_SUCCESS);
08675a
 }
08675a
-- 
08675a
2.5.0
08675a