All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ivan Gyurdiev <ivg2@cornell.edu>
To: Karl MacMillan <kmacmillan@tresys.com>
Cc: "'Stephen Smalley'" <sds@tycho.nsa.gov>,
	selinux@tycho.nsa.gov, jbrindle@tresys.com
Subject: Re: [ SEPOL/SEMANAGE ] Boolean record
Date: Tue, 20 Sep 2005 17:42:45 -0400	[thread overview]
Message-ID: <43308255.6080007@cornell.edu> (raw)
In-Reply-To: <200509202048.j8KKm4Ys001478@gotham.columbia.tresys.com>


>2) The ability to move between straight modules and the policy server.
>
>The inlined functions don't meet this goal and moving things to libsepol
>will make 2 impossible.
>  
>
I don't understand what's preventing you from reimplementing those 
functions at any point in time, as long as the data structures are 
opaque (which they are). Yes, the functions are inlined, and the callers 
may decide that they'll always be equivalent to the sepol ones, but I 
think at that point the caller is not using the interface properly, and 
we shouldn't care.

Since there is no policy server right now, and there is a policydb, 
where the same data structures are already implemented, serving pretty 
much the same purpose (encapsulation), it seems easy to just make use of 
those functions. It also seems like you'll need to link to libsepol for 
a long time, to handle the policydb case even after the policy server is 
created.

Regardless, I don't care anymore - if you guys want to duplicate all the 
records into semanage, then that's fine with me - I can write a patch 
for it, if that is your decision. I think Steven's arguing for the exact 
opposite of that (unless I misunderstood) - use of sepol records 
directly. I just want some data structure that I can use in my record 
engine, regardless of where it came from - all I need for it is to fill 
out the record_table found in record_file.h.

Other issues: will you be merging the handle stuff soon? I need the 
handle to implement any kind of error reporting in my code (because 
otherwise I'd just be changing interfaces later). I think I'll likely 
submit a patch with the record engine stuff, and comment out all the 
DEBUG calls to be fixed later.

--
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.

  parent reply	other threads:[~2005-09-20 21:42 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-20  7:40 [ SEPOL/SEMANAGE ] Boolean record Ivan Gyurdiev
2005-09-20 19:06 ` Stephen Smalley
2005-09-20 19:35   ` Ivan Gyurdiev
2005-09-20 19:56     ` Stephen Smalley
2005-09-20 20:16       ` Ivan Gyurdiev
2005-09-20 20:22         ` Stephen Smalley
2005-09-20 20:48         ` Karl MacMillan
2005-09-20 21:07           ` Ivan Gyurdiev
2005-09-21 14:21             ` Stephen Smalley
2005-09-21 16:14               ` Ivan Gyurdiev
2005-09-20 21:42           ` Ivan Gyurdiev [this message]
2005-09-21 14:35             ` Stephen Smalley
2005-09-21 17:48             ` Karl MacMillan
2005-09-21 17:51               ` Stephen Smalley
2005-09-21 17:53               ` Stephen Smalley
2005-09-21 18:03                 ` Karl MacMillan
2005-09-21 18:37               ` Ivan Gyurdiev
2005-09-21 18:33                 ` Karl MacMillan
2005-09-22  1:50                   ` Ivan Gyurdiev
2005-09-23 12:34                     ` Karl MacMillan
2005-09-20 20:45 ` [ SEPOL ] Fix memory leaks Ivan Gyurdiev
2005-09-21 14:44   ` Stephen Smalley
2005-09-21 14:41 ` [ SEPOL/SEMANAGE ] Boolean record Stephen Smalley

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=43308255.6080007@cornell.edu \
    --to=ivg2@cornell.edu \
    --cc=jbrindle@tresys.com \
    --cc=kmacmillan@tresys.com \
    --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.