Ensuring correct include directory permissions avoiding tainting of target system in lb init.
This commit is contained in:
parent
f78b2a7d25
commit
7ae8b0a130
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue