Fix sandbox python3 issue

Fixes: rhbz#1358138
This commit is contained in:
Petr Lautrbach 2016-07-21 18:59:49 +02:00
parent 27ad9af598
commit d18ae09b2e
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,10 @@
diff --git a/policycoreutils/sandbox/start b/policycoreutils/sandbox/start
index e0a0c2c..cdc4a3e 100644
--- a/policycoreutils/sandbox/start
+++ b/policycoreutils/sandbox/start
@@ -1,4 +1,4 @@
-#! /usr/bin/python -Es
+#! /usr/bin/python3 -Es
import subprocess, sys
rc = [-1,'']
try:

View File

@ -7,7 +7,7 @@
Summary: SELinux policy core utilities
Name: policycoreutils
Version: 2.5
Release: 12%{?dist}
Release: 13%{?dist}
License: GPLv2
Group: System Environment/Base
# https://github.com/SELinuxProject/selinux/wiki/Releases
@ -25,6 +25,7 @@ Patch: policycoreutils-fedora.patch
# $ VERSION=1.2.3 ./make-fedora-selinux-patch.sh sepolgen
Patch1: sepolgen-fedora.patch
Patch100: policycoreutils-fix-semanage-python3.patch
Patch101: policycoreutils-sandbox-python3.patch
Obsoletes: policycoreutils < 2.0.61-2
Conflicts: filesystem < 3, selinux-policy-base < 3.13.1-138
Provides: /sbin/fixfiles
@ -58,6 +59,7 @@ to switch roles.
%patch -p0 -b .policycoreutils-fedora
pushd policycoreutils-2.5
%patch100 -p2 -b .semanage-python3
%patch101 -p2 -b .sandbox-python3
popd
cp %{SOURCE3} policycoreutils-2.5/gui/
@ -408,6 +410,9 @@ The policycoreutils-restorecond package contains the restorecond service.
%systemd_postun_with_restart restorecond.service
%changelog
* Thu Jul 21 2016 Petr Lautrbach <plautrba@redhat.com> 2.5-13
- Fix sandbox -X issue related to python3 (#1358138)
* Thu Jul 14 2016 Petr Lautrbach <plautrba@redhat.com> - 2.5-12
- open_init_pty: Do not error on EINTR
- Fix [-s STORE] typos in semanage