From: Andy Warner <warner@rubix.com>
To: Eamon Walsh <ewalsh@tycho.nsa.gov>
Cc: KaiGai Kohei <kaigai@kaigai.gr.jp>, selinux@tycho.nsa.gov
Subject: Re: [PATCH] libselinux: selabel_*() support for database objects
Date: Wed, 10 Mar 2010 13:04:44 -0500 [thread overview]
Message-ID: <4B97DF3C.6070601@rubix.com> (raw)
In-Reply-To: <4B97D2D0.3010507@tycho.nsa.gov>
On 3/10/2010 12:11 PM, Eamon Walsh wrote:
> On 03/09/2010 05:16 PM, KaiGai Kohei wrote:
>
>> (2010/03/10 5:08), Eamon Walsh wrote:
>>
>>
>>> What is the meaning of the fourth "temp" argument here. Aren't lines
>>> only supposed to have three entries? Please remove this if it is not needed.
>>>
>>>
>> If the line has four or more elements, we want to raise an error, rather than
>> ignoring it.
>> If here is not the fourth %as, sscanf() does not return 4, does it?
>>
>> Thanks,
>>
>>
>
> OK, that makes sense.
>
> I don't see any other issues with the patches. Unless Andy has any
> concerns, I will push them later today or tomorrow.
>
What is implemented looks fine to me. Just a few comments and questions.
Only thing that may keep us from fully using this functionality is that
because there is not support for db_schema and db_catalog objects, it
can't fully cover our labeled objects (correct?). Our naming scheme is
database.catalog.schema.table, so I am guessing only the database and
table could be labeled explicitly through the *_contexts file. It would
probably confuse our customers to be able to assign contexts to some
objects but not others. This might delay our use of it until the new DB
object classes come out.
We currently overload the dir object class to cover our catalog and
schema objects. This is not great, but the best choice we have to cover
those objects. KaiGai, is it possible to actually use a dir object class
within the *_contexts file? I acknowledge overloading/mixing these
object classes (db and OS) is controversial and not the best solution,
but I am curious if it would be technically possible under this patch.
Or, does it restrict its functionality to only db objects?
Lastly, regarding tuples, I noticed the ability to label tuples was
removed because tuples are not named. Would it be useful to label all
tuples under an object (e.g., table) as follows. I am sure you
considered this, just curious of your thoughts:
db_tuple *.pg_catalog.pg_table.* system_u:object_r:sepgsql_tuple_t:s0
So that all tuples under the *.pg_catalog.pg_table table would have a
context of system_u:object_r:sepgsql_tuple_t:s0. Or, is the fact that
you are not able to use anything other than * as the tuple's name simply
make things too messy? I would assume there would be a similar issue in
constructing a key value for a tuple in the call to selabel_lookup.
Andy
>
>
--
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.
next prev parent reply other threads:[~2010-03-10 18:04 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-19 8:21 [PATCH] libselinux: selabel_*() support for database objects KaiGai Kohei
2009-11-21 3:01 ` Eamon Walsh
2009-11-21 14:16 ` KaiGai Kohei
2009-11-25 23:29 ` KaiGai Kohei
2009-11-30 21:30 ` Eamon Walsh
2010-03-02 2:53 ` KaiGai Kohei
2010-03-08 23:13 ` Eamon Walsh
2010-03-08 23:26 ` Andy Warner
2010-03-08 23:34 ` KaiGai Kohei
2010-03-09 0:40 ` KaiGai Kohei
2010-03-09 1:22 ` Eamon Walsh
2010-03-09 1:42 ` KaiGai Kohei
2010-03-09 20:08 ` Eamon Walsh
2010-03-09 22:16 ` KaiGai Kohei
2010-03-10 17:11 ` Eamon Walsh
2010-03-10 18:04 ` Andy Warner [this message]
2010-03-11 4:28 ` KaiGai Kohei
2010-03-12 1:05 ` KaiGai Kohei
2010-03-15 23:13 ` Eamon Walsh
2010-03-16 0:01 ` 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=4B97DF3C.6070601@rubix.com \
--to=warner@rubix.com \
--cc=ewalsh@tycho.nsa.gov \
--cc=kaigai@kaigai.gr.jp \
--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.