Swig patch for libselinux to stop warning messages and update to latest swig
src/selinuxswig.i +5 -0
@@ -5,11 +5,16 @@ %module selinux %{ #include "selinux/selinux.h" + #include "../include/selinux/selinux.h" + #include "../include/selinux/get_default_type.h" + #include "../include/selinux/get_context_list.h" %} %apply int *OUTPUT { int *enforce }; %apply int *OUTPUT { size_t * }; %typedef unsigned mode_t; +%typedef unsigned pid_t; +%typedef char * security_contextx_t; %typemap(in, numinputs=0) (char ***names, int *len) (char **temp1, int temp2) { $1 = &temp1;
src/selinuxswig_wrap.c +91 -99
381 lines not on this page · raw message
src/selinux.py +1 -1
@@ -1,5 +1,5 @@ # This file was automatically generated by SWIG (http://www.swig.org). -# Version 1.3.31 +# Version 1.3.33 # # Don't modify this file, modify the SWIG interface instead. # This file is compatible with both classic and new-style classes.
Is "security_contextx_t" a typo?
- todd
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 3 lines · Todd Miller
Is "
security_contextx_t" a typo?- todd
Yes, And I don't think we need that line. It was added for something else I was attempting and no longer do. (obviously.)
Updated patch.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iEYEARECAAYFAkeHvKgACgkQrlYvE4MpobMVlQCg1L3TYAU1qbrnemuFhz5bgRTQ eXgAn3462Yl1VgldAuUIxDiqf+TSHBv0
=l+ts
-----END PGP SIGNATURE-----
src/selinux.py +1 -1
@@ -1,5 +1,5 @@ # This file was automatically generated by SWIG (http://www.swig.org). -# Version 1.3.31 +# Version 1.3.33 # # Don't modify this file, modify the SWIG interface instead. # This file is compatible with both classic and new-style classes.
src/selinuxswig.i +5 -0
@@ -5,11 +5,16 @@ %module selinux %{ #include "selinux/selinux.h" + #include "../include/selinux/selinux.h" + #include "../include/selinux/get_default_type.h" + #include "../include/selinux/get_context_list.h" %} %apply int *OUTPUT { int *enforce }; %apply int *OUTPUT { size_t * }; %typedef unsigned mode_t; +%typedef unsigned pid_t; +%typedef char * security_contextx_t; %typemap(in, numinputs=0) (char ***names, int *len) (char **temp1, int temp2) { $1 = &temp1;
src/selinuxswig_wrap.c +91 -99
381 lines not on this page · raw message
Quoted 11 lines · Daniel J Walsh
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 3 lines · Todd Miller
Is "
security_contextx_t" a typo?- todd
Yes, And I don't think we need that line. It was added for something else I was attempting and no longer do. (obviously.)
Updated patch.
Merged a fixed version of this patch (still had the extraneous type in it, but I removed it).
Signature · 8 lines
Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.