From 7ae8b0a13083212092bfb640bc195ff4ac4d7317 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 25 Apr 2014 22:00:23 +0200 Subject: Ensuring correct include directory permissions avoiding tainting of target system in lb init. --- components/init | 7 +++++++ 1 file changed, 7 insertions(+) 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) -- cgit v1.2.3