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:07:41 -0400	[thread overview]
Message-ID: <43307A1D.3070806@cornell.edu> (raw)
In-Reply-To: <200509202048.j8KKm4Ys001478@gotham.columbia.tresys.com>


>I agree that the duplication is strange, but I think that we should move all
>of these into libsemanage - I'm looking through them now and I don't see
>much reason for them to be in libsepol. This will only manage the files that
>store the users, right? Is the only goal a shared parser for the files? Same
>thing for ports.
>  
>
No - the semanage functionality is to extract data from a backend or 
write data to a backend, and to relay the corresponding objects to sepol 
to load (loading it itself breaks the encapsulation that I've been 
trying to create for sepol). The sepol functionality will be to actually 
load the data. Currently we're discussing the same data, hence the 
shared data structures, without modification. However, I'm not sure 
whether this will stay like that in the future - maybe we'll decide to 
store extra data in semanage that doesn't get passed down to the sepol 
layer. That's why I'm hesitant to use sepol data structures in semanage 
function headers.

>The inlined functions definitely don't make sense - the goals as I see them
>are:
>
>1) API/ABI stability
>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.
>  
>
Can you clarify that point - I'm not sure I understand the problem. 
Perhaps it's an issue with inlined
functions that I'm not understanding - they're currently inlined for 
speed only, and that can easily be changed.
The point is to share the data structures with sepol, so the code 
doesn't have to be written twice.

--
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:[~2005-09-20 21:07 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 [this message]
2005-09-21 14:21             ` Stephen Smalley
2005-09-21 16:14               ` Ivan Gyurdiev
2005-09-20 21:42           ` Ivan Gyurdiev
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=43307A1D.3070806@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.