[ARVADOS] created: 6d352c4bfe2d0e9a405a52863c28b00de47f4be5

git at public.curoverse.com git at public.curoverse.com
Wed Sep 23 12:59:30 EDT 2015


        at  6d352c4bfe2d0e9a405a52863c28b00de47f4be5 (commit)


commit 6d352c4bfe2d0e9a405a52863c28b00de47f4be5
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Wed Sep 23 13:00:08 2015 -0400

    7228: Set umask to 002 so cache files are created writable other processes with same GID.

diff --git a/services/api/script/crunch-dispatch.rb b/services/api/script/crunch-dispatch.rb
index 27cb821..4a1fdbc 100755
--- a/services/api/script/crunch-dispatch.rb
+++ b/services/api/script/crunch-dispatch.rb
@@ -1,5 +1,9 @@
 #!/usr/bin/env ruby
 
+# We want files written by crunch-dispatch to be writable by other processes
+# with the same GID, see bug #7228
+File.umask(0002)
+
 require 'shellwords'
 include Process
 
@@ -747,6 +751,7 @@ class Dispatcher
 
   def run
     act_as_system_user
+    User.first.group_permissions
     $stderr.puts "dispatch: ready"
     while !$signal[:term] or @running.size > 0
       read_pipes

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list