forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite79350f
committed
Remove explicit superuser checks in favor of ACLs
This removes the explicit superuser checks in the various file-accessfunctions in the backend, specifically pg_ls_dir(), pg_read_file(),pg_read_binary_file(), and pg_stat_file(). Instead, EXECUTE is REVOKE'dfrom public for these, meaning that only a superuser is able to run themby default, but access to them can be GRANT'd to other roles.Reviewed-By: Michael PaquierDiscussion:https://postgr.es/m/20171231191939.GR2416%40tamriel.snowman.net1 parent94c1f9b commite79350f
2 files changed
+14
-20
lines changedLines changed: 14 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1156 | 1156 |
| |
1157 | 1157 |
| |
1158 | 1158 |
| |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
1159 | 1173 |
| |
1160 | 1174 |
| |
1161 | 1175 |
| |
|
Lines changed: 0 additions & 20 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
195 | 195 |
| |
196 | 196 |
| |
197 | 197 |
| |
198 |
| - | |
199 |
| - | |
200 |
| - | |
201 |
| - | |
202 |
| - | |
203 | 198 |
| |
204 | 199 |
| |
205 | 200 |
| |
| |||
236 | 231 |
| |
237 | 232 |
| |
238 | 233 |
| |
239 |
| - | |
240 |
| - | |
241 |
| - | |
242 |
| - | |
243 |
| - | |
244 | 234 |
| |
245 | 235 |
| |
246 | 236 |
| |
| |||
313 | 303 |
| |
314 | 304 |
| |
315 | 305 |
| |
316 |
| - | |
317 |
| - | |
318 |
| - | |
319 |
| - | |
320 |
| - | |
321 | 306 |
| |
322 | 307 |
| |
323 | 308 |
| |
| |||
399 | 384 |
| |
400 | 385 |
| |
401 | 386 |
| |
402 |
| - | |
403 |
| - | |
404 |
| - | |
405 |
| - | |
406 |
| - | |
407 | 387 |
| |
408 | 388 |
| |
409 | 389 |
| |
|
0 commit comments
Comments
(0)