All of lore.kernel.org
 help / color / mirror / Atom feed
From: KaiGai Kohei <kaigai@kaigai.gr.jp>
To: russell@coker.com.au
Cc: Stephen Smalley <sds@tycho.nsa.gov>, selinux@tycho.nsa.gov
Subject: Re: [ANN] SE-PostgreSQL 8.2.3-1.0 alpha release
Date: Wed, 07 Mar 2007 23:01:35 +0900	[thread overview]
Message-ID: <45EEC5BF.9020305@kaigai.gr.jp> (raw)
In-Reply-To: <200703070936.04240.russell@coker.com.au>

Russell Coker wrote:
> On Wednesday 07 March 2007 06:17, Stephen Smalley <sds@tycho.nsa.gov> wrote:
>>> We have to store a security context of tuple in anywhere, so modifying
>>> the file format was not avoidable. The storage manager of PostgreSQL
>>> cannot handle different file formats, so SE-PostgreSQL cannot run over
>>> the unlabeled databased generated by native PostgreSQL.
>>>
>>> It might be possible, but I expect more hooks to the PostgreSQL is
>>> necessary. It will prevent to follow the version-up of native one.
>> Do they provide any kind of attribute / metadata support at that
>> granularity?  Along the lines of filesystem xattrs?
>>
>> Could you store the labels in a separate table?  Along the lines of the
>> old persistent label mapping in SELinux (issues for consistency and
>> performance, of course).
> 
> The labelling for tables and columns could be stored in a different table as 
> they don't change much.
> 
> The labelling of rows could be stored in an extra column in the table.
> 
> Then if the non-SE version of PostgreSQL had some code to ignore the SE Linux 
> column then we would have fairly good compatibility.
> 
> Kohei-san, is this a viable idea?

Russell,

Actually, I tried to use an extra (hidden) column to store a security context,
but gave up this approach.
# The following branch is the one just before I gave up:
#   http://sepgsql.googlecode.com/svn/branches/sepgsql_070210/

It did not resolve file format issue, because we have to add an extra column
into system catalog to associate a security context with table, column and so on.

(*) system catalog is a table to store the meta-information
     like the definition of the table.

The definition of system catalogs are hard-coded in the header files, so adding
an extra column could not avoid to break the database file format compatibility....

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

--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.

  reply	other threads:[~2007-03-07 14:00 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-05 12:29 [ANN] SE-PostgreSQL 8.2.3-1.0 alpha release KaiGai Kohei
2007-03-05 14:41 ` KaiGai Kohei
2007-03-07 16:17   ` Christopher J. PeBenito
2007-03-08 13:33     ` KaiGai Kohei
2007-03-08 13:33       ` Stephen Smalley
2007-03-08 14:50         ` KaiGai Kohei
2007-03-08 15:00           ` Stephen Smalley
2007-03-08 15:21             ` Joshua Brindle
2007-03-08 15:23               ` Joshua Brindle
2007-03-08 15:30                 ` Stephen Smalley
2007-03-08 16:24                   ` Eamon Walsh
2007-03-08 20:23                     ` Stephen Smalley
2007-03-09 15:25                       ` KaiGai Kohei
2007-03-09 16:37                         ` Stephen Smalley
2007-03-12 17:10                           ` Eamon Walsh
2007-03-12 17:50                             ` Stephen Smalley
2007-03-08 17:30           ` Solaris 10 w/ Trusted Extensions vs SE Linux Comparison Fletcher, Boyd C. CIV US USJFCOM JFL J9935
2007-03-08 18:39             ` Fletcher, Boyd C. CIV US USJFCOM JFL J9935
2007-03-29 15:57             ` Karl MacMillan
2007-03-06  9:34 ` [ANN] SE-PostgreSQL 8.2.3-1.0 alpha release Russell Coker
2007-03-06 19:05   ` KaiGai Kohei
2007-03-06 19:17     ` Stephen Smalley
2007-03-06 22:36       ` Russell Coker
2007-03-07 14:01         ` KaiGai Kohei [this message]
2007-03-07 13:17       ` KaiGai Kohei
2007-03-07 14:58         ` Casey Schaufler
2007-03-07 15:58           ` James W. Hoeft
2007-03-07 16:01           ` Joshua Brindle
2007-03-08 13:12             ` KaiGai Kohei
2007-03-08 13:25               ` Stephen Smalley
2007-03-08 14:34                 ` KaiGai Kohei

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=45EEC5BF.9020305@kaigai.gr.jp \
    --to=kaigai@kaigai.gr.jp \
    --cc=russell@coker.com.au \
    --cc=sds@tycho.nsa.gov \
    --cc=selinux@tycho.nsa.gov \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.