git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
28b92d7
)
Set authz policy in proxy branch too (to ensure notifications are authorized properly)
author
Daniel Kouřil
<kouril@ics.muni.cz>
Sun, 11 Apr 2010 19:35:34 +0000
(19:35 +0000)
committer
Daniel Kouřil
<kouril@ics.muni.cz>
Sun, 11 Apr 2010 19:35:34 +0000
(19:35 +0000)
org.glite.lb.server/src/bkserverd.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.server/src/bkserverd.c
b/org.glite.lb.server/src/bkserverd.c
index
54fc17c
..
3e074c8
100644
(file)
--- a/
org.glite.lb.server/src/bkserverd.c
+++ b/
org.glite.lb.server/src/bkserverd.c
@@
-1382,6
+1382,16
@@
int bk_handle_connection_proxy(int conn, struct timeval *timeout, void *data)
ctx->noAuth = 1;
ctx->noIndex = 1;
+ if ( authz_policy.actions_num ) {
+ int i,j;
+ for (i=0; i < authz_policy.actions_num; i++)
+ for (j = 0; j < authz_policy.actions[i].rules_num; j++)
+ edg_wll_add_authz_rule(ctx,
+ &ctx->authz_policy,
+ authz_policy.actions[i].id,
+ &authz_policy.actions[i].rules[j]);
+ }
+
/* required to match superuser-authorized notifications */
if (fake_host)