- Notifications
You must be signed in to change notification settings - Fork5
Commit93a6be6
committed
Revise the permission checking on user mapping DDL commands.
CREATE/ALTER/DROP USER MAPPING are now allowed either by the server owner orby a user with USAGE privileges for his own user name. This is more or lesswhat the SQL standard wants anyway (plus "implementation-defined")Hide information_schema.user_mapping_options.option_value, unless the currentuser is the one associated with the user mapping, or is the server owner andthe mapping is for PUBLIC, or is a superuser. This is to protect passwords.Also, fix a bug in information_schema._pg_foreign_servers, which hid serversusing wrappers where the current user did not have privileges on the wrapper.The correct behavior is to hide servers where the current user has noprivileges on the server.1 parentfe62698 commit93a6be6
File tree
8 files changed
+89
-46
lines changed- doc/src/sgml
- ref
- src
- backend
- catalog
- commands
- test/regress
- expected
- sql
8 files changed
+89
-46
lines changedLines changed: 7 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
5081 | 5081 |
| |
5082 | 5082 |
| |
5083 | 5083 |
| |
5084 |
| - | |
| 5084 | + | |
| 5085 | + | |
| 5086 | + | |
| 5087 | + | |
| 5088 | + | |
| 5089 | + | |
5085 | 5090 |
| |
5086 | 5091 |
| |
5087 | 5092 |
| |
|
Lines changed: 8 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 |
| - | |
35 |
| - | |
| 34 | + | |
36 | 35 |
| |
37 | 36 |
| |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
38 | 43 |
| |
39 | 44 |
| |
40 | 45 |
| |
|
Lines changed: 8 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
34 |
| - | |
35 |
| - | |
| 34 | + | |
36 | 35 |
| |
37 | 36 |
| |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
38 | 43 |
| |
39 | 44 |
| |
40 | 45 |
| |
|
Lines changed: 9 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 |
| - | |
33 |
| - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
34 | 40 |
| |
35 | 41 |
| |
36 | 42 |
| |
|
Lines changed: 11 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 |
| - | |
| 7 | + | |
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
| |||
2465 | 2465 |
| |
2466 | 2466 |
| |
2467 | 2467 |
| |
2468 |
| - | |
2469 |
| - | |
| 2468 | + | |
| 2469 | + | |
2470 | 2470 |
| |
2471 | 2471 |
| |
2472 | 2472 |
| |
2473 |
| - | |
| 2473 | + | |
2474 | 2474 |
| |
2475 | 2475 |
| |
2476 | 2476 |
| |
| |||
2512 | 2512 |
| |
2513 | 2513 |
| |
2514 | 2514 |
| |
| 2515 | + | |
2515 | 2516 |
| |
2516 | 2517 |
| |
2517 |
| - | |
| 2518 | + | |
| 2519 | + | |
2518 | 2520 |
| |
2519 | 2521 |
| |
2520 | 2522 |
| |
| |||
2529 | 2531 |
| |
2530 | 2532 |
| |
2531 | 2533 |
| |
2532 |
| - | |
| 2534 | + | |
| 2535 | + | |
| 2536 | + | |
| 2537 | + | |
2533 | 2538 |
| |
2534 | 2539 |
| |
2535 | 2540 |
| |
|
Lines changed: 32 additions & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
10 |
| - | |
| 10 | + | |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| |||
828 | 828 |
| |
829 | 829 |
| |
830 | 830 |
| |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
831 | 858 |
| |
832 | 859 |
| |
833 | 860 |
| |
| |||
841 | 868 |
| |
842 | 869 |
| |
843 | 870 |
| |
844 |
| - | |
845 | 871 |
| |
846 | 872 |
| |
847 | 873 |
| |
848 | 874 |
| |
849 | 875 |
| |
850 |
| - | |
851 |
| - | |
852 | 876 |
| |
853 | 877 |
| |
854 |
| - | |
855 |
| - | |
856 |
| - | |
| 878 | + | |
857 | 879 |
| |
858 | 880 |
| |
859 |
| - | |
860 |
| - | |
861 |
| - | |
| 881 | + | |
862 | 882 |
| |
863 | 883 |
| |
864 | 884 |
| |
| |||
951 | 971 |
| |
952 | 972 |
| |
953 | 973 |
| |
954 |
| - | |
955 |
| - | |
956 |
| - | |
957 |
| - | |
958 |
| - | |
959 |
| - | |
| 974 | + | |
960 | 975 |
| |
961 | 976 |
| |
962 | 977 |
| |
| |||
1071 | 1086 |
| |
1072 | 1087 |
| |
1073 | 1088 |
| |
1074 |
| - | |
1075 |
| - | |
1076 |
| - | |
1077 |
| - | |
1078 |
| - | |
1079 |
| - | |
1080 |
| - | |
1081 |
| - | |
| 1089 | + | |
1082 | 1090 |
| |
1083 | 1091 |
| |
1084 | 1092 |
| |
|
Lines changed: 11 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
545 | 545 |
| |
546 | 546 |
| |
547 | 547 |
| |
548 |
| - | |
| 548 | + | |
549 | 549 |
| |
550 | 550 |
| |
551 | 551 |
| |
| |||
736 | 736 |
| |
737 | 737 |
| |
738 | 738 |
| |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
739 | 746 |
| |
740 | 747 |
| |
741 | 748 |
| |
| |||
932 | 939 |
| |
933 | 940 |
| |
934 | 941 |
| |
935 |
| - | |
936 |
| - | |
| 942 | + | |
937 | 943 |
| |
938 | 944 |
| |
939 | 945 |
| |
| |||
953 | 959 |
| |
954 | 960 |
| |
955 | 961 |
| |
956 |
| - | |
| 962 | + | |
957 | 963 |
| |
958 | 964 |
| |
959 | 965 |
| |
960 | 966 |
| |
| 967 | + | |
961 | 968 |
| |
962 | 969 |
| |
963 | 970 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
273 | 273 |
| |
274 | 274 |
| |
275 | 275 |
| |
| 276 | + | |
| 277 | + | |
276 | 278 |
| |
277 | 279 |
| |
278 | 280 |
| |
| |||
365 | 367 |
| |
366 | 368 |
| |
367 | 369 |
| |
368 |
| - | |
| 370 | + | |
369 | 371 |
| |
370 | 372 |
| |
371 | 373 |
| |
|
0 commit comments
Comments
(0)