mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
buildserver: /vagrant/cache writeable only by root
Prevent build processes from modifying the cache, it is only needed during provisioning anyway. A malicious build could still use sudo to change the cache, but this is more to prevent mistaken modifications.
This commit is contained in:
parent
6ea2508127
commit
d0bb6f73bf
1 changed files with 2 additions and 1 deletions
|
@ -363,7 +363,8 @@ if 'aptproxy' in config and config['aptproxy']:
|
|||
# does not need a custom mount
|
||||
if cachedir != 'buildserver/cache':
|
||||
vagrantfile += """
|
||||
config.vm.synced_folder '{0}', '/vagrant/cache'
|
||||
config.vm.synced_folder '{0}', '/vagrant/cache',
|
||||
owner: 'root', group: 'root', create: true
|
||||
""".format(cachedir)
|
||||
|
||||
# cache .deb packages on the host via a mount trick
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue