Re: SE-PostgreSQL Specifications

Поиск
Список
Период
Сортировка
От KaiGai Kohei
Тема Re: SE-PostgreSQL Specifications
Дата
Msg-id 4A6A4EEF.5010503@kaigai.gr.jp
обсуждение исходный текст
Ответ на Re: SE-PostgreSQL Specifications  (Sam Mason <sam@samason.me.uk>)
Ответы Re: SE-PostgreSQL Specifications  (Sam Mason <sam@samason.me.uk>)
Список pgsql-hackers
Sam Mason wrote:
> On Sat, Jul 25, 2009 at 07:23:22AM +0900, KaiGai Kohei wrote:
>> Thanks, but I found an incorrect change at the trusted procedure section.
>>
>> Old)
>>   CREATE TABLE customer (
>>       cid     integer primary key,
>>       cname   varchar(32),
>>       credit  varchar(32)
>> -         SECURITY_LABEL = 'system_u:object_r:sepgsql_secret_table_t:s0'
>> - );
>>
>> New)
>>   CREATE TABLE customer (
>>       cid     integer primary key,
>>       cname   varchar(32),
>>       credit  varchar(32)
>> + ) SECURITY_LABEL = 'system_u:object_r:sepgsql_secret_table_t:s0';
>>
>> This example intends to assign "secret" label on the credit column,
>> not whole of the table. Note that the default security context shall
>> be assigned on the table and rest of columns in this case.
> 
> The show_credit() function in this section would seem to leak authority
> as well; it seems possible to determine if customers exist that
> otherwise may otherwise hidden.  For example, imagine we have a row
> in the customer table with cid=1 whose security label would normally
> prevent.  We can perform:
> 
>   SELECT show_credit(1);
> 
> and, as far as I can tell, this call would succeed.

This example shows that confined client cannot read credit card number
without using trusted procedure, but trusted procedure returns masked one.
It does not intend to hide existence of entries within customer table.

See the third box in the section.
 postgres=# SELECT cid, cname FROM customer;  cid | cname -----+-------   10 | jack   13 | adam   14 | liza (3 rows)

This query does not read from customer.credit, so it should be succeeded.

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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: COPY WITH CSV FORCE QUOTE * -- REVIEW
Следующее
От: Mark Kirkwood
Дата:
Сообщение: Re: Lock Wait Statistics (next commitfest)