Mageia Bugzilla – Attachment 3560 Details for
Bug 9109
boinc-manager don't access to the localhost boinc-client state
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
boinc_guirpcauth.patch file from boinc-client-7.0.28-1.mga2.src.prm
boinc-guirpcauth.patch (text/plain), 791 bytes, created by
Olivier Mondoloni
on 2013-02-28 11:56:34 CET
(
hide
)
Description:
boinc_guirpcauth.patch file from boinc-client-7.0.28-1.mga2.src.prm
Filename:
MIME Type:
Creator:
Olivier Mondoloni
Created:
2013-02-28 11:56:34 CET
Size:
791 bytes
patch
obsolete
>--- a/client/gui_rpc_server.cpp 2011-10-04 19:14:17.000000000 +0200 >+++ b/client/gui_rpc_server.cpp 2013-02-28 11:13:08.952779560 +0100 >@@ -144,16 +144,7 @@ > fputs(password, f); > fclose(f); > #ifndef _WIN32 >- // if someone can read the password, >- // they can cause code to execute as this user. >- // So better protect it. >- // >- if (g_use_sandbox) { >- // Allow group access so authorized administrator can modify it >- chmod(GUI_RPC_PASSWD_FILE, S_IRUSR|S_IWUSR | S_IRGRP | S_IWGRP); >- } else { >- chmod(GUI_RPC_PASSWD_FILE, S_IRUSR|S_IWUSR); >- } >+ chmod(GUI_RPC_PASSWD_FILE, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP); > #endif > } > }
--- a/client/gui_rpc_server.cpp 2011-10-04 19:14:17.000000000 +0200 +++ b/client/gui_rpc_server.cpp 2013-02-28 11:13:08.952779560 +0100 @@ -144,16 +144,7 @@ fputs(password, f); fclose(f); #ifndef _WIN32 - // if someone can read the password, - // they can cause code to execute as this user. - // So better protect it. - // - if (g_use_sandbox) { - // Allow group access so authorized administrator can modify it - chmod(GUI_RPC_PASSWD_FILE, S_IRUSR|S_IWUSR | S_IRGRP | S_IWGRP); - } else { - chmod(GUI_RPC_PASSWD_FILE, S_IRUSR|S_IWUSR); - } + chmod(GUI_RPC_PASSWD_FILE, S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP); #endif } }
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 9109
: 3560