git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 74c1723) | patch
Creator of a range type must have permission to call support functions.
2011年11月23日 17:45:49 +0000 (12:45 -0500)
2011年11月23日 17:45:49 +0000 (12:45 -0500)
commit a912a2784be5d144aab89e447dfe8ca74b6ad079
Creator of a range type must have permission to call support functions.

Since range types can be created by non-superusers, we need to consider
their permissions. Ideally we'd check this when the type is used, not
when it's created, but that seems like much more trouble than it's worth.
The existing restriction that the support functions be immutable already
prevents most cases where an unauthorized call to a function might be
thought a security issue, and the fact that the user has no access to
the results of the system's calls to subtype_diff closes off the other
plausible reason for concern. So this check is basically pro-forma,
but let's make it anyway.
src/backend/commands/typecmds.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /