Ensuring correct include directory permissions avoiding tainting of target system in lb init.

This commit is contained in:
Daniel Baumann 2014-04-25 22:00:23 +02:00
parent f78b2a7d25
commit 7ae8b0a130
1 changed files with 7 additions and 0 deletions

View File

@ -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)