SVN commit 889394 by mueller: make sure that a too strict umask doesn't ruin the game fixes https://bugzilla.novell.com/show_bug.cgi?id=446329 M +6 -0 environment.cpp --- trunk/icecream/daemon/environment.cpp #889393:889394 @@ -159,6 +159,9 @@ log_perror( "mkdir in cleanup_cache() failed" ); return false; } + chown( basedir.c_str(), 0, 0 ); + chmod( basedir.c_str(), 0755 ); + return WIFEXITED(status); } // else @@ -215,6 +218,7 @@ rmdir( nativedir.c_str() ); return 0; } + chmod( nativedir.c_str(), 0755 ); flush_debug(); pid_t pid = fork(); @@ -239,6 +243,8 @@ } } // else + umask(022); + if ( setgid( nobody_gid ) < 0) { log_perror("setgid failed"); _exit(143);