Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
f39748a7
Commit
f39748a7
authored
Dec 19, 2003
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forbid REVOKE on untrusted languages, and don't dump privileges of
untrusted languages (in case they sneak in).
parent
9a1cab43
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
src/backend/catalog/aclchk.c
src/backend/catalog/aclchk.c
+2
-2
src/bin/pg_dump/pg_dump.c
src/bin/pg_dump/pg_dump.c
+6
-5
No files found.
src/backend/catalog/aclchk.c
View file @
f39748a7
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/catalog/aclchk.c,v 1.9
5 2003/11/29 19:51:42 pgsql
Exp $
* $PostgreSQL: pgsql/src/backend/catalog/aclchk.c,v 1.9
6 2003/12/19 14:21:56 petere
Exp $
*
* NOTES
* See acl.h.
...
...
@@ -594,7 +594,7 @@ ExecuteGrantStmt_Language(GrantStmt *stmt)
aclcheck_error
(
ACLCHECK_NO_PRIV
,
ACL_KIND_LANGUAGE
,
NameStr
(
pg_language_tuple
->
lanname
));
if
(
!
pg_language_tuple
->
lanpltrusted
&&
stmt
->
is_grant
)
if
(
!
pg_language_tuple
->
lanpltrusted
)
ereport
(
ERROR
,
(
errcode
(
ERRCODE_WRONG_OBJECT_TYPE
),
errmsg
(
"language
\"
%s
\"
is not trusted"
,
langname
)));
...
...
src/bin/pg_dump/pg_dump.c
View file @
f39748a7
...
...
@@ -12,7 +12,7 @@
* by PostgreSQL
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.36
0 2003/12/06 03:00:12 tgl
Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_dump.c,v 1.36
1 2003/12/19 14:21:56 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -4633,6 +4633,7 @@ dumpProcLang(Archive *fout, ProcLangInfo *plang)
NULL
,
""
,
plang
->
dobj
.
catId
,
0
,
plang
->
dobj
.
dumpId
);
if
(
plang
->
lanpltrusted
)
dumpACL
(
fout
,
plang
->
dobj
.
catId
,
plang
->
dobj
.
dumpId
,
"LANGUAGE"
,
qlanname
,
plang
->
lanname
,
funcInfo
->
pronamespace
->
nspname
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment