[policycoreutils] Change sepolicy python bindings to have python pick policy file, fixes weird memory problems in sepo
Daniel J Walsh
dwalsh at fedoraproject.org
Sat Oct 27 12:29:16 UTC 2012
commit 43cb5fa2386bcca760cb8f75d96950d7615c0796
Author: rhatdan <dwalsh at redhat.com>
Date: Sat Oct 27 08:28:54 2012 -0400
Change sepolicy python bindings to have python pick policy file, fixes weird memory problems in sepolicy network
policycoreutils-rhat.patch | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/policycoreutils-rhat.patch b/policycoreutils-rhat.patch
index 88b2ab0..9a96d05 100644
--- a/policycoreutils-rhat.patch
+++ b/policycoreutils-rhat.patch
@@ -337016,10 +337016,10 @@ index 0000000..f4cc0b0
+}
diff --git a/policycoreutils/sepolicy/search.c b/policycoreutils/sepolicy/search.c
new file mode 100644
-index 0000000..a1aaa22
+index 0000000..c98e4cf
--- /dev/null
+++ b/policycoreutils/sepolicy/search.c
-@@ -0,0 +1,1008 @@
+@@ -0,0 +1,1007 @@
+// Author: Thomas Liu <tliu at redhat.com>
+
+/**
@@ -337819,7 +337819,6 @@ index 0000000..a1aaa22
+ )
+{
+ options_t cmd_opts;
-+ int rt = -1;
+ PyObject *output = NULL;
+ apol_policy_t *policy = NULL;
+ apol_vector_t *v = NULL;
More information about the scm-commits
mailing list