/[smecontribs]/rpms/smeserver-shared-folders/contribs7/smeserver-shared-folders-0.1-set_www_user_acls.patch
ViewVC logotype

Contents of /rpms/smeserver-shared-folders/contribs7/smeserver-shared-folders-0.1-set_www_user_acls.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue Jun 19 20:24:46 2012 UTC (12 years, 5 months ago) by vip-ire
Branch: MAIN
CVS Tags: smeserver-shared-folders-0_1-73_el4_sme, smeserver-shared-folders-0_1-72_el4_sme, smeserver-shared-folders-0_1-77_el4_sme, smeserver-shared-folders-0_1-75_el4_sme, smeserver-shared-folders-0_1-76_el4_sme, smeserver-shared-folders-0_1-74_el4_sme, smeserver-shared-folders-0_1-79_el4_sme, smeserver-shared-folders-0_1-78_el4_sme, HEAD
Error occurred while calculating annotation data.
* Tue Jun 19 2012 Daniel Berteaud <daniel@firewall-services.com> 0.1-72.sme
- Explicitly set www acl so web access works even when only individual users
  have ACLs

1 diff -Nur smeserver-shared-folders-0.1/root/etc/e-smith/events/actions/share-modify smeserver-shared-folders-0.1_mod/root/etc/e-smith/events/actions/share-modify
2 --- smeserver-shared-folders-0.1/root/etc/e-smith/events/actions/share-modify 2012-06-19 22:08:23.788834057 +0200
3 +++ smeserver-shared-folders-0.1_mod/root/etc/e-smith/events/actions/share-modify 2012-06-19 22:20:48.169250014 +0200
4 @@ -95,6 +95,7 @@
5 my @writeusers = split(/[;,]/,($properties {'WriteUsers'} || ''));
6 my @readusers = split(/[;,]/,($properties {'ReadUsers'} || ''));
7 my $rsync = $properties{'rsyncAccess'} || 'none';
8 +my $ajaxplorer = $properties{'Ajaxplorer'} || 'disabled';
9
10 # Don't reset permissions if ManualPermissions is set to 'yes'
11
12 @@ -127,6 +128,7 @@
13 $acl .= 'u:'.$user.':rX,';
14 }
15 $acl .= 'u:rsync:rX,' if ($rsync =~ /^local|global$/);
16 + $acl .= 'u:www:rwX,' unless (($http eq 'none') && ($ajaxplorer ne 'enabled'));
17
18 # Set the effective ACLs
19 system($setfacl,
20 @@ -161,6 +163,7 @@
21 $acl .= 'u:'.$user.':rX,';
22 }
23 $acl .= 'u:rsync:rX,' if ($rsync =~ /^local|global$/);
24 + $acl .= 'u:www:rX,' unless (($http eq 'none') && ($ajaxplorer ne 'enabled'));
25
26 system($setfacl,
27 '-m',

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed