summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Baumann <mail@daniel-baumann.ch>2014-04-25 22:00:23 +0200
committerDaniel Baumann <mail@daniel-baumann.ch>2014-04-26 08:05:32 +0200
commit7ae8b0a13083212092bfb640bc195ff4ac4d7317 (patch)
treeac66d3de5ee60750105742fae1dfb58e632f9782
parentf78b2a7d25ae376fecf738ec59877e7019e58f92 (diff)
downloadvyos-live-build-7ae8b0a13083212092bfb640bc195ff4ac4d7317.tar.gz
vyos-live-build-7ae8b0a13083212092bfb640bc195ff4ac4d7317.zip
Ensuring correct include directory permissions avoiding tainting of target system in lb init.
-rwxr-xr-xcomponents/init7
1 files changed, 7 insertions, 0 deletions
diff --git a/components/init b/components/init
index 424832866..af90598cc 100755
--- a/components/init
+++ b/components/init
@@ -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)