From: Tom Lane <tgl@sss.pgh.pa.us>
To: David G. Johnston <david.g.johnston@gmail.com>
Cc: Li EF Zhang <bjzhangl@cn.ibm.com>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Can not ALTER TEXT SEARCH DICTIONARY intdict which is default in dict_int
Date: Wed, 25 Aug 2021 00:19:55 -0400
Message-ID: <513908.1629865195@sss.pgh.pa.us> (raw)
In-Reply-To: <CAKFQuwYHO8=5MjpUJgmLCJTz_okaUWVVqADhcJ84tukMTEATqg@mail.gmail.com>
References: <OFD7035907.C8BCC584-ON0025873B.002264DA-0025873B.0022E529@ibm.com>
<4c31310f6e4fbdaf490bad243c29dc541d516110.camel@cybertec.at>
<OF01170058.85F55F8C-ON0025873C.00150470-0025873C.00153513@ibm.com>
<CAKFQuwYHO8=5MjpUJgmLCJTz_okaUWVVqADhcJ84tukMTEATqg@mail.gmail.com>
"David G. Johnston" <david.g.johnston@gmail.com> writes:
> On Tue, Aug 24, 2021 at 8:51 PM Li EF Zhang <bjzhangl@cn.ibm.com> wrote:
>> Thanks for your answer. My doubt is that since an ordinary user creates
>> the extension, shouldn't be this user the owner of the objects created
>> within the extension?
> While that is a possible implementation choice, that isn't what was chosen.
Let's be clear here: that is not some random implementor's decision.
That is *necessary*, else the feature is completely insecure.
The example given at the top of the thread isn't especially
security-relevant, but there are a lot of other possible ALTER commands
that are. For example, an ordinary user granted ownership of a
"C"-language function can easily modify it in a way that allows her to
gain full control of the installation. So we cannot implement trusted
extensions by allowing the user requesting the install to own the
individual objects within the extension.
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, david.g.johnston@gmail.com, bjzhangl@cn.ibm.com, laurenz.albe@cybertec.at
Subject: Re: Can not ALTER TEXT SEARCH DICTIONARY intdict which is default in dict_int
In-Reply-To: <513908.1629865195@sss.pgh.pa.us>
References: <OFD7035907.C8BCC584-ON0025873B.002264DA-0025873B.0022E529@ibm.com> <4c31310f6e4fbdaf490bad243c29dc541d516110.camel@cybertec.at> <OF01170058.85F55F8C-ON0025873C.00150470-0025873C.00153513@ibm.com> <CAKFQuwYHO8=5MjpUJgmLCJTz_okaUWVVqADhcJ84tukMTEATqg@mail.gmail.com> <513908.1629865195@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox