Accepting request 820917 from home:jsegitz:branches:security:SELinux

- Update to version 3.1
  * checkpolicy treats invalid characters as an error - might break rare use
    cases (intentionally)
  * Drop extern_te_assert_t.patch, is upstream

OBS-URL: https://build.opensuse.org/request/show/820917
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/checkpolicy?expand=0&rev=53
This commit is contained in:
Johannes Segitz 2020-07-14 14:14:01 +00:00 committed by Git OBS Bridge
parent a61dfed2ef
commit ed5352add5
5 changed files with 14 additions and 21 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c88c719a141dd5c1202d49c378c7f063349d630522d5e04dc6e0c53da81aa4f8
size 69037

3
checkpolicy-3.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:dfc7707070520c93b14fbbdfdbe081364d806bf28e3e79e10318c2594c77bbb2
size 69072

View File

@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Jul 14 08:31:15 UTC 2020 - Johannes Segitz <jsegitz@suse.com>
- Update to version 3.1
* checkpolicy treats invalid characters as an error - might break rare use
cases (intentionally)
* Drop extern_te_assert_t.patch, is upstream
-------------------------------------------------------------------
Tue Mar 3 12:19:40 UTC 2020 - Johannes Segitz <jsegitz@suse.de>

View File

@ -16,17 +16,16 @@
#
%define libsepol_ver 3.0
%define libsepol_ver 3.1
Name: checkpolicy
Version: 3.0
Version: 3.1
Release: 0
Summary: SELinux policy compiler
License: GPL-2.0-or-later
Group: Productivity/Security
URL: https://github.com/SELinuxProject/selinux
Source0: https://github.com/SELinuxProject/selinux/releases/download/20191204/%{name}-%{version}.tar.gz
Source0: https://github.com/SELinuxProject/selinux/releases/download/20200710/%{name}-%{version}.tar.gz
Source1: checkpolicy-tests.tar.gz
Patch0: extern_te_assert_t.patch
BuildRequires: bison
BuildRequires: flex
BuildRequires: libselinux-devel
@ -68,7 +67,6 @@ to use checkpolicy from Python.
%prep
%setup -q
%patch0 -p1
%build
make clean

View File

@ -1,13 +0,0 @@
Index: checkpolicy-2.9/checkpolicy.h
===================================================================
--- checkpolicy-2.9.orig/checkpolicy.h 2019-03-15 10:32:30.000000000 +0000
+++ checkpolicy-2.9/checkpolicy.h 2020-01-15 14:23:04.742118559 +0000
@@ -13,7 +13,7 @@ typedef struct te_assert {
struct te_assert *next;
} te_assert_t;
-te_assert_t *te_assertions;
+extern te_assert_t *te_assertions;
extern unsigned int policyvers;