From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from jazzhorn.ncsc.mil (mummy.ncsc.mil [144.51.88.129]) by tarius.tycho.ncsc.mil (8.13.1/8.13.1) with ESMTP id k1K7MuWS008428 for ; Mon, 20 Feb 2006 02:22:56 -0500 Received: from authusersmtp.mail.cornell.edu (jazzhorn.ncsc.mil [144.51.5.9]) by jazzhorn.ncsc.mil (8.12.10/8.12.10) with ESMTP id k1K7LWLI029940 for ; Mon, 20 Feb 2006 07:21:32 GMT Message-ID: <43F96E4E.6020704@cornell.edu> Date: Mon, 20 Feb 2006 02:22:54 -0500 From: Ivan Gyurdiev MIME-Version: 1.0 To: Chris PeBenito CC: SELinux Mail List Subject: Re: libselinux swig wrapper breakage References: <1140408745.8756.31.camel@gorn.pebenito.net> In-Reply-To: <1140408745.8756.31.camel@gorn.pebenito.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Sender: owner-selinux@tycho.nsa.gov List-Id: selinux@tycho.nsa.gov > Traceback (most recent call last): > File "", 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*). -- 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.