From: Ivan Gyurdiev <ivg2@cornell.edu>
To: Chris PeBenito <pebenito@gentoo.org>
Cc: SELinux Mail List <selinux@tycho.nsa.gov>
Subject: Re: libselinux swig wrapper breakage
Date: Mon, 20 Feb 2006 02:31:00 -0500 [thread overview]
Message-ID: <43F97034.7090707@cornell.edu> (raw)
In-Reply-To: <43F96E4E.6020704@cornell.edu>
>> Traceback (most recent call last):
>> File "<stdin>", line 1, in ?
>> TypeError: argument number 1: a 'security_context_t *' is expected,
>> 'str(user_u:user_r:user_spamassassin_t)' is received
>>
> You're passing a string into something that expects a security_context_t.
>
> That won't work - it fails, because security_context_t is an opaque
> type, and swig has no idea that it represents a char*. It would know
> that if selinux.h was included in the interface file. However, the
> swig bindings for selinux take the approach of listing all the
> functions manually (and omitting the public definition of
> security_context_t as a char*).
Well, selinux.h is included in the bindings, but it isn't processed,
which is what I meant...
%{ #include %} is an inline declaration at a particular section of the
wrappers (I forget which one is default).
%include indicates the file should be processed by swig, and wrappers
generated.
--
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.
prev parent reply other threads:[~2006-02-20 7:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-20 4:12 libselinux swig wrapper breakage Chris PeBenito
2006-02-20 7:22 ` Ivan Gyurdiev
2006-02-20 7:31 ` Ivan Gyurdiev [this message]
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=43F97034.7090707@cornell.edu \
--to=ivg2@cornell.edu \
--cc=pebenito@gentoo.org \
--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.