All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Brindle <method@manicmethod.com>
To: Daniel J Walsh <dwalsh@redhat.com>
Cc: Chad Sellers <csellers@tresys.com>, SE Linux <selinux@tycho.nsa.gov>
Subject: Re: This patch fixes the exception handling in libselinux-python bindings
Date: Thu, 18 Jun 2009 10:23:02 -0400	[thread overview]
Message-ID: <4A3A4DC6.4070105@manicmethod.com> (raw)
In-Reply-To: <4A12EDFC.6020305@redhat.com>

Daniel J Walsh wrote:
> On 05/19/2009 12:16 PM, Chad Sellers wrote:
>> On 5/18/09 2:10 PM, "Daniel J Walsh"<dwalsh@redhat.com> wrote:
>>
>>> Basically we need to search for all interfaces that return an int and
>>> set those up as python exception handlers.
>>
>> I presume this supercedes the patch submitted on March 4 titled "Patch to
>> python bindings" which used a single generic exception handler. Is that
>> correct? Why the switch from a generic exception handler to a shell
>> script
>> to generate lots of specific exception handlers?
>>
>> Thanks,
>> Chad
>>
>>
>> --
>> 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.
> Yes, that patch caused certain interfaces to not work if they did not
> return int.
>

This doesn't strike me as the best way to handle it. Assuming all functions that 
return an int returns it as a return code is a little overzealous. For example 
selinux_file_context_cmp() returns 1, 0, -1 for comparison. It is only not 
included in the exception.sh output by accident it appears (it is defined as int 
selinux_file_context_cmp(...) rather than extern int.

Which brings up the next point, there are a handful of functions in selinux.h 
that don't have extern which means exception handlers aren't made for them.

--
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:[~2009-06-18 14:23 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-18 18:10 This patch fixes the exception handling in libselinux-python bindings Daniel J Walsh
2009-05-19 16:16 ` Chad Sellers
2009-05-19 17:35   ` Daniel J Walsh
2009-06-18 14:23     ` Joshua Brindle [this message]
2009-06-18 19:41       ` Daniel J Walsh
     [not found] <C6A74D22.A99BD%csellers@tresys.com>
2009-08-12 18:34 ` Daniel J Walsh
2009-09-16 19:18   ` Joshua Brindle
2009-09-16 19:35     ` Joshua Brindle
     [not found]       ` <4AB15164.1020507@redhat.com>
2009-09-24  0:56         ` Joshua Brindle
2009-09-24 18:16           ` Joshua Brindle
2009-09-24 19:19             ` Joshua Brindle
2009-09-28 19:07               ` Daniel J Walsh
2009-09-28 20:10                 ` Joshua Brindle
2010-01-08 15:32                 ` Stephen Smalley
2010-01-08 20:06                   ` Stephen Smalley
2010-01-08 20:19                     ` Stephen Smalley
2010-01-08 20:40                       ` Daniel J Walsh
2010-01-08 20:52                         ` Joshua Brindle
2010-02-08 21:10                           ` Caleb Case
2010-03-06 23:23                             ` Joshua Brindle

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=4A3A4DC6.4070105@manicmethod.com \
    --to=method@manicmethod.com \
    --cc=csellers@tresys.com \
    --cc=dwalsh@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.