From: Daniel KouĊ™il Date: Sun, 11 Apr 2010 19:35:34 +0000 (+0000) Subject: Set authz policy in proxy branch too (to ensure notifications are authorized properly) X-Git-Tag: glite-lb-glite-LB_R_3_2_10_1~4 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=de8d260053b931fa721396c6e38e984dafdf9559;p=jra1mw.git Set authz policy in proxy branch too (to ensure notifications are authorized properly) --- diff --git a/org.glite.lb.server/src/bkserverd.c b/org.glite.lb.server/src/bkserverd.c index 54fc17c..3e074c8 100644 --- 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)