forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1564e92
committed
Require the issuer of CREATE TYPE to own the functions mentioned in the
type definition. Because use of a type's I/O conversion functions isn'taccess-checked, CREATE TYPE amounts to granting public execute permissionson the functions, and so allowing it to anybody means that someone couldtheoretically gain access to a function he's not supposed to be able toexecute. The parameter-type restrictions already enforced by CREATE TYPEmake it fairly unlikely that this oversight is meaningful in practice,but still it seems like a good idea to plug the hole going forward.Also, document the implicit grant just in case anybody gets the idea ofbuilding I/O functions that might need security restrictions.1 parent4b3252c commit1564e92
File tree
2 files changed
+37
-2
lines changed- doc/src/sgml/ref
- src/backend/commands
2 files changed
+37
-2
lines changedLines changed: 12 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
446 | 446 |
| |
447 | 447 |
| |
448 | 448 |
| |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
449 | 460 |
| |
450 | 461 |
| |
451 | 462 |
| |
|
Lines changed: 25 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
330 | 330 |
| |
331 | 331 |
| |
332 | 332 |
| |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
333 | 357 |
| |
334 | 358 |
| |
335 | 359 |
| |
|
0 commit comments
Comments
(0)