source: branches/2.4/patches/2.5/fix_mom_priv.patch @ 82

Last change on this file since 82 was 82, checked in by bas, 11 years ago

Add security patch for fix_mom_priv and changelog adjustment

File size: 847 bytes
  • src/server/process_request.c

    diff --git a/src/server/process_request.c b/src/server/process_request.c
    index f433cbf..133cecd 100644
    a b void process_request( 
    678678        log_buffer);
    679679      }
    680680
     681    if (svr_conn[sfds].cn_authen != PBS_NET_CONN_FROM_PRIVIL)
     682      {
     683      sprintf(log_buffer, "request type %s from host %s rejected (connection not privileged)",
     684        reqtype_to_txt(request->rq_type),
     685        request->rq_host);
     686
     687      log_record(PBSEVENT_JOB, PBS_EVENTCLASS_JOB, id, log_buffer);
     688
     689      req_reject(PBSE_BADHOST, 0, request, NULL, "request not authorized");
     690
     691      close_client(sfds);
     692
     693      return;
     694      }
     695
    681696    if (!tfind(svr_conn[sfds].cn_addr, &okclients))
    682697      {
    683698      sprintf(log_buffer, "request type %s from host %s rejected (host not authorized)",
Note: See TracBrowser for help on using the repository browser.