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:
854 bytes
|
Rev | Line | |
---|
[82] | 1 | --- process_request.c.org 2013-09-10 09:39:48.163386290 +0200 |
---|
| 2 | +++ process_request.c 2013-09-10 09:41:20.726592234 +0200 |
---|
| 3 | @@ -640,6 +640,23 @@ |
---|
| 4 | log_buffer); |
---|
| 5 | } |
---|
| 6 | |
---|
| 7 | + /* HvB patch backport from 2.5 */ |
---|
| 8 | + if (svr_conn[sfds].cn_authen != PBS_NET_CONN_FROM_PRIVIL) |
---|
| 9 | + { |
---|
| 10 | + sprintf(log_buffer, "request type %s from host %s rejected (connection not privileged)", |
---|
| 11 | + reqtype_to_txt(request->rq_type), |
---|
| 12 | + request->rq_host); |
---|
| 13 | + |
---|
| 14 | + log_record(PBSEVENT_JOB, PBS_EVENTCLASS_JOB, id, log_buffer); |
---|
| 15 | + |
---|
| 16 | + req_reject(PBSE_BADHOST, 0, request, NULL, "request not authorized"); |
---|
| 17 | + |
---|
| 18 | + close_client(sfds); |
---|
| 19 | + |
---|
| 20 | + return; |
---|
| 21 | + } |
---|
| 22 | + /* End HvB patch backport from 2.5 */ |
---|
| 23 | + |
---|
| 24 | if (!tfind(svr_conn[sfds].cn_addr, &okclients)) |
---|
| 25 | { |
---|
| 26 | sprintf(log_buffer, "request type %s from host %s rejected (host not authorized)", |
---|
Note: See
TracBrowser
for help on using the repository browser.