Change sepolicy python bindings to have python pick policy file, fixes weird memory problems in sepolicy network

This commit is contained in:
rhatdan 2012-10-27 08:28:54 -04:00
parent 70bff091fa
commit 43cb5fa238

View File

@ -337016,10 +337016,10 @@ index 0000000..f4cc0b0
+} +}
diff --git a/policycoreutils/sepolicy/search.c b/policycoreutils/sepolicy/search.c diff --git a/policycoreutils/sepolicy/search.c b/policycoreutils/sepolicy/search.c
new file mode 100644 new file mode 100644
index 0000000..a1aaa22 index 0000000..c98e4cf
--- /dev/null --- /dev/null
+++ b/policycoreutils/sepolicy/search.c +++ b/policycoreutils/sepolicy/search.c
@@ -0,0 +1,1008 @@ @@ -0,0 +1,1007 @@
+// Author: Thomas Liu <tliu@redhat.com> +// Author: Thomas Liu <tliu@redhat.com>
+ +
+/** +/**
@ -337819,7 +337819,6 @@ index 0000000..a1aaa22
+ ) + )
+{ +{
+ options_t cmd_opts; + options_t cmd_opts;
+ int rt = -1;
+ PyObject *output = NULL; + PyObject *output = NULL;
+ apol_policy_t *policy = NULL; + apol_policy_t *policy = NULL;
+ apol_vector_t *v = NULL; + apol_vector_t *v = NULL;