|
|
c17228 |
From be420729fbf4adc8b32ca3722fa6ca46bb51413d Mon Sep 17 00:00:00 2001
|
|
|
29ef3f |
From: Petr Lautrbach <plautrba@redhat.com>
|
|
|
29ef3f |
Date: Wed, 27 Feb 2019 09:37:17 +0100
|
|
|
c17228 |
Subject: [PATCH] Bring some old permission and flask constants back to Python
|
|
|
c17228 |
bindings
|
|
|
29ef3f |
|
|
|
29ef3f |
---
|
|
|
29ef3f |
libselinux/src/selinuxswig.i | 4 ++++
|
|
|
29ef3f |
libselinux/src/selinuxswig_python.i | 3 ++-
|
|
|
29ef3f |
2 files changed, 6 insertions(+), 1 deletion(-)
|
|
|
29ef3f |
|
|
|
29ef3f |
diff --git a/libselinux/src/selinuxswig.i b/libselinux/src/selinuxswig.i
|
|
|
29ef3f |
index dbdb4c3d..9c5b9263 100644
|
|
|
29ef3f |
--- a/libselinux/src/selinuxswig.i
|
|
|
29ef3f |
+++ b/libselinux/src/selinuxswig.i
|
|
|
29ef3f |
@@ -5,7 +5,9 @@
|
|
|
29ef3f |
%module selinux
|
|
|
29ef3f |
%{
|
|
|
29ef3f |
#include "../include/selinux/avc.h"
|
|
|
29ef3f |
+ #include "../include/selinux/av_permissions.h"
|
|
|
29ef3f |
#include "../include/selinux/context.h"
|
|
|
29ef3f |
+ #include "../include/selinux/flask.h"
|
|
|
29ef3f |
#include "../include/selinux/get_context_list.h"
|
|
|
29ef3f |
#include "../include/selinux/get_default_type.h"
|
|
|
29ef3f |
#include "../include/selinux/label.h"
|
|
|
29ef3f |
@@ -58,7 +60,9 @@
|
|
|
29ef3f |
%ignore avc_netlink_check_nb;
|
|
|
29ef3f |
|
|
|
29ef3f |
%include "../include/selinux/avc.h"
|
|
|
29ef3f |
+%include "../include/selinux/av_permissions.h"
|
|
|
29ef3f |
%include "../include/selinux/context.h"
|
|
|
29ef3f |
+%include "../include/selinux/flask.h"
|
|
|
29ef3f |
%include "../include/selinux/get_context_list.h"
|
|
|
29ef3f |
%include "../include/selinux/get_default_type.h"
|
|
|
29ef3f |
%include "../include/selinux/label.h"
|
|
|
29ef3f |
diff --git a/libselinux/src/selinuxswig_python.i b/libselinux/src/selinuxswig_python.i
|
|
|
29ef3f |
index 4c73bf92..6eaab081 100644
|
|
|
29ef3f |
--- a/libselinux/src/selinuxswig_python.i
|
|
|
29ef3f |
+++ b/libselinux/src/selinuxswig_python.i
|
|
|
29ef3f |
@@ -1,10 +1,11 @@
|
|
|
29ef3f |
/* Author: James Athey
|
|
|
29ef3f |
*/
|
|
|
29ef3f |
|
|
|
29ef3f |
-/* Never build rpm_execcon interface */
|
|
|
29ef3f |
+/* Never build rpm_execcon interface unless you need to have ACG compatibility
|
|
|
29ef3f |
#ifndef DISABLE_RPM
|
|
|
29ef3f |
#define DISABLE_RPM
|
|
|
29ef3f |
#endif
|
|
|
29ef3f |
+*/
|
|
|
29ef3f |
|
|
|
29ef3f |
%module selinux
|
|
|
29ef3f |
%{
|
|
|
29ef3f |
--
|
|
|
29ef3f |
2.21.0
|
|
|
29ef3f |
|