Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > Re: [0/4] Propo...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 20 of 27 Topic 9282 of 10114
Post > Topic >>

Re: [0/4] Proposal of SE-PostgreSQL patches

by kaigai@[EMAIL PROTECTED] (KaiGai Kohei) May 13, 2008 at 06:46 PM

Tom Lane wrote:
> KaiGai Kohei <kaigai@[EMAIL PROTECTED]
> writes:
>> Tom Lane wrote:
>>> Yeah, I remember those.  What needs to be looked at here is *why* the
>>> output is changing.  For a patch that allegedly does not touch the
>>> planner, it's fairly disturbing that you don't get the same results.
> 
>> SE-PostgreSQL does not touch the planner, but it modifies given query
>> to filter violated tuples for the current user.
> 
> Hmm.  Is that really a good idea, compared to hard-wiring the checks
> into nodeSeqscan and friends?  I didn't look at the query-rewriting
> ****tion of the patch in any detail, but I'd tend not to trust suchte
> a technique very far: getting it right is going to be quite complex
> and probably bug prone.

In the prior base version (8.2.x and 8.3.x), I tended to implement
these stuffs in the modular part as far as possible, because massive
patched hanks makes more difficult to follow the mainstreamed PostgreSQL.
:-(

However, the hard-wides checks look like a good idea for me.
I tried to implement a prototype of the disign, and currently it works
fine.
If we can replace the implementation of tuple-level access controls by
this
design, it makes the implementation simpler.

Now, I add a hook into ExecScan(). It can return true or false, to decide
whether a given tuple is filtered or not.
Permissions to be evaluated are delivered via Scan structure. A variable
named as pgaceTuplePerms (uint32) is added to keep permission set for
tuple level access controls into Scan structure.
If the security module put a proper bitmask on pgaceTuplePerms of
RangeTblEntry,
it is copied to related Scan structure later.

>>> Are you sure that the security_label type should not have an array
type?
> 
>> Yes, security_label type should not have an array type.
> 
> You didn't provide one ounce of justification for making it not obey the
> expected behavior, so I'm not accepting this position.  It doesn't seem
> to me to be all that unlikely that users would want to compute with
> arrays of security labels.  As an example:
> 	select ... where security_label in ('foo', 'bar')
> which will become an = ANY(ARRAY[]) construct under the hood.

Ah.., I didn't intend such kind of usage, so security_label type does not
have operators to use it directly, not only array sup****t.

I'll add it in the next patch set.

Thanks,
-- 
OSS Platform Development Division, NEC
KaiGai Kohei <kaigai@[EMAIL PROTECTED]
>

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
 




 27 Posts in Topic:
Re: [0/4] Proposal of SE-PostgreSQL patches
kaigai@[EMAIL PROTECTED]   2008-04-30 18:01:57 
Re: [0/4] Proposal of SE-PostgreSQL patches
josh@[EMAIL PROTECTED] (  2008-04-30 18:01:58 
Re: [0/4] Proposal of SE-PostgreSQL patches
jd@[EMAIL PROTECTED] (&q  2008-04-30 19:11:34 
Re: [0/4] Proposal of SE-PostgreSQL patches
tgl@[EMAIL PROTECTED] (T  2008-05-05 21:58:11 
Re: [0/4] Proposal of SE-PostgreSQL patches
tgl@[EMAIL PROTECTED] (T  2008-05-05 16:39:25 
Re: [0/4] Proposal of SE-PostgreSQL patches
tgl@[EMAIL PROTECTED] (T  2008-05-06 14:56:41 
Re: [0/4] Proposal of SE-PostgreSQL patches
ajs@[EMAIL PROTECTED] (A  2008-05-06 15:11:38 
Re: [0/4] Proposal of SE-PostgreSQL patches
tgl@[EMAIL PROTECTED] (T  2008-05-06 15:28:25 
Re: [0/4] Proposal of SE-PostgreSQL patches
ajs@[EMAIL PROTECTED] (A  2008-05-06 16:00:13 
Re: [0/4] Proposal of SE-PostgreSQL patches
tgl@[EMAIL PROTECTED] (T  2008-05-06 17:44:44 
Re: [0/4] Proposal of SE-PostgreSQL patches
josh@[EMAIL PROTECTED] (  2008-05-07 11:19:56 
Re: [0/4] Proposal of SE-PostgreSQL patches
kaigai@[EMAIL PROTECTED]   2008-05-07 18:02:15 
Re: [0/4] Proposal of SE-PostgreSQL patches
tgl@[EMAIL PROTECTED] (T  2008-05-07 10:06:17 
Re: [0/4] Proposal of SE-PostgreSQL patches
kaigai@[EMAIL PROTECTED]   2008-05-09 19:10:32 
Re: [0/4] Proposal of SE-PostgreSQL patches
tgl@[EMAIL PROTECTED] (T  2008-05-09 10:23:12 
Re: [0/4] Proposal of SE-PostgreSQL patches
kaigai@[EMAIL PROTECTED]   2008-05-12 16:18:54 
Re: [0/4] Proposal of SE-PostgreSQL patches
tgl@[EMAIL PROTECTED] (T  2008-05-12 10:30:13 
Re: [0/4] Proposal of SE-PostgreSQL patches
andrew@[EMAIL PROTECTED]   2008-05-12 10:45:55 
Re: [0/4] Proposal of SE-PostgreSQL patches
tgl@[EMAIL PROTECTED] (T  2008-05-12 10:52:37 
Re: [0/4] Proposal of SE-PostgreSQL patches
kaigai@[EMAIL PROTECTED]   2008-05-13 18:46:56 
Re: [0/4] Proposal of SE-PostgreSQL patches
kaigai@[EMAIL PROTECTED]   2008-05-07 14:52:27 
Re: [0/4] Proposal of SE-PostgreSQL patches
kaigai@[EMAIL PROTECTED]   2008-05-08 15:06:51 
Re: [0/4] Proposal of SE-PostgreSQL patches
kaigai@[EMAIL PROTECTED]   2008-05-30 15:08:56 
Re: [0/4] Proposal of SE-PostgreSQL patches
bruce@[EMAIL PROTECTED]   2008-06-25 23:58:09 
Re: [0/4] Proposal of SE-PostgreSQL patches
josh@[EMAIL PROTECTED] (  2008-06-26 07:43:39 
Re: [0/4] Proposal of SE-PostgreSQL patches
kaigai@[EMAIL PROTECTED]   2008-06-27 00:32:32 
Re: [0/4] Proposal of SE-PostgreSQL patches
josh@[EMAIL PROTECTED] (  2008-06-26 09:29:44 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Sep 7 1:53:10 CDT 2008.