All of lore.kernel.org
 help / color / mirror / Atom feed
From: KaiGai Kohei <kaigai@kaigai.gr.jp>
To: James Morris <jmorris@namei.org>
Cc: KaiGai Kohei <kaigai@ak.jp.nec.com>,
	SELinux@tycho.nsa.gov, Stephen Frost <sfrost@snowman.net>
Subject: Re: (forw) [bruce@momjian.us: [ANNOUNCE] Need help on possible PG 8.4 security features]
Date: Wed, 28 Jan 2009 08:19:15 +0900	[thread overview]
Message-ID: <497F9673.4060407@kaigai.gr.jp> (raw)
In-Reply-To: <alpine.LRH.1.10.0901280847210.11866@tundra.namei.org>

James Morris wrote:
> On Tue, 27 Jan 2009, KaiGai Kohei wrote:
> 
>> At the LCA example, I assigned sepgsql_fixed_table_t on the
>> "drink" table, so newly inserted tuples also inherit it.
> 
> Can this type be anything defined by the admin?

YES, as follows:

CREATE TABLE drink (
   id   integer primary key,
   name text security_label = 'system_u:object_r:example_foo_t',
   price integer
) security_label = 'system_u:object_r:example_var_t';

It enables to create a table/columns with specified context.

and,

INSERT INTO drink (security_label, id, name, price)
   VALUES ('system_u:object_r:example_baz_t', 1, 'coffee', 120);

It enables to insert a tuple with specified context.

(*) security_label is a system column, so it automatically
     generated for all tables, and not expanded by "SELECT *".

> Why is MCS being used in the example?  Would anything stop the examples 
> using types such as "marketing_department_t" and "research_department_t", 
> with no MCS ?

It is possible, if we make an example policy module.

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:[~2009-01-27 23:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-27  1:24 (forw) [bruce@momjian.us: [ANNOUNCE] Need help on possible PG 8.4 security features] Stephen Frost
2009-01-27  8:22 ` KaiGai Kohei
2009-01-27 13:26   ` James Morris
2009-01-27 14:20     ` KaiGai Kohei
2009-01-27 21:53       ` James Morris
2009-01-27 23:19         ` KaiGai Kohei [this message]

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=497F9673.4060407@kaigai.gr.jp \
    --to=kaigai@kaigai.gr.jp \
    --cc=SELinux@tycho.nsa.gov \
    --cc=jmorris@namei.org \
    --cc=kaigai@ak.jp.nec.com \
    --cc=sfrost@snowman.net \
    /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.