From 0bc5b38da66f3cdaa894ab4b06ebee02db5125d179bb8242eedc0a456b6e0372 Mon Sep 17 00:00:00 2001 From: Johannes Segitz Date: Tue, 27 May 2014 07:23:25 +0000 Subject: [PATCH] Accepting request 235465 from home:oertel:branches:security:SELinux - add patch: setools-3.3.7-libselinux-2.3.patch fix build with libselinux-2.3 OBS-URL: https://build.opensuse.org/request/show/235465 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/setools?expand=0&rev=48 --- setools-3.3.7-libselinux-2.3.patch | 20 ++++++++++++++++++++ setools.changes | 6 ++++++ setools.spec | 4 +++- 3 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 setools-3.3.7-libselinux-2.3.patch diff --git a/setools-3.3.7-libselinux-2.3.patch b/setools-3.3.7-libselinux-2.3.patch new file mode 100644 index 0000000..1201090 --- /dev/null +++ b/setools-3.3.7-libselinux-2.3.patch @@ -0,0 +1,20 @@ +--- a/secmds/replcon.cc ++++ b/secmds/replcon.cc +@@ -60,7 +60,7 @@ + {NULL, 0, NULL, 0} + }; + +-extern int lsetfilecon_raw(const char *, security_context_t) __attribute__ ((weak)); ++extern int lsetfilecon_raw(const char *, const char *) __attribute__ ((weak)); + + /** + * As that setools must work with older libselinux versions that may +@@ -68,7 +68,7 @@ + * does indeed have the new functions then use them; otherwise + * fallback to the originals. + */ +-static int replcon_lsetfilecon(const char *path, security_context_t context) ++static int replcon_lsetfilecon(const char *path, const char *context) + { + if (lsetfilecon_raw != NULL) + { diff --git a/setools.changes b/setools.changes index 917420a..f7a2ed3 100644 --- a/setools.changes +++ b/setools.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon May 26 20:47:23 CEST 2014 - ro@suse.de + +- add patch: setools-3.3.7-libselinux-2.3.patch + fix build with libselinux-2.3 + ------------------------------------------------------------------- Fri Oct 11 15:36:20 UTC 2013 - vcizek@suse.com diff --git a/setools.spec b/setools.spec index 7f874b8..ddc0cdf 100644 --- a/setools.spec +++ b/setools.spec @@ -1,7 +1,7 @@ # # spec file for package setools # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -43,6 +43,7 @@ Patch11: 0003-Since-we-do-not-ship-neverallow-rules-all-always-fai.patch Patch15: 0006-Changes-to-support-named-file_trans-rules.patch Patch16: 0007-Remove-unused-variables.patch Patch23: add-to-header-define_cond_filename_trans.patch +Patch24: setools-3.3.7-libselinux-2.3.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: autoconf @@ -237,6 +238,7 @@ This package includes the following graphical tools: %patch15 -p1 %patch16 -p1 %patch23 -p1 +%patch24 -p1 %build autoreconf -fi