forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0ed7864
committed
Well, after persuading cvsup and cvs that it _is_ possible to have local
modifiable repositories, I have a clean untrusted plperl patch to offeryou :)Highlights:* There's one perl interpreter used for both trusted and untrustedprocedures. I do think its unnecessary to keep two perlinterpreters around. If someone can break out from trusted "Safe" perlmode, well, they can do what they want already. If someone disagrees, Ican change this.* Opcode is not statically loaded anymore. Instead, we load Dynaloader,which then can grab Opcode (and anything else you can 'use') on its own.* Checked to work on FreeBSD 4.3 + perl 5.5.3 , OpenBSD 2.8 + perl5.6.1,RedHat 6.2 + perl 5.5.3* Uses ExtUtils::Embed to find what options are necessary to link withperl shared libraries* createlang is also updated, it can create untrusted perl using 'plperlu'* Example script (assuming you have Mail::Sendmail installed):create function foo() returns text as ' use Mail::Sendmail; %mail = ( To => q(you@yourname.com), From => q(me@here.com), Message => "This is a very short message" ); sendmail(%mail) or die $Mail::Sendmail::error;return "OK. Log says:\n", $Mail::Sendmail::log;' language 'plperlu';Alex Pilosov1 parent558fae1 commit0ed7864
3 files changed
+54
-49
lines changedLines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
210 | 210 |
| |
211 | 211 |
| |
212 | 212 |
| |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
213 | 219 |
| |
214 | 220 |
| |
215 | 221 |
| |
|
Lines changed: 1 addition & 26 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
33 |
| - | |
34 |
| - | |
35 |
| - | |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
55 |
| - | |
56 |
| - | |
57 | 32 |
| |
58 |
| - | |
| 33 | + | |
59 | 34 |
| |
60 | 35 |
| |
61 | 36 |
| |
|
Lines changed: 46 additions & 22 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 |
| - | |
| 36 | + | |
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
| |||
95 | 95 |
| |
96 | 96 |
| |
97 | 97 |
| |
| 98 | + | |
98 | 99 |
| |
99 | 100 |
| |
100 | 101 |
| |
| |||
121 | 122 |
| |
122 | 123 |
| |
123 | 124 |
| |
124 |
| - | |
| 125 | + | |
125 | 126 |
| |
126 | 127 |
| |
127 | 128 |
| |
| |||
133 | 134 |
| |
134 | 135 |
| |
135 | 136 |
| |
136 |
| - | |
| 137 | + | |
137 | 138 |
| |
138 | 139 |
| |
139 | 140 |
| |
| |||
201 | 202 |
| |
202 | 203 |
| |
203 | 204 |
| |
204 |
| - | |
| 205 | + | |
205 | 206 |
| |
206 |
| - | |
207 |
| - | |
208 |
| - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
209 | 210 |
| |
210 | 211 |
| |
211 | 212 |
| |
| |||
229 | 230 |
| |
230 | 231 |
| |
231 | 232 |
| |
232 |
| - | |
| 233 | + | |
233 | 234 |
| |
234 | 235 |
| |
235 | 236 |
| |
236 | 237 |
| |
237 | 238 |
| |
238 | 239 |
| |
239 | 240 |
| |
240 |
| - | |
| 241 | + | |
241 | 242 |
| |
242 | 243 |
| |
243 |
| - | |
| 244 | + | |
244 | 245 |
| |
245 | 246 |
| |
246 | 247 |
| |
247 | 248 |
| |
248 | 249 |
| |
249 | 250 |
| |
250 |
| - | |
| 251 | + | |
251 | 252 |
| |
252 | 253 |
| |
253 | 254 |
| |
254 | 255 |
| |
255 | 256 |
| |
256 | 257 |
| |
| 258 | + | |
257 | 259 |
| |
258 | 260 |
| |
259 |
| - | |
260 |
| - | |
261 |
| - | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
262 | 264 |
| |
263 |
| - | |
264 |
| - | |
265 |
| - | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
266 | 268 |
| |
267 | 269 |
| |
268 | 270 |
| |
| |||
336 | 338 |
| |
337 | 339 |
| |
338 | 340 |
| |
339 |
| - | |
| 341 | + | |
340 | 342 |
| |
341 | 343 |
| |
342 | 344 |
| |
| |||
348 | 350 |
| |
349 | 351 |
| |
350 | 352 |
| |
351 |
| - | |
| 353 | + | |
| 354 | + | |
352 | 355 |
| |
353 | 356 |
| |
354 | 357 |
| |
| |||
397 | 400 |
| |
398 | 401 |
| |
399 | 402 |
| |
400 |
| - | |
| 403 | + | |
401 | 404 |
| |
402 | 405 |
| |
403 | 406 |
| |
404 | 407 |
| |
405 | 408 |
| |
406 | 409 |
| |
407 | 410 |
| |
408 |
| - | |
| 411 | + | |
409 | 412 |
| |
410 | 413 |
| |
411 | 414 |
| |
| |||
529 | 532 |
| |
530 | 533 |
| |
531 | 534 |
| |
| 535 | + | |
532 | 536 |
| |
533 | 537 |
| |
| 538 | + | |
534 | 539 |
| |
535 | 540 |
| |
536 | 541 |
| |
| |||
541 | 546 |
| |
542 | 547 |
| |
543 | 548 |
| |
| 549 | + | |
544 | 550 |
| |
545 | 551 |
| |
546 | 552 |
| |
| |||
556 | 562 |
| |
557 | 563 |
| |
558 | 564 |
| |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
559 | 583 |
| |
560 | 584 |
| |
561 | 585 |
| |
| |||
634 | 658 |
| |
635 | 659 |
| |
636 | 660 |
| |
637 |
| - | |
| 661 | + | |
638 | 662 |
| |
639 | 663 |
| |
640 | 664 |
| |
|
0 commit comments
Comments
(0)