From: | "Robert Haas" <robertmhaas(at)gmail(dot)com> |
---|---|
To: | "Gregory Stark" <stark(at)enterprisedb(dot)com> |
Cc: | "KaiGai Kohei" <kaigai(at)kaigai(dot)gr(dot)jp>, "Peter Eisentraut" <peter_e(at)gmx(dot)net>, "KaiGai Kohei" <kaigai(at)ak(dot)jp(dot)nec(dot)com>, pgsql-hackers(at)postgresql(dot)org, "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "Bruce Momjian" <bruce(at)momjian(dot)us> |
Subject: | Re: Updates of SE-PostgreSQL 8.4devel patches (r1268) |
Date: | 2008-12-12 17:31:11 |
Message-ID: | 603c8f070812120931q87e476es143b7f38519363ec@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, Dec 12, 2008 at 11:57 AM, Gregory Stark <stark(at)enterprisedb(dot)com> wrote:
>> Obviously sandwhiching two values in one column is not going to work.
>> The only question here is whether it's important to simultaneously
>> support both DAC and MAC. As far as I can see, KaiGai is the only one
>> arguing that we don't need to do that (except for Tom, who doesn't
>> like either feature). If anyone else agrees with his position, now
>> would be a good time to speak up.
>
> Well maybe I'm not following. I think it's strange to need two different
> row-based security methods. Can you give some examples of how you would use
> these two mechanisms together?
Not really. I'm not an SELinux expert. But typically the two do
exist alongside one another. For example, installing SELinux (MAC)
does on your system does not make "chmod g+w file" (DAC) stop working;
it merely performs an ADDITIONAL security check before allowing access
to the file. You have to satisfy BOTH SELinux AND the ordinary
filesystem permissions system in order to perform an operation on a
file.
Similarly, we have SQL statements "GRANT {SELECT|INSERT|DELETE|etc} ON
table..." and hopefully soon a column-level variant of that same
syntax. Those permissions aren't going to be ignored just because you
also enable SELinux to control access to those tables or columns. Or
at least I certainly hope they aren't.
The contention of the author of this patch is that row-level access is
somehow different - that even though we have two sets of checks for
files, tables, and (assuming Stephen Frost's patch is accepted)
columns, we will only have one set of checks for rows, and you can
pick which one you want.
...Robert
From | Date | Subject | |
---|---|---|---|
Next Message | Simon Riggs | 2008-12-12 17:33:29 | Re: benchmarking the query planner |
Previous Message | Kevin Grittner | 2008-12-12 17:27:59 | Re: benchmarking the query planner |