Skip to contentSkip to conversation

Python changes for libselinux

PATCH Daniel J Walsh 1 participant 1 message Apr 11, 2006 SELinux security module

lore
Share & tools
lore
#0 lore raw

t_output_helper is going away.

matchpathcon did not work.

src/selinuxswig.i +3 -2
diff --exclude-from=exclude -N -u -r nsalibselinux/src/selinuxswig.i libselinux-1.30.1/src/selinuxswig.i
@@ -29,8 +29,9 @@
 	$1 = &temp;
 }
 %typemap(argout) security_context_t * {
-	$result = t_output_helper($result, PyString_FromString(*$1));
+	$result = SWIG_Python_AppendOutput($result, PyString_FromString(*$1));
 }
+%typedef unsigned mode_t;
 
 extern int is_selinux_enabled(void);
 extern int is_selinux_mls_enabled(void);
@@ -114,6 +115,6 @@
 }
 
 %typemap(argout) char ** {
-	$result = t_output_helper($result, PyString_FromString(*$1));
+	$result = SWIG_Python_AppendOutput($result, PyString_FromString(*$1));
 }
 extern int getseuserbyname(const char *linuxuser, char **seuser, char **level);