Ensuring correct include directory permissions avoiding tainting of target system...
authorDaniel Baumann <mail@daniel-baumann.ch>
Fri, 25 Apr 2014 20:00:23 +0000 (22:00 +0200)
committerDaniel Baumann <mail@daniel-baumann.ch>
Sat, 26 Apr 2014 06:05:32 +0000 (08:05 +0200)
components/init

index 4248328..af90598 100755 (executable)
@@ -143,6 +143,13 @@ def main():
        os.makedirs('config/includes.binary', exist_ok=True)
        os.makedirs('config/includes.source', exist_ok=True)
 
+       # Ensure correct include directory permissions avoiding tainting of target system
+       os.chmod('config/includes', 0755)
+       os.chmod('config/includes.bootstrap', 0755)
+       os.chmod('config/includes.chroot', 0755)
+       os.chmod('config/includes.binary', 0755)
+       os.chmod('config/includes.source', 0755)
+
        # Configuring default package lists
        os.makedirs('config/package-lists', exist_ok=True)