Add permission checks on SELECT INTO - Mailing list pgsql-hackers

From Kohei KaiGai
Subject Add permission checks on SELECT INTO
Date
Msg-id CADyhKSX7iu906341SXgTy=i7H1FnqzDreK0B-nOve3X9=Ukapw@mail.gmail.com
Whole thread Raw
List pgsql-hackers
This patch adds checks of INSERT permission on new tables constructed
by SELECT INTO or CREATE TABLE AS.

It does not change existing behavior except for tiny bit of cases when
a default privilege setting does not allow owner to insert tuples,
because table's default acl allows everything to its owner.
However, this check has significant meaning from the perspective of
mac; to prevent a user who can reference credential information to
write-out tables with public label; this characteristic is called as
data-flow-control.

Please also see the previous discussion as: http://bit.ly/uxeOhO

Thanks,
--
KaiGai Kohei <kaigai@kaigai.gr.jp>

Attachment

pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: unite recovery.conf and postgresql.conf
Next
From: Kohei KaiGai
Date:
Subject: Re: [v9.2] Fix Leaky View Problem