1 |
commit: 0c355bd1ab54f5bd9bdfa4b75bccddbb30ee1713 |
2 |
Author: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 7 03:57:18 2016 +0000 |
4 |
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 7 04:18:16 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c355bd1 |
7 |
|
8 |
sys-libs/libselinux: bump to 2.6_rc2 |
9 |
|
10 |
Package-Manager: portage-2.3.0 |
11 |
|
12 |
sys-libs/libselinux/Manifest | 2 +- |
13 |
...nux-selinux_restorecon-fix-realpath-logic.patch | 76 ---------------------- |
14 |
...2.6_rc1-r1.ebuild => libselinux-2.6_rc2.ebuild} | 3 +- |
15 |
sys-libs/libselinux/libselinux-9999.ebuild | 2 +- |
16 |
4 files changed, 3 insertions(+), 80 deletions(-) |
17 |
|
18 |
diff --git a/sys-libs/libselinux/Manifest b/sys-libs/libselinux/Manifest |
19 |
index c2a779e..1cc61aa 100644 |
20 |
--- a/sys-libs/libselinux/Manifest |
21 |
+++ b/sys-libs/libselinux/Manifest |
22 |
@@ -1,2 +1,2 @@ |
23 |
DIST libselinux-2.5.tar.gz 189019 SHA256 94c9e97706280bedcc288f784f67f2b9d3d6136c192b2c9f812115edba58514f SHA512 1c6718aa6fa05c8635427cd6f5a89ce47fb6bb9bd2fec417293122826695d1ebb0e0b86e83711abb5c4fe71c67dce6f2e18745592833d1711f0ab2d01246b8c7 WHIRLPOOL 96192b856d32a82b9b4413137085e69ad52cbf2e0d274603a90d904e9a318a80c83f337aef26f54c685a689972432955f0f9de67949e0bb4f844611df22d3589 |
24 |
-DIST libselinux-2.6-rc1.tar.gz 203034 SHA256 4ef2bbb1bdb1d0c43ed14b237066364b07bd1d2ae0a16dcd475bbf7793723928 SHA512 72a8a1d244fea3902cecff69fda48c1bc8d7ce1789902126565272782105bd43205e517af8a4cac5cc5cab47c48f0cd3b287c42a408ae3889b51b19b0b38632b WHIRLPOOL b9012b74a3f073e25b63d83003194f23f7177cdd0e33443de87ff7491e0ecffa72eea07be04247cafd3045773427dbf98f592e02346c8fa32bc161be624cc2b4 |
25 |
+DIST libselinux-2.6-rc2.tar.gz 203126 SHA256 c0e297a046a2e07f9dbe14ef0ea8a36b44afeaf798fd51189638939eea741be7 SHA512 6e2c03a8bd41f08e5d45693862e13db7373dec639bd6962d1398644b1b1b1351d845fd93f8a952be3387af8242e17badd0a2e8e2b31d542f1d9e227d45e38d39 WHIRLPOOL 636702cdf5c7ea151fcc904712da3b419d0a50bf45d45dbe83ecb7b1dc418a8a179356f2af5a7d92179c82e1da7ec0f809b6c320dff0fa56ab588a852cc35dfe |
26 |
|
27 |
diff --git a/sys-libs/libselinux/files/libselinux-2.6-0001-libselinux-selinux_restorecon-fix-realpath-logic.patch b/sys-libs/libselinux/files/libselinux-2.6-0001-libselinux-selinux_restorecon-fix-realpath-logic.patch |
28 |
deleted file mode 100644 |
29 |
index 3a0d7fb..00000000 |
30 |
--- a/sys-libs/libselinux/files/libselinux-2.6-0001-libselinux-selinux_restorecon-fix-realpath-logic.patch |
31 |
+++ /dev/null |
32 |
@@ -1,76 +0,0 @@ |
33 |
-From aa0c824bb2eeb8960ba02133faade72c837ea951 Mon Sep 17 00:00:00 2001 |
34 |
-From: Stephen Smalley <sds@×××××××××.gov> |
35 |
-Date: Wed, 5 Oct 2016 10:45:35 -0400 |
36 |
-Subject: [PATCH] libselinux: selinux_restorecon: fix realpath logic |
37 |
- |
38 |
-The realpath logic in selinux_restorecon() was taken from the |
39 |
-Android libselinux fork. However, bionic dirname() and basename() |
40 |
-do not modify their argument and therefore are safe to call on a |
41 |
-const string. POSIX dirname() and basename() can modify their argument. |
42 |
-There is a GNU basename() that does not modify its argument, but not |
43 |
-for dirname(). |
44 |
-For portability, create copies of the original pathname for each call |
45 |
-and keep them around until finished using the result. |
46 |
- |
47 |
-Fixes "restorecon -r goes up the tree?" bug reported by Jason Zaman. |
48 |
- |
49 |
-Reported-by: Jason Zaman <jason@×××××××××.com> |
50 |
-Signed-off-by: Stephen Smalley <sds@×××××××××.gov> |
51 |
---- |
52 |
- libselinux/src/selinux_restorecon.c | 26 +++++++++++++++++++++----- |
53 |
- 1 file changed, 21 insertions(+), 5 deletions(-) |
54 |
- |
55 |
-diff --git a/libselinux/src/selinux_restorecon.c b/libselinux/src/selinux_restorecon.c |
56 |
-index 0945138..e38d1d0 100644 |
57 |
---- libselinux/src/selinux_restorecon.c |
58 |
-+++ libselinux/src/selinux_restorecon.c |
59 |
-@@ -797,25 +797,41 @@ int selinux_restorecon(const char *pathname_orig, |
60 |
- * realpath of containing dir, then appending last component name. |
61 |
- */ |
62 |
- if (flags.userealpath) { |
63 |
-- pathbname = basename((char *)pathname_orig); |
64 |
-+ char *basename_cpy = strdup(pathname_orig); |
65 |
-+ if (!basename_cpy) |
66 |
-+ goto realpatherr; |
67 |
-+ pathbname = basename(basename_cpy); |
68 |
- if (!strcmp(pathbname, "/") || !strcmp(pathbname, ".") || |
69 |
- !strcmp(pathbname, "..")) { |
70 |
- pathname = realpath(pathname_orig, NULL); |
71 |
-- if (!pathname) |
72 |
-+ if (!pathname) { |
73 |
-+ free(basename_cpy); |
74 |
- goto realpatherr; |
75 |
-+ } |
76 |
- } else { |
77 |
-- pathdname = dirname((char *)pathname_orig); |
78 |
-+ char *dirname_cpy = strdup(pathname_orig); |
79 |
-+ if (!dirname_cpy) { |
80 |
-+ free(basename_cpy); |
81 |
-+ goto realpatherr; |
82 |
-+ } |
83 |
-+ pathdname = dirname(dirname_cpy); |
84 |
- pathdnamer = realpath(pathdname, NULL); |
85 |
-- if (!pathdnamer) |
86 |
-+ free(dirname_cpy); |
87 |
-+ if (!pathdnamer) { |
88 |
-+ free(basename_cpy); |
89 |
- goto realpatherr; |
90 |
-+ } |
91 |
- if (!strcmp(pathdnamer, "/")) |
92 |
- error = asprintf(&pathname, "/%s", pathbname); |
93 |
- else |
94 |
- error = asprintf(&pathname, "%s/%s", |
95 |
- pathdnamer, pathbname); |
96 |
-- if (error < 0) |
97 |
-+ if (error < 0) { |
98 |
-+ free(basename_cpy); |
99 |
- goto oom; |
100 |
-+ } |
101 |
- } |
102 |
-+ free(basename_cpy); |
103 |
- } else { |
104 |
- pathname = strdup(pathname_orig); |
105 |
- if (!pathname) |
106 |
--- |
107 |
-2.7.3 |
108 |
- |
109 |
|
110 |
diff --git a/sys-libs/libselinux/libselinux-2.6_rc1-r1.ebuild b/sys-libs/libselinux/libselinux-2.6_rc2.ebuild |
111 |
similarity index 97% |
112 |
rename from sys-libs/libselinux/libselinux-2.6_rc1-r1.ebuild |
113 |
rename to sys-libs/libselinux/libselinux-2.6_rc2.ebuild |
114 |
index fe8c78b..0c6c842 100644 |
115 |
--- a/sys-libs/libselinux/libselinux-2.6_rc1-r1.ebuild |
116 |
+++ b/sys-libs/libselinux/libselinux-2.6_rc2.ebuild |
117 |
@@ -11,7 +11,7 @@ inherit multilib python-r1 toolchain-funcs multilib-minimal |
118 |
|
119 |
MY_P="${P//_/-}" |
120 |
SEPOL_VER="${PV}" |
121 |
-MY_RELEASEDATE="20160930" |
122 |
+MY_RELEASEDATE="20161006" |
123 |
|
124 |
DESCRIPTION="SELinux userland library" |
125 |
HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki" |
126 |
@@ -47,7 +47,6 @@ DEPEND="${RDEPEND} |
127 |
src_prepare() { |
128 |
if [[ ${PV} != 9999 ]] ; then |
129 |
# If needed for live builds, place them in /etc/portage/patches |
130 |
- eapply "${FILESDIR}/libselinux-2.6-0001-libselinux-selinux_restorecon-fix-realpath-logic.patch" |
131 |
eapply "${FILESDIR}/libselinux-2.6-0005-use-ruby-include-with-rubylibver.patch" |
132 |
eapply "${FILESDIR}/libselinux-2.6-0007-build-related-fixes-bug-500674.patch" |
133 |
fi |
134 |
|
135 |
diff --git a/sys-libs/libselinux/libselinux-9999.ebuild b/sys-libs/libselinux/libselinux-9999.ebuild |
136 |
index 84092cb..0c6c842 100644 |
137 |
--- a/sys-libs/libselinux/libselinux-9999.ebuild |
138 |
+++ b/sys-libs/libselinux/libselinux-9999.ebuild |
139 |
@@ -11,7 +11,7 @@ inherit multilib python-r1 toolchain-funcs multilib-minimal |
140 |
|
141 |
MY_P="${P//_/-}" |
142 |
SEPOL_VER="${PV}" |
143 |
-MY_RELEASEDATE="20160930" |
144 |
+MY_RELEASEDATE="20161006" |
145 |
|
146 |
DESCRIPTION="SELinux userland library" |
147 |
HOMEPAGE="https://github.com/SELinuxProject/selinux/wiki" |