1 |
commit: e2eb3c8252c2ad154e84cc8803974103e9635eee |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 21 22:11:43 2019 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 21 22:18:51 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=e2eb3c82 |
7 |
|
8 |
pid-sandbox: whitelist "depend" phase |
9 |
|
10 |
Whitelist the "depend" phase for pid-sandbox, since this phase has very |
11 |
little risk of leaving processes running, and pid-sandbox introduces |
12 |
additional overhead that would affect egencache performance. |
13 |
|
14 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
15 |
|
16 |
lib/portage/package/ebuild/doebuild.py | 3 ++- |
17 |
1 file changed, 2 insertions(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/lib/portage/package/ebuild/doebuild.py b/lib/portage/package/ebuild/doebuild.py |
20 |
index f11923595..cf95dc406 100644 |
21 |
--- a/lib/portage/package/ebuild/doebuild.py |
22 |
+++ b/lib/portage/package/ebuild/doebuild.py |
23 |
@@ -111,7 +111,8 @@ _ipc_phases = frozenset([ |
24 |
]) |
25 |
|
26 |
# phases which execute in the global PID namespace |
27 |
-_global_pid_phases = frozenset(['preinst', 'postinst', 'prerm', 'postrm', 'config']) |
28 |
+_global_pid_phases = frozenset([ |
29 |
+ 'config', 'depend', 'preinst', 'prerm', 'postinst', 'postrm']) |
30 |
|
31 |
# phases in which networking access is allowed |
32 |
_networked_phases = frozenset([ |