diff options
-rw-r--r-- | recipes-security/selinux/policycoreutils/policycoreutils-process-ValueError-for-sepolicy-seobject.patch | 34 | ||||
-rw-r--r-- | recipes-security/selinux/policycoreutils_2.6.bb (renamed from recipes-security/selinux/policycoreutils_2.5.bb) | 7 |
2 files changed, 21 insertions, 20 deletions
diff --git a/recipes-security/selinux/policycoreutils/policycoreutils-process-ValueError-for-sepolicy-seobject.patch b/recipes-security/selinux/policycoreutils/policycoreutils-process-ValueError-for-sepolicy-seobject.patch index e52e1d3..1929aa5 100644 --- a/recipes-security/selinux/policycoreutils/policycoreutils-process-ValueError-for-sepolicy-seobject.patch +++ b/recipes-security/selinux/policycoreutils/policycoreutils-process-ValueError-for-sepolicy-seobject.patch | |||
@@ -11,32 +11,31 @@ Uptream-Status: pending | |||
11 | 11 | ||
12 | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> | 12 | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> |
13 | --- | 13 | --- |
14 | semanage/semanage | 9 +++++++-- | 14 | semanage/semanage | 11 +++++++---- |
15 | 1 file changed, 7 insertions(+), 2 deletions(-) | 15 | 1 file changed, 7 insertions(+), 4 deletions(-) |
16 | 16 | ||
17 | Index: policycoreutils-2.5/semanage/semanage | 17 | diff --git a/semanage/semanage b/semanage/semanage |
18 | =================================================================== | 18 | index 19a6c51..c0083c6 100644 |
19 | --- policycoreutils-2.5.orig/semanage/semanage 2016-02-25 13:38:39.947975015 -0500 | 19 | --- a/semanage/semanage |
20 | +++ policycoreutils-2.5/semanage/semanage 2016-02-25 13:40:50.627974607 -0500 | 20 | +++ b/semanage/semanage |
21 | @@ -24,9 +24,15 @@ | 21 | @@ -25,8 +25,14 @@ |
22 | # | ||
23 | 22 | ||
23 | import traceback | ||
24 | import argparse | 24 | import argparse |
25 | -import seobject | 25 | -import seobject |
26 | import sys | 26 | import sys |
27 | import gettext | ||
28 | +try: | 27 | +try: |
29 | + import seobject | 28 | + import seobject |
30 | + import sepolicy | 29 | + import sepolicy |
31 | +except ValueError, e: | 30 | +except ValueError, e: |
32 | + print "Error: %s\n" % e | 31 | + print "Error: %s\n" % e |
33 | + sys.exit(1) | 32 | + sys.exit(1) |
34 | + | 33 | + |
35 | PROGNAME = "policycoreutils" | 34 | PROGNAME = "policycoreutils" |
36 | try: | 35 | try: |
37 | kwargs = {} | 36 | import gettext |
38 | @@ -66,9 +72,6 @@ | 37 | @@ -67,9 +73,6 @@ usage_interface_dict = {' --add': ('-t TYPE', '-r RANGE', 'interface'), ' --modi |
39 | usage_boolean = "semanage boolean [-h] [-n] [-N] [-s STORE] [" | 38 | usage_boolean = "semanage boolean [-h] [-n] [-N] [-S STORE] [" |
40 | usage_boolean_dict = {' --modify': ('(', '--on', '|', '--off', ')', 'boolean'), ' --list': ('-C',), ' --extract': ('',), ' --deleteall': ('',)} | 39 | usage_boolean_dict = {' --modify': ('(', '--on', '|', '--off', ')', 'boolean'), ' --list': ('-C',), ' --extract': ('',), ' --deleteall': ('',)} |
41 | 40 | ||
42 | -import sepolicy | 41 | -import sepolicy |
@@ -45,3 +44,6 @@ Index: policycoreutils-2.5/semanage/semanage | |||
45 | class CheckRole(argparse.Action): | 44 | class CheckRole(argparse.Action): |
46 | 45 | ||
47 | def __call__(self, parser, namespace, value, option_string=None): | 46 | def __call__(self, parser, namespace, value, option_string=None): |
47 | -- | ||
48 | 2.7.4 | ||
49 | |||
diff --git a/recipes-security/selinux/policycoreutils_2.5.bb b/recipes-security/selinux/policycoreutils_2.6.bb index 37d3870..6a625b3 100644 --- a/recipes-security/selinux/policycoreutils_2.5.bb +++ b/recipes-security/selinux/policycoreutils_2.6.bb | |||
@@ -1,10 +1,10 @@ | |||
1 | include selinux_20160223.inc | 1 | include selinux_20161014.inc |
2 | include ${BPN}.inc | 2 | include ${BPN}.inc |
3 | 3 | ||
4 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" | 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=393a5ca445f6965873eca0259a17f833" |
5 | 5 | ||
6 | SRC_URI[md5sum] = "9ad9331b2133262fb3f774359a7f4761" | 6 | SRC_URI[md5sum] = "0358f0136e2dd9a8c9e99f181aaab1b2" |
7 | SRC_URI[sha256sum] = "329382cfe9fa977678abf541dcd8fe3847cf0c83b24654c8f7322343907078a1" | 7 | SRC_URI[sha256sum] = "68891b376f5048edc53c6ccb2fca44da3dc7f4563f4b6894e201d70c04a05a29" |
8 | 8 | ||
9 | SRC_URI += "\ | 9 | SRC_URI += "\ |
10 | file://policycoreutils-fix-sepolicy-install-path.patch \ | 10 | file://policycoreutils-fix-sepolicy-install-path.patch \ |
@@ -14,5 +14,4 @@ SRC_URI += "\ | |||
14 | file://policycoreutils-fix-TypeError-for-seobject.py.patch \ | 14 | file://policycoreutils-fix-TypeError-for-seobject.py.patch \ |
15 | file://0001-mcstrans-fix-the-init-script.patch \ | 15 | file://0001-mcstrans-fix-the-init-script.patch \ |
16 | file://enable-mcstrans.patch \ | 16 | file://enable-mcstrans.patch \ |
17 | file://policycoreutils-fts_flags-FTS_NOCHDIR.patch \ | ||
18 | " | 17 | " |