Skip to contentSkip to conversation

Swig update

SEMANAGE Ivan Gyurdiev 2 participants 2 messages Dec 24, 2005 – Jan 4, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw

This updates the swig interfaces (adding ports and active booleans), and reorders the headers so they make sense. I haven't checked if the port typemap things are correct - just uncommented.

I remember last time I updated swig interfaces I wrote to the wrap file directly, instead of the interface (didn't realize it was autogenerated) - maybe make clean should get rid of it to avoid confusion.

libsemanage/src/semanageswig.i +13 -16
diff -Naurp --exclude-from excludes old/libsemanage/src/semanageswig.i new/libsemanage/src/semanageswig.i
@@ -147,7 +147,6 @@
 
 /* the wrapper will setup this parameter for passing... the resulting python functions
    will not take the semanage_port_t *** parameter */
-/*
 %typemap(in, numinputs=0) semanage_port_t ***(semanage_port_t **temp) {
 	$1 = &temp;
 }
@@ -171,27 +170,25 @@
 %typemap(in, numinputs=0) semanage_port_key_t **(semanage_port_key_t *temp) {
 	$1 = &temp;
 }
-*/
 
 /* pull in the headers */
-%include "../include/semanage/boolean_record.h"
 %include "../include/semanage/debug.h"
-%include "../include/semanage/interfaces_policy.h" 
-%include "../include/semanage/booleans_local.h"     
-%include "../include/semanage/handle.h"             
-%include "../include/semanage/modules.h"            
-%include "../include/semanage/semanage.h"           
+%include "../include/semanage/handle.h"
+%include "../include/semanage/modules.h"
+%include "../include/semanage/context_record.h"
+%include "../include/semanage/boolean_record.h"
+%include "../include/semanage/booleans_policy.h"
+%include "../include/semanage/booleans_local.h"
+%include "../include/semanage/booleans_active.h"
+%include "../include/semanage/iface_record.h"
+%include "../include/semanage/interfaces_local.h"
+%include "../include/semanage/interfaces_policy.h"
 %include "../include/semanage/user_record.h"
-%include "../include/semanage/booleans_policy.h"    
-%include "../include/semanage/iface_record.h"       
-%include "../include/semanage/seuser_record.h"      
 %include "../include/semanage/users_local.h"
-%include "../include/semanage/context_record.h"     
-%include "../include/semanage/interfaces_local.h"   
-%include "../include/semanage/seusers.h"            
 %include "../include/semanage/users_policy.h"
-/*
 %include "../include/semanage/port_record.h"
 %include "../include/semanage/ports_local.h"
 %include "../include/semanage/ports_policy.h"
-*/
+%include "../include/semanage/seuser_record.h"
+%include "../include/semanage/seusers.h"
+%include "../include/semanage/semanage.h"
#1 lore raw
Quoted 7 lines · Ivan Gyurdiev

This updates the swig interfaces (adding ports and active booleans), and reorders the headers so they make sense. I haven't checked if the port typemap things are correct - just uncommented.

I remember last time I updated swig interfaces I wrote to the wrap file directly, instead of the interface (didn't realize it was autogenerated)
- maybe make clean should get rid of it to avoid confusion.

Despite being automatically generated, we'd prefer to avoid requiring everyone to have swig installed to build libsemanage, plus one only needs to regenerate them when the interfaces actually change. That is why the generated file is included presently, and not removed by a make clean.

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.