Re: Updates of SE-PostgreSQL 8.4devel patches (r1268) - Mailing list pgsql-hackers

From KaiGai Kohei
Subject Re: Updates of SE-PostgreSQL 8.4devel patches (r1268)
Date
Msg-id 4941C57D.8050702@ak.jp.nec.com
Whole thread Raw
In response to Re: Updates of SE-PostgreSQL 8.4devel patches (r1268)  (KaiGai Kohei <kaigai@ak.jp.nec.com>)
Responses Re: Updates of SE-PostgreSQL 8.4devel patches (r1268)  (KaiGai Kohei <kaigai@ak.jp.nec.com>)
Re: Updates of SE-PostgreSQL 8.4devel patches (r1268)  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
I understood objections for "enable/disable something on compile-time"
approach. The following items are my revised proposal.
It does not conflicts to the policy Peter said before in this thread.

Items to be revised:

- It allows to compile multiple security mechanis within a single binary.

- It provides "--enable-selinux" configure option to build SELinux support,  but the Row-level ACLs is always built
becauseit does not require any  platform specific libraries and so on.
 

- User choose one (or no) security mechanism on initdb and postmaster  starting up via $PGDATA/postgresql.conf. The
currentavailable options  are selinux, rowacl and nothing.  (*) What should be the default? rowacl? or, nothing?
 
  The modified initdb interface is as follows:    $ initdb --pgace-security=(selinux|rowacl|nothing)

- It add a new system column for security purpose. It enables to store  a security attribute of tuple, so working
securitymechanism has to  handle it properly. For example, SE-PostgreSQL handles a tuple without  valid security
contextas a "unlabeled_t" tuple.
 

- The security mechanism can control whether the new tuple has its  security field, or not. If no security field is
necessary,t_infomask  is not set HEAP_HASSECURITY bit, and it does not consume any additional  storage space.
 

Thanks,
-- 
OSS Platform Development Division, NEC
KaiGai Kohei <kaigai@ak.jp.nec.com>


pgsql-hackers by date:

Previous
From: "Robert Haas"
Date:
Subject: Re: benchmarking the query planner
Next
From: Tom Lane
Date:
Subject: Re: Mostly Harmless: Welcoming our C++ friends