1 |
blueness 14/12/28 18:26:51 |
2 |
|
3 |
Added: elfix-0.9.0-backport-fix-revdep-pax.patch |
4 |
elfix-0.9.0-backport-fix-paxmark_sh.patch |
5 |
Log: |
6 |
Backport fixes for paxmark.sh and revdep-pax. |
7 |
|
8 |
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 sys-apps/elfix/files/elfix-0.9.0-backport-fix-revdep-pax.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/elfix/files/elfix-0.9.0-backport-fix-revdep-pax.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/elfix/files/elfix-0.9.0-backport-fix-revdep-pax.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: elfix-0.9.0-backport-fix-revdep-pax.patch |
17 |
=================================================================== |
18 |
From 581b53b3c1ca3166dc394d1f4b08260bd088c346 Mon Sep 17 00:00:00 2001 |
19 |
From: "Anthony G. Basile" <blueness@g.o> |
20 |
Date: Mon, 22 Dec 2014 12:30:12 -0500 |
21 |
Subject: [PATCH 2/2] scripts/revdep-pax: change .get_maps() to .get_graph() |
22 |
|
23 |
--- |
24 |
scripts/revdep-pax | 2 +- |
25 |
1 file changed, 1 insertion(+), 1 deletion(-) |
26 |
|
27 |
diff --git a/scripts/revdep-pax b/scripts/revdep-pax |
28 |
index a718fd6..7c1cf85 100755 |
29 |
--- a/scripts/revdep-pax |
30 |
+++ b/scripts/revdep-pax |
31 |
@@ -465,7 +465,7 @@ def run_soname(name, verbose, use_soname, mark, allyes, executable_only): |
32 |
shell_path = os.getenv('PATH').split(':') |
33 |
|
34 |
(object_linkings, object_reverse_linkings, |
35 |
- library2soname, soname2library) = LinkGraph().get_maps() |
36 |
+ library2soname, soname2library) = LinkGraph().get_graph() |
37 |
|
38 |
if use_soname: |
39 |
soname = name |
40 |
-- |
41 |
2.0.5 |
42 |
|
43 |
|
44 |
|
45 |
|
46 |
1.1 sys-apps/elfix/files/elfix-0.9.0-backport-fix-paxmark_sh.patch |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/elfix/files/elfix-0.9.0-backport-fix-paxmark_sh.patch?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/elfix/files/elfix-0.9.0-backport-fix-paxmark_sh.patch?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: elfix-0.9.0-backport-fix-paxmark_sh.patch |
52 |
=================================================================== |
53 |
From 84ca11706f804d6c808d932700a90cc8eaab2f15 Mon Sep 17 00:00:00 2001 |
54 |
From: "Anthony G. Basile" <blueness@g.o> |
55 |
Date: Sun, 21 Dec 2014 10:37:00 -0500 |
56 |
Subject: [PATCH 1/2] scripts/paxmark.sh: source make.conf and properly set |
57 |
PAX_MARKINGS |
58 |
|
59 |
--- |
60 |
ChangeLog | 6 ++++++ |
61 |
scripts/paxmark.sh | 6 +++--- |
62 |
2 files changed, 9 insertions(+), 3 deletions(-) |
63 |
|
64 |
diff --git a/ChangeLog b/ChangeLog |
65 |
index f64e57a..d9993b1 100644 |
66 |
--- a/ChangeLog |
67 |
+++ b/ChangeLog |
68 |
@@ -1,3 +1,9 @@ |
69 |
+2014-12-22 |
70 |
+ |
71 |
+ * scripts/paxmark.sh: remove erroneous elog functions |
72 |
+ * scripts/paxmark.sh: source /etc/portage/make.conf for PAX_MARKINGS |
73 |
+ and correct logic to default to PT only if no PAX_MARKINGS are set. |
74 |
+ Reported by Karl-Johan Karlsson <creideiki+gentoo-hardened@××××××××××.se> |
75 |
|
76 |
2014-10-03 |
77 |
|
78 |
diff --git a/scripts/paxmark.sh b/scripts/paxmark.sh |
79 |
index 9ec077a..408e6aa 100755 |
80 |
--- a/scripts/paxmark.sh |
81 |
+++ b/scripts/paxmark.sh |
82 |
@@ -53,7 +53,6 @@ paxmarksh() { |
83 |
scanelf -Xxz ${flags} "$f" >/dev/null 2>&1 |
84 |
#We failed to set PT_PAX flags |
85 |
elif [[ ${PAX_MARKINGS} != "none" ]]; then |
86 |
- elog "Failed to set PT_PAX markings -${flags} ${f}." |
87 |
ret=1 |
88 |
fi |
89 |
done |
90 |
@@ -79,7 +78,6 @@ paxmarksh() { |
91 |
|
92 |
#We failed to set XATTR_PAX flags |
93 |
if [[ ${PAX_MARKINGS} != "none" ]]; then |
94 |
- elog "Failed to set XATTR_PAX markings -${flags} ${f}." |
95 |
ret=1 |
96 |
fi |
97 |
done |
98 |
@@ -88,5 +86,7 @@ paxmarksh() { |
99 |
return ${ret} |
100 |
} |
101 |
|
102 |
-PAX_MARKINGS=${PAX_MARKINGS:="PT XT"} |
103 |
+MAKE_CONF="/etc/portage/make.conf" |
104 |
+[[ -e $MAKE_CONF ]] && source $MAKE_CONF |
105 |
+PAX_MARKINGS=${PAX_MARKINGS:="PT"} |
106 |
paxmarksh "$@" |
107 |
-- |
108 |
2.0.5 |