mirror of https://github.com/BOINC/boinc.git
Mac Installer: set most files in BOINC Data directory world-readable
svn path=/trunk/boinc/; revision=19465
This commit is contained in:
parent
2f636a6f62
commit
5d5942522b
|
@ -8900,3 +8900,14 @@ David 4 Nov 2009
|
|||
sched/
|
||||
Makefile.am
|
||||
credit_test.cpp
|
||||
|
||||
Charlie 4 Nov 2009
|
||||
- Mac Installer: set most files in BOINC Data directory world-readable
|
||||
(with certain exceptions like gui_rpc_auth.cfg.) This assures that
|
||||
the screensaver can read its support files.
|
||||
|
||||
clientgui/
|
||||
mac/
|
||||
SetupSecurity.cpp
|
||||
mac_build/
|
||||
Mac_SA_Secure.sh
|
||||
|
|
|
@ -294,9 +294,9 @@ int SetBOINCDataOwnersGroupsAndPermissions() {
|
|||
|
||||
// Set permissions of BOINC Data directory's contents
|
||||
// chmod -R u+rw,g+rw,o-rw "/Library/Application Support/BOINC Data"
|
||||
// 0660 = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP
|
||||
// 0661 = S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH
|
||||
// set read and write permission for user and group, no access for others (leaves execute bits unchanged)
|
||||
err = DoPrivilegedExec(chmodPath, "-R", "u+rw,g+rw,o-rw", fullpath, NULL, NULL);
|
||||
err = DoPrivilegedExec(chmodPath, "-R", "u+rw,g+rw,o+r-w", fullpath, NULL, NULL);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
|
@ -317,9 +317,6 @@ int SetBOINCDataOwnersGroupsAndPermissions() {
|
|||
if (err)
|
||||
return err;
|
||||
|
||||
// Since we no longer allow read access for others (S_IROTH), setting ownership
|
||||
// and permissions for gui_rpc_auth.cfg file is probably now redundant
|
||||
|
||||
// Does gui_rpc_auth.cfg file exist?
|
||||
strlcpy(fullpath, BOINCDataDirPath, MAXPATHLEN);
|
||||
strlcat(fullpath, "/", MAXPATHLEN);
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
# sudo dscl . -delete /groups/boinc_master users mary
|
||||
#
|
||||
|
||||
# Last updated 10/31/09 for BOINC version 6.10.18 and 6.11.0
|
||||
# Last updated 11/4/09 for BOINC version 6.8.18, 6.10.18 and 6.11.0
|
||||
# WARNING: do not use this script with versions of BOINC older
|
||||
# than 6.8.17 and 6.10.3
|
||||
|
||||
|
@ -180,7 +180,7 @@ make_boinc_users
|
|||
dscl . -merge /groups/boinc_master users "$(LOGNAME)"
|
||||
dscl . -merge /groups/boinc_project users "$(LOGNAME)"
|
||||
|
||||
set_perm_recursive . boinc_master boinc_master u+rw,g+rw,o-rw
|
||||
set_perm_recursive . boinc_master boinc_master u+rw,g+rw,o+r-w
|
||||
set_perm . boinc_master boinc_master 0771
|
||||
if [ -f gui_rpc_auth.cfg ] ; then
|
||||
set_perm gui_rpc_auth.cfg boinc_master boinc_master 0660
|
||||
|
|
Loading…
Reference in New Issue