All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ivan Gyurdiev <ivg2@cornell.edu>
To: Stephen Smalley <sds@tycho.nsa.gov>
Cc: selinux@tycho.nsa.gov, Daniel J Walsh <dwalsh@redhat.com>,
	Karl MacMillan <kmacmillan@tresys.com>
Subject: Re: [ SEMANAGE ] Replace semanage debugging system
Date: Tue, 11 Oct 2005 12:35:16 -0400	[thread overview]
Message-ID: <434BE9C4.3030604@cornell.edu> (raw)
In-Reply-To: <1129043943.3308.162.camel@moss-spartans.epoch.ncsc.mil>


>>> Why not just use the handle directly, and drop the separate message
>>> structure entirely?
>>>   
>>>       
>> It's disorganized... the handle contains all kinds of things - I don't 
>> like adding random fields to it. It'd be more orderly to add a 
>> structure, and functions to work with it, in a separate file. I would 
>> think that nested structs have no runtime overhead...
>>     
>
> Hmmm...well, I thought that one of the purposes of the handle was for
> error handling, and you are adding the callback and callback arg there
> in place of the old error buffer. 
The handle's kind of used for everything right now.... It's a central 
merge point for anything that might need (or benefit from)
preserved state over multiple function calls. I don't feel very strongly 
about this -  I can pass back the handle if you prefer that - it's just 
an organizational preference (I might change my mind tomorrow when I see 
how it looks :)
>  More generally, I was wondering if
> the callback might want the handle without needing to explicitly specify
> it as part of the callback arg.
>   
The callback's job should be to print out the error. If it wants the 
handle, it's certainly free to pass it as part of the argument, but I'm 
not sure what it would be doing with it. I imagine the callback doing 
error _reporting_, while the normal function stack handles error _response_.


--
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-10-11 16:35 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-11  6:59 [ SEMANAGE ] Replace semanage debugging system Ivan Gyurdiev
2005-10-11  9:03 ` [ SEPOL ] Another " Ivan Gyurdiev
2005-10-11 14:45   ` Stephen Smalley
2005-10-11 15:11     ` Ivan Gyurdiev
2005-10-11 15:15       ` Stephen Smalley
2005-10-11 15:51         ` Stephen Smalley
2005-10-11 13:34 ` [ SEMANAGE ] Replace semanage " Stephen Smalley
2005-10-11 14:06   ` Stephen Smalley
2005-10-11 14:29     ` Ivan Gyurdiev
2005-10-11 14:30       ` Stephen Smalley
2005-10-11 14:57         ` Ivan Gyurdiev
2005-10-11 14:46           ` Stephen Smalley
2005-10-11 15:18             ` Ivan Gyurdiev
2005-10-11 15:19               ` Stephen Smalley
2005-10-11 16:35                 ` Ivan Gyurdiev [this message]
2005-10-11 17:27           ` Ivan Gyurdiev
2005-10-11 17:23             ` Stephen Smalley
2005-10-11 14:15   ` Ivan Gyurdiev
2005-10-11 14:24     ` 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=434BE9C4.3030604@cornell.edu \
    --to=ivg2@cornell.edu \
    --cc=dwalsh@redhat.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.