Accepting request 131878 from home:namtrac:branches:security:SELinux
- Add setools-3.3.6-libsepol.patch to fix compilation with new libsepol OBS-URL: https://build.opensuse.org/request/show/131878 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=38
This commit is contained in:
parent
dcfa47b2d8
commit
bff2aa4e2a
44
setools-3.3.6-libsepol.patch
Normal file
44
setools-3.3.6-libsepol.patch
Normal file
@ -0,0 +1,44 @@
|
||||
From 2b58d92add64b53b16cbb438e7b69e85d046afd1 Mon Sep 17 00:00:00 2001
|
||||
From: Dan Walsh <dwalsh@redhat.com>
|
||||
Date: Tue, 20 Sep 2011 15:46:38 -0400
|
||||
Subject: [PATCH 5/6] Fix sepol calls to work with latest libsepol
|
||||
|
||||
---
|
||||
configure.ac | 4 ++--
|
||||
1 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
Index: setools-3.3.6/configure.ac
|
||||
===================================================================
|
||||
--- setools-3.3.6.orig/configure.ac
|
||||
+++ setools-3.3.6/configure.ac
|
||||
@@ -503,7 +503,7 @@ AC_COMPILE_IFELSE(
|
||||
[AC_LANG_SOURCE([
|
||||
#include <sepol/policydb/expand.h>
|
||||
int main () {
|
||||
- return role_set_expand(NULL, NULL, NULL, NULL);
|
||||
+ return role_set_expand(NULL, NULL, NULL, NULL, NULL);
|
||||
}])],
|
||||
sepol_new_user_role_mapping="yes",
|
||||
sepol_new_user_role_mapping="no")
|
||||
@@ -539,7 +539,7 @@ if test ${sepol_check_boolmap} = "yes";
|
||||
[AC_LANG_SOURCE([
|
||||
#include <sepol/policydb/expand.h>
|
||||
int main () {
|
||||
- return expand_module_avrules(NULL, NULL, NULL, NULL, NULL, 0, 0);
|
||||
+ return expand_module_avrules(NULL, NULL, NULL, NULL, NULL, 0, 0, 0, 0);
|
||||
}])],
|
||||
AC_MSG_RESULT([yes]),
|
||||
AC_MSG_ERROR([this version of libsepol is incompatible with SETools]))
|
||||
Index: setools-3.3.6/libqpol/src/policy_define.c
|
||||
===================================================================
|
||||
--- setools-3.3.6.orig/libqpol/src/policy_define.c
|
||||
+++ setools-3.3.6/libqpol/src/policy_define.c
|
||||
@@ -2031,7 +2031,7 @@ int define_role_trans(void)
|
||||
|
||||
/* This ebitmap business is just to ensure that there are not conflicting role_trans rules */
|
||||
#ifdef HAVE_SEPOL_USER_ROLE_MAPPING
|
||||
- if (role_set_expand(&roles, &e_roles, policydbp, NULL))
|
||||
+ if (role_set_expand(&roles, &e_roles, policydbp, NULL, NULL))
|
||||
#else
|
||||
if (role_set_expand(&roles, &e_roles, policydbp))
|
||||
#endif
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 28 15:35:33 UTC 2012 - idonmez@suse.com
|
||||
|
||||
- Add setools-3.3.6-libsepol.patch to fix compilation with new
|
||||
libsepol
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Aug 5 15:44:47 UTC 2012 - meissner@suse.com
|
||||
|
||||
|
@ -38,6 +38,7 @@ Patch6: %{name}-setup_py-prefix.patch
|
||||
Patch7: %{name}-swig-2x.patch
|
||||
Patch8: %{name}-swig-2.0.7.patch
|
||||
Patch9: %{name}-am121.patch
|
||||
Patch10: %{name}-3.3.6-libsepol.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
@ -224,6 +225,7 @@ This package includes the following graphical tools:
|
||||
%patch7
|
||||
%patch8
|
||||
%patch9 -p1
|
||||
%patch10 -p1
|
||||
|
||||
%build
|
||||
autoreconf -fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user