From: Joshua Brindle <jbrindle@tresys.com>
To: gyurdiev@redhat.com
Cc: selinux@tycho.nsa.gov
Subject: Re: [RFC] selinux management API
Date: Fri, 15 Jul 2005 15:57:01 -0400 [thread overview]
Message-ID: <1121457421.28365.42.camel@localhost> (raw)
In-Reply-To: <1121456743.10134.36.camel@celtics.boston.redhat.com>
On Fri, 2005-07-15 at 15:45 -0400, Ivan Gyurdiev wrote:
> On Fri, 2005-07-15 at 15:29 -0400, Joshua Brindle wrote:
> > On Fri, 2005-07-15 at 15:19 -0400, Ivan Gyurdiev wrote:
> > > int semanage_user_remove(semanage_handle_t *, semanage_user_t
> > > *userdata);
> > >
> > > You want to remove based on name, not based on a full
> > > data structure. Similarly there should be a query function.
> > >
> > But maybe not in the future, this is meant to be future-proof
>
> Hmm....looks strange, but that's a good point.
>
> > and the query functions can be added in, but those are convenience
> > functions and have nothing to do with the design we are proposing here.
>
> You don't seem to like implementation details :)
>
not during design
> I think it's all about the implementation details...
> the interface is a great guideline, but in the end all of this
> has to be implemented, and it has to be convenient for the caller..
>
thats fine but we want a future proof, stable, scalable API, the
implementation details will be handled at implementation time.
> > > void semanage_user_free(semanage_user_t *);
> > >
> > > Seems to me like the free functions should be declared
> > > with the other handlers for their corresponding opaque
> > > data structure (which are not shown here).
> >
> > eh?
> > void semanage_module_info_free(semanage_module_info_t *);
> > void semanage_homedir_free(semanage_homedir_t *);
> > void semanage_boolean_free(semanage_boolean_t *);
> > void semanage_tunable_free(semanage_tunable_t *);
> >
> > all of the structures have free's
>
> Yes, I think they should be moved into individual headers for
> each structure, where the accessors, and constructor are defined...
> wherever the constructor is, the free() should accompany it.
Ah, I get what you mean now. The accessors, constructors, free's, etc
will be in this header since it will be the single exported API file for
libsemanage. They just weren't added to this because they are
implementation details :)
Joshua
--
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-07-15 20:00 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-15 14:46 [RFC] selinux management API Joshua Brindle
2005-07-15 15:56 ` Ivan Gyurdiev
2005-07-15 18:12 ` Joshua Brindle
2005-07-15 19:19 ` Ivan Gyurdiev
2005-07-15 19:29 ` Joshua Brindle
2005-07-15 19:45 ` Ivan Gyurdiev
2005-07-15 19:57 ` Joshua Brindle [this message]
2005-07-15 20:08 ` Ivan Gyurdiev
2005-07-28 8:36 ` Russell Coker
2005-07-28 13:43 ` Joshua Brindle
2005-07-28 13:54 ` Russell Coker
2005-08-01 18:12 ` Jason Tang
2005-08-02 2:15 ` Russell Coker
-- strict thread matches above, loose matches on Subject: below --
2005-07-18 16:06 Chad Hanson
2005-07-18 18:28 ` Ivan Gyurdiev
2005-07-18 19:35 ` Daniel J Walsh
2005-07-19 2:25 ` Joshua Brindle
2005-07-18 22:11 Chad Hanson
2005-07-19 14:08 ` Daniel J Walsh
2005-07-18 22:31 Chad Hanson
2005-07-19 14:48 Chad Hanson
2005-07-21 10:22 ` 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=1121457421.28365.42.camel@localhost \
--to=jbrindle@tresys.com \
--cc=gyurdiev@redhat.com \
--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.