forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf7a2002
committed
Add object TRUNCATE hook
All operations with acl permissions checks should have a corresponding hookso that, for example, mandatory access control (MAC) may be enforced by anextension. The command TRUNCATE is missing this hook, so add it. Patch byYuli Khodorkovskiy with some editorialization by me. Based on the discussionnot back-patched. A separate patch will exercise the hook in the sepgsqlextension.Author: Yuli KhodorkovskiyReviewed-by: Joe ConwayDiscussion:https://postgr.es/m/CAFL5wJcomybj1Xdw7qWmPJRpGuFukKgNrDb6uVBaCMgYS9dkaA%40mail.gmail.com1 parentd1c866e commitf7a2002
File tree
3 files changed
+32
-1
lines changed- src
- backend
- catalog
- commands
- include/catalog
3 files changed
+32
-1
lines changedLines changed: 17 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
| 14 | + | |
14 | 15 |
| |
15 | 16 |
| |
16 | 17 |
| |
| |||
64 | 65 |
| |
65 | 66 |
| |
66 | 67 |
| |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
67 | 84 |
| |
68 | 85 |
| |
69 | 86 |
| |
|
Lines changed: 2 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1937 | 1937 |
| |
1938 | 1938 |
| |
1939 | 1939 |
| |
| 1940 | + | |
| 1941 | + | |
1940 | 1942 |
| |
1941 | 1943 |
| |
1942 | 1944 |
| |
|
Lines changed: 13 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
40 | 44 |
| |
41 | 45 |
| |
42 | 46 |
| |
| |||
45 | 49 |
| |
46 | 50 |
| |
47 | 51 |
| |
48 |
| - | |
| 52 | + | |
| 53 | + | |
49 | 54 |
| |
50 | 55 |
| |
51 | 56 |
| |
| |||
131 | 136 |
| |
132 | 137 |
| |
133 | 138 |
| |
| 139 | + | |
134 | 140 |
| |
135 | 141 |
| |
136 | 142 |
| |
| |||
160 | 166 |
| |
161 | 167 |
| |
162 | 168 |
| |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
163 | 175 |
| |
164 | 176 |
| |
165 | 177 |
| |
|
0 commit comments
Comments
(0)