From de8d260053b931fa721396c6e38e984dafdf9559 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Kou=C5=99il?= Date: Sun, 11 Apr 2010 19:35:34 +0000 Subject: [PATCH] Set authz policy in proxy branch too (to ensure notifications are authorized properly) --- org.glite.lb.server/src/bkserverd.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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) -- 1.8.2.3