From b81d5e054d59df523a30f997e0ae66eb2c7107ff Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sun, 21 Mar 2021 14:19:39 +0100 Subject: Debugging tainted namespace on profile modules. --- archinstall/lib/profiles.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'archinstall/lib') diff --git a/archinstall/lib/profiles.py b/archinstall/lib/profiles.py index 92c9a140..bafa76df 100644 --- a/archinstall/lib/profiles.py +++ b/archinstall/lib/profiles.py @@ -129,6 +129,9 @@ class Script(): if namespace: self.namespace = namespace + if '.py' in self.namespace: + raise KeyError("Debugging") + self.spec = importlib.util.spec_from_file_location(self.namespace, self.path) imported = importlib.util.module_from_spec(self.spec) sys.modules[self.namespace] = imported -- cgit v1.2.3-70-g09d2