|
|
29ef3f |
From dca54ca1a8ab0b256e7834f7f5e97375427fbfd9 Mon Sep 17 00:00:00 2001
|
|
|
29ef3f |
From: Petr Lautrbach <plautrba@redhat.com>
|
|
|
29ef3f |
Date: Wed, 27 Feb 2019 09:37:17 +0100
|
|
|
29ef3f |
Subject: [PATCH 4/5] Bring some old permission and flask constants back to
|
|
|
29ef3f |
Python 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 |
|