[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    icecream/daemon
From:       Marcus Furlong <furlongm () gmail ! com>
Date:       2008-11-25 2:37:17
Message-ID: 1227580637.753879.6964.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 888663 by furlongm:

Explicitly set group ownership and permissions on the base cache dir and target dir \
in case root has a umask of e.g. 0077. Otherwise nobody user won't be able to untar.


 M  +6 -0      environment.cpp  


--- trunk/icecream/daemon/environment.cpp #888662:888663
@@ -301,11 +301,17 @@
        return 0;
     }
 
+    chown( basename.c_str(), 0, nobody_gid );
+    chmod( basename.c_str(), 0770 );
+
     if ( mkdir( dirname.c_str(), 0755 ) && errno != EEXIST ) {
         log_perror( "mkdir target" );
         return 0;
     }
 
+    chown( dirname.c_str(), 0, nobody_gid );
+    chmod( dirname.c_str(), 0770 );
+
     dirname = dirname + "/" + name;
     if ( mkdir( dirname.c_str(), 0700 ) ) {
         log_perror( "mkdir name" );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic