From b44ad96bf07b4b849f46a011a85ec6c2a8a245c8 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Tue, 25 Oct 2016 06:30:50 -0300 Subject: ice{dove,weasel}-hardening: add new package to [pcr] -> https://lists.parabola.nu/pipermail/dev/2016-October/004522.html --- pcr/iceweasel-hardening/enable-object-directory-paths.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 pcr/iceweasel-hardening/enable-object-directory-paths.patch (limited to 'pcr/iceweasel-hardening/enable-object-directory-paths.patch') diff --git a/pcr/iceweasel-hardening/enable-object-directory-paths.patch b/pcr/iceweasel-hardening/enable-object-directory-paths.patch new file mode 100644 index 000000000..bc938c66e --- /dev/null +++ b/pcr/iceweasel-hardening/enable-object-directory-paths.patch @@ -0,0 +1,13 @@ +diff --git a/python/mozbuild/mozbuild/frontend/context.py b/python/mozbuild/mozbuild/frontend/context.py +index 41ae8ae..dcc3263 100644 +--- a/python/mozbuild/mozbuild/frontend/context.py ++++ b/python/mozbuild/mozbuild/frontend/context.py +@@ -408,8 +408,6 @@ class Path(ContextDerivedValue, unicode): + class SourcePath(Path): + """Like Path, but limited to paths in the source directory.""" + def __init__(self, context, value): +- if value.startswith('!'): +- raise ValueError('Object directory paths are not allowed') + if value.startswith('%'): + raise ValueError('Filesystem absolute paths are not allowed') + super(SourcePath, self).__init__(context, value) -- cgit v1.2.3