3
0
forked from pool/libsemanage

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

- Without bug number no submit to SLE 12 SP2 is possible, so to make
  sle-changelog-checker happy: bsc#988977

- Added suse_path.patch to fix path to hll compiler

OBS-URL: https://build.opensuse.org/request/show/408533
OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libsemanage?expand=0&rev=55
This commit is contained in:
Johannes Segitz 2016-07-14 14:27:12 +00:00 committed by Git OBS Bridge
parent 1c3a2c7aa9
commit 3c227b83de
4 changed files with 41 additions and 0 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Thu Jul 14 14:20:12 UTC 2016 - jsegitz@novell.com
- Without bug number no submit to SLE 12 SP2 is possible, so to make
sle-changelog-checker happy: bsc#988977
-------------------------------------------------------------------
Wed Jul 13 09:43:28 UTC 2016 - jsegitz@novell.com
- Added suse_path.patch to fix path to hll compiler
-------------------------------------------------------------------
Fri Jul 8 15:24:49 UTC 2016 - i@marguerite.su

View File

@ -26,6 +26,7 @@ Url: https://github.com/SELinuxProject/selinux/wiki/Releases
Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20160223/%{name}-%{version}.tar.gz
Source1: baselibs.conf
Source2: semanage.conf
Patch0: suse_path.patch
BuildRequires: audit-devel
BuildRequires: bison
BuildRequires: fdupes
@ -95,6 +96,7 @@ needed for developing applications that manipulate binary policies.
%prep
%setup -q
%patch0 -p0
%build
make %{?_smp_mflags} clean

View File

@ -25,6 +25,7 @@ Group: Development/Languages/Python
Url: https://github.com/SELinuxProject/selinux
Source: https://raw.githubusercontent.com/wiki/SELinuxProject/selinux/files/releases/20160223/libsemanage-%{version}.tar.gz
Source1: baselibs.conf
Patch0: suse_path.patch
BuildRequires: audit-devel
BuildRequires: bison
BuildRequires: flex
@ -43,6 +44,7 @@ SELinux management applications.
%prep
%setup -q -n libsemanage-%{version}
%patch0 -p0
%build
make %{?_smp_mflags} clean

26
suse_path.patch Normal file
View File

@ -0,0 +1,26 @@
Index: man/man5/semanage.conf.5
===================================================================
--- man/man5/semanage.conf.5.orig 2016-02-23 17:31:41.000000000 +0100
+++ man/man5/semanage.conf.5 2016-07-13 11:42:45.687894644 +0200
@@ -37,7 +37,7 @@ Specify an alternative store_root path t
.TP
.B compiler-directory
-Specify an alternative directory that contains HLL to CIL compilers. The default value is "/usr/libexec/selinux/hll".
+Specify an alternative directory that contains HLL to CIL compilers. The default value is "/usr/lib/selinux/hll".
.TP
.B ignore-module-cache
Index: src/conf-parse.y
===================================================================
--- src/conf-parse.y.orig 2016-02-23 17:31:41.000000000 +0100
+++ src/conf-parse.y 2016-07-13 11:42:45.687894644 +0200
@@ -341,7 +341,7 @@ static int semanage_conf_init(semanage_c
conf->store_path = strdup(basename(selinux_policy_root()));
conf->ignoredirs = NULL;
conf->store_root_path = strdup("/var/lib/selinux");
- conf->compiler_directory_path = strdup("/usr/libexec/selinux/hll");
+ conf->compiler_directory_path = strdup("/usr/lib/selinux/hll");
conf->policyvers = sepol_policy_kern_vers_max();
conf->target_platform = SEPOL_TARGET_SELINUX;
conf->expand_check = 1;