Change sepolicy python bindings to have python pick policy file, fixes weird memory problems in sepolicy network
This commit is contained in:
parent
70bff091fa
commit
43cb5fa238
@ -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@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;
|
||||
|
Loading…
Reference in New Issue
Block a user