diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-10-25 06:30:50 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-10-25 07:28:43 -0300 |
commit | b44ad96bf07b4b849f46a011a85ec6c2a8a245c8 (patch) | |
tree | b0c58940639eee1da9525afa020747c7ad38f051 /pcr/iceweasel-hardening/enable-object-directory-paths.patch | |
parent | 3e3fb2d6801149802cbf2c2a2e6cbdfcc5149add (diff) |
ice{dove,weasel}-hardening: add new package to [pcr] -> https://lists.parabola.nu/pipermail/dev/2016-October/004522.html
Diffstat (limited to 'pcr/iceweasel-hardening/enable-object-directory-paths.patch')
-rw-r--r-- | pcr/iceweasel-hardening/enable-object-directory-paths.patch | 13 |
1 files changed, 13 insertions, 0 deletions
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) |