diff options
author | Wenzong Fan <wenzong.fan@windriver.com> | 2017-01-05 00:23:23 -0800 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2017-01-05 10:18:31 -0500 |
commit | 89fb392b5ff649e7dc1e55bb7466a927adc1cb75 (patch) | |
tree | 4134d5f2d0acbd86ce8e379395fc6159c557dae4 /recipes-security/selinux/policycoreutils | |
parent | 96f63c44ab1c569c676495c3b557910fec9c5d2a (diff) | |
download | meta-selinux-89fb392b5ff649e7dc1e55bb7466a927adc1cb75.tar.gz |
policycoreutils: uprev to 2.6 (20161014)
* rebase patch:
- policycoreutils-process-ValueError-for-sepolicy-seobject.patch
Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'recipes-security/selinux/policycoreutils')
-rw-r--r-- | recipes-security/selinux/policycoreutils/policycoreutils-process-ValueError-for-sepolicy-seobject.patch | 34 |
1 files changed, 18 insertions, 16 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 | |||