From: Joshua Brindle <jbrindle@tresys.com>
To: Ivan Gyurdiev <ivg2@cornell.edu>
Cc: selinux@tycho.nsa.gov, Stephen Smalley <sds@tycho.nsa.gov>
Subject: Re: [ SEMANAGE ] Add a few direct dbases to handle
Date: Fri, 14 Oct 2005 17:06:33 -0400 [thread overview]
Message-ID: <43501DD9.4010803@tresys.com> (raw)
In-Reply-To: <43501C38.5040907@cornell.edu>
Ivan Gyurdiev wrote:
>
>>> To put it another way.. this "direct-only" part does exist, but it's
>>> hidden away.
>>> (into dbase_config_t -> dbase), which is an interface type. Then the
>>> method table
>>> (dbase_config_t->dtable) specifies how to access it, which is
>>> equivalent to your
>>> function table for modules.
>>
>>
>> The direct-only part needs to exist. The handle is becoming very
>> cluttered with stuff that should not be there.
>
> You don't seem to realize that those databases need to exist, whether or
> not you're using the policy server, or the direct api.
> This is just another way to switch between the two.
>
The policy server can't fill in these databases since there are
permission checks it would need to do for the queries.
>>>
>>> In fact, I want to convert your modules functions into a database
>>> too, but
>>> I haven't gotten to it yet, and this isn't high priority.
>>>
>> Why? This doesn't solve any problem.
>
> For consistency, if nothing else... I think there are benefits to hiding
> data collections under a uniform interface, but I don't want to get into
> that right now - I sent Karl a long email some time ago. I know he's not
> convinced, but it's just my pet project.
>
this is a library being used by many people, I don't know that adding
things for the sake of adding them is appropriate.
> Like I said, I won't be doing that yet.
>
>>> So...basically I have multiple backend-specific portions, distributed
>>> by functionality,
>>> rather than putting it all into one big table of function pointers
>>> that aren't related.
>>
>>
>> the backend-specific portions should be hidden in a backend specific
>> handle. This means that semanage_handle_t does *not* contain *any*
>> backend specific information, all backend specific information would
>> be in semanage_direct_handle, semanage_ps_handle, and so on.
>
> The handle does not contain anything backend specific currently. Please
> give an example of something backend specific.
The subject of this email is "Add a few direct dbases to handle". Does
direct mean something different from a direct connection?
Also:
+
+#define DBASE_BASE_USERS 5
+#define DBASE_BASE_PORTS 6
+#if 0
+#define DBASE_BASE_INTERFACES 7
+#define DBASE_BASE_BOOLEANS 8
+#endif
What are these? How are they different from the other user, ports,
interfaces, booleans. Why isn't this described in the code or even email?
--
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:[~2005-10-14 21:06 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-14 18:16 [ SEMANAGE ] Add a few direct dbases to handle Ivan Gyurdiev
2005-10-14 18:39 ` [ SEMANAGE ] Bugfix previous patches Ivan Gyurdiev
2005-10-14 20:08 ` Stephen Smalley
2005-10-14 20:20 ` [ SEMANAGE ] Add a few direct dbases to handle Joshua Brindle
2005-10-14 20:40 ` Ivan Gyurdiev
2005-10-14 20:45 ` Ivan Gyurdiev
2005-10-14 20:39 ` Joshua Brindle
2005-10-14 20:59 ` Ivan Gyurdiev
2005-10-14 21:06 ` Joshua Brindle [this message]
2005-10-14 21:40 ` Ivan Gyurdiev
2005-10-15 11:34 ` Ivan Gyurdiev
2005-10-15 11:38 ` Ivan Gyurdiev
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=43501DD9.4010803@tresys.com \
--to=jbrindle@tresys.com \
--cc=ivg2@cornell.edu \
--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.