diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2018-07-19 13:14:56 +0800 |
---|---|---|
committer | Joe MacDonald <joe_macdonald@mentor.com> | 2018-08-13 11:20:32 -0400 |
commit | 6551e95179b1a9f7ca611f02ca55956a529389ad (patch) | |
tree | e3da2df7fcf58e332f0d6a2fac8f688f23cb0200 /recipes-security/selinux/selinux-python | |
parent | 65797deb50466454b21a3de4604518116758d7e2 (diff) | |
download | meta-selinux-6551e95179b1a9f7ca611f02ca55956a529389ad.tar.gz |
selinux-python: refresh patches to fix QA warning
Refresh patches with devtool command to fix do_patch warning
Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'recipes-security/selinux/selinux-python')
3 files changed, 26 insertions, 24 deletions
diff --git a/recipes-security/selinux/selinux-python/fix-TypeError-for-seobject.py.patch b/recipes-security/selinux/selinux-python/fix-TypeError-for-seobject.py.patch index 993ff7e..62cdeee 100644 --- a/recipes-security/selinux/selinux-python/fix-TypeError-for-seobject.py.patch +++ b/recipes-security/selinux/selinux-python/fix-TypeError-for-seobject.py.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From a66c50c0e8cd3799fc2819835b872ab62419f684 Mon Sep 17 00:00:00 2001 | 1 | From 98c2944ffa3e35095187e1df9ff33498bbd0fa54 Mon Sep 17 00:00:00 2001 |
2 | From: Wenzong Fan <wenzong.fan@windriver.com> | 2 | From: Wenzong Fan <wenzong.fan@windriver.com> |
3 | Date: Tue, 1 Apr 2014 02:53:36 -0400 | 3 | Date: Tue, 1 Apr 2014 02:53:36 -0400 |
4 | Subject: [PATCH] policycoreutils: fix TypeError for seobject.py | 4 | Subject: [PATCH] policycoreutils: fix TypeError for seobject.py |
@@ -7,18 +7,19 @@ File "/usr/lib64/python2.7/site-packages/seobject.py", line 109, in log | |||
7 | message += " sename=" + sename | 7 | message += " sename=" + sename |
8 | TypeError: cannot concatenate 'str' and 'NoneType' objects | 8 | TypeError: cannot concatenate 'str' and 'NoneType' objects |
9 | 9 | ||
10 | Uptream-Status: pending | 10 | 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 | --- |
14 | semanage/seobject.py | 2 +- | 15 | semanage/seobject.py | 2 +- |
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | 16 | 1 file changed, 1 insertion(+), 1 deletion(-) |
16 | 17 | ||
17 | Index: policycoreutils-2.5/semanage/seobject.py | 18 | diff --git a/semanage/seobject.py b/semanage/seobject.py |
18 | =================================================================== | 19 | index 70fd192..23ab77e 100644 |
19 | --- policycoreutils-2.5.orig/semanage/seobject.py 2016-02-25 13:41:38.035974459 -0500 | 20 | --- a/semanage/seobject.py |
20 | +++ policycoreutils-2.5/semanage/seobject.py 2016-02-25 13:43:42.075974072 -0500 | 21 | +++ b/semanage/seobject.py |
21 | @@ -121,7 +121,7 @@ | 22 | @@ -146,7 +146,7 @@ except: |
22 | 23 | ||
23 | def log(self, msg, name="", sename="", serole="", serange="", oldsename="", oldserole="", oldserange=""): | 24 | def log(self, msg, name="", sename="", serole="", serange="", oldsename="", oldserole="", oldserange=""): |
24 | message = " %s name=%s" % (msg, name) | 25 | message = " %s name=%s" % (msg, name) |
diff --git a/recipes-security/selinux/selinux-python/fix-sepolicy-install-path.patch b/recipes-security/selinux/selinux-python/fix-sepolicy-install-path.patch index 617908a..1d54231 100644 --- a/recipes-security/selinux/selinux-python/fix-sepolicy-install-path.patch +++ b/recipes-security/selinux/selinux-python/fix-sepolicy-install-path.patch | |||
@@ -1,18 +1,24 @@ | |||
1 | From 69e8697cd2ae48710ff8190bad3e61d2fd115b99 Mon Sep 17 00:00:00 2001 | ||
2 | From: Xin Ouyang <Xin.Ouyang@windriver.com> | ||
3 | Date: Mon, 23 Sep 2013 21:17:59 +0800 | ||
1 | Subject: [PATCH] policycoreutils: fix install path for new pymodule sepolicy | 4 | Subject: [PATCH] policycoreutils: fix install path for new pymodule sepolicy |
2 | 5 | ||
6 | Uptream-Status: Pending | ||
7 | |||
3 | Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com> | 8 | Signed-off-by: Xin Ouyang <Xin.Ouyang@windriver.com> |
4 | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> | 9 | Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com> |
10 | |||
5 | --- | 11 | --- |
6 | sepolicy/Makefile | 4 +++- | 12 | sepolicy/Makefile | 4 +++- |
7 | 1 file changed, 3 insertions(+), 1 deletion(-) | 13 | 1 file changed, 3 insertions(+), 1 deletion(-) |
8 | 14 | ||
9 | diff --git a/sepolicy/Makefile b/sepolicy/Makefile | 15 | diff --git a/sepolicy/Makefile b/sepolicy/Makefile |
10 | index 2b8716c..70f4bdd 100644 | 16 | index 5a56e6c..82c3e36 100644 |
11 | --- a/sepolicy/Makefile | 17 | --- a/sepolicy/Makefile |
12 | +++ b/sepolicy/Makefile | 18 | +++ b/sepolicy/Makefile |
13 | @@ -12,6 +12,8 @@ BASHCOMPLETIONDIR ?= $(DESTDIR)/usr/share/bash-completion/completions | 19 | @@ -12,6 +12,8 @@ SHAREDIR ?= $(PREFIX)/share/sandbox |
14 | SHAREDIR ?= $(PREFIX)/share/sandbox | 20 | CFLAGS ?= -Wall -Werror -Wextra -W |
15 | override CFLAGS = -I$(PREFIX)/include -DPACKAGE="policycoreutils" -Wall -Werror -Wextra -W -DSHARED -shared | 21 | override CFLAGS += -DPACKAGE="policycoreutils" -DSHARED -shared |
16 | 22 | ||
17 | +PYLIBVER ?= $(shell python -c 'import sys;print "python%d.%d" % sys.version_info[0:2]') | 23 | +PYLIBVER ?= $(shell python -c 'import sys;print "python%d.%d" % sys.version_info[0:2]') |
18 | + | 24 | + |
@@ -20,7 +26,7 @@ index 2b8716c..70f4bdd 100644 | |||
20 | 26 | ||
21 | all: python-build | 27 | all: python-build |
22 | @@ -30,7 +32,7 @@ test: | 28 | @@ -30,7 +32,7 @@ test: |
23 | @python test_sepolicy.py -v | 29 | @$(PYTHON) test_sepolicy.py -v |
24 | 30 | ||
25 | install: | 31 | install: |
26 | - $(PYTHON) setup.py install `test -n "$(DESTDIR)" && echo --root $(DESTDIR)` | 32 | - $(PYTHON) setup.py install `test -n "$(DESTDIR)" && echo --root $(DESTDIR)` |
@@ -28,6 +34,3 @@ index 2b8716c..70f4bdd 100644 | |||
28 | [ -d $(BINDIR) ] || mkdir -p $(BINDIR) | 34 | [ -d $(BINDIR) ] || mkdir -p $(BINDIR) |
29 | install -m 755 sepolicy.py $(BINDIR)/sepolicy | 35 | install -m 755 sepolicy.py $(BINDIR)/sepolicy |
30 | (cd $(BINDIR); ln -sf sepolicy sepolgen) | 36 | (cd $(BINDIR); ln -sf sepolicy sepolgen) |
31 | -- | ||
32 | 1.7.9.5 | ||
33 | |||
diff --git a/recipes-security/selinux/selinux-python/process-ValueError-for-sepolicy-seobject.patch b/recipes-security/selinux/selinux-python/process-ValueError-for-sepolicy-seobject.patch index 1929aa5..b0bcd1d 100644 --- a/recipes-security/selinux/selinux-python/process-ValueError-for-sepolicy-seobject.patch +++ b/recipes-security/selinux/selinux-python/process-ValueError-for-sepolicy-seobject.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From b8e07bd0643b581ac33c96a1f94ae17c8df80ffd Mon Sep 17 00:00:00 2001 | 1 | From 1a8bd0ca13746b5241af5736dee9a25ab360652b Mon Sep 17 00:00:00 2001 |
2 | From: Wenzong Fan <wenzong.fan@windriver.com> | 2 | From: Wenzong Fan <wenzong.fan@windriver.com> |
3 | Date: Sun, 30 Mar 2014 22:25:59 -0400 | 3 | Date: Sun, 30 Mar 2014 22:25:59 -0400 |
4 | Subject: [PATCH] semanage: process ValueError for sepolicy, seobject | 4 | Subject: [PATCH] semanage: process ValueError for sepolicy, seobject |
@@ -7,15 +7,16 @@ The sepolicy, seobject modules raise many unprocessed ValueError, just | |||
7 | process them in semanage to make the script proivdes error message but | 7 | process them in semanage to make the script proivdes error message but |
8 | not error trace. | 8 | not error trace. |
9 | 9 | ||
10 | Uptream-Status: pending | 10 | 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 | --- |
14 | semanage/semanage | 11 +++++++---- | 15 | semanage/semanage | 11 +++++++---- |
15 | 1 file changed, 7 insertions(+), 4 deletions(-) | 16 | 1 file changed, 7 insertions(+), 4 deletions(-) |
16 | 17 | ||
17 | diff --git a/semanage/semanage b/semanage/semanage | 18 | diff --git a/semanage/semanage b/semanage/semanage |
18 | index 19a6c51..c0083c6 100644 | 19 | index 313537c..2977dd0 100644 |
19 | --- a/semanage/semanage | 20 | --- a/semanage/semanage |
20 | +++ b/semanage/semanage | 21 | +++ b/semanage/semanage |
21 | @@ -25,8 +25,14 @@ | 22 | @@ -25,8 +25,14 @@ |
@@ -34,7 +35,7 @@ index 19a6c51..c0083c6 100644 | |||
34 | PROGNAME = "policycoreutils" | 35 | PROGNAME = "policycoreutils" |
35 | try: | 36 | try: |
36 | import gettext | 37 | import gettext |
37 | @@ -67,9 +73,6 @@ usage_interface_dict = {' --add': ('-t TYPE', '-r RANGE', 'interface'), ' --modi | 38 | @@ -73,9 +79,6 @@ usage_interface_dict = {' --add': ('-t TYPE', '-r RANGE', 'interface'), ' --modi |
38 | usage_boolean = "semanage boolean [-h] [-n] [-N] [-S STORE] [" | 39 | usage_boolean = "semanage boolean [-h] [-n] [-N] [-S STORE] [" |
39 | usage_boolean_dict = {' --modify': ('(', '--on', '|', '--off', ')', 'boolean'), ' --list': ('-C',), ' --extract': ('',), ' --deleteall': ('',)} | 40 | usage_boolean_dict = {' --modify': ('(', '--on', '|', '--off', ')', 'boolean'), ' --list': ('-C',), ' --extract': ('',), ' --deleteall': ('',)} |
40 | 41 | ||
@@ -44,6 +45,3 @@ index 19a6c51..c0083c6 100644 | |||
44 | class CheckRole(argparse.Action): | 45 | class CheckRole(argparse.Action): |
45 | 46 | ||
46 | def __call__(self, parser, namespace, value, option_string=None): | 47 | def __call__(self, parser, namespace, value, option_string=None): |
47 | -- | ||
48 | 2.7.4 | ||
49 | |||