Add standard ca certificate paths

When using the uri module in a base job it cannot validate ssl certs
unless you add the ca certificate paths to (un)trusted-ro-paths. This
seems a common use case so it makes sense to mount them into the bwrap
context by default if they are existing.

Change-Id: I2277374cdb8455dd9e39222ef0ecbab4c8ac786e
This commit is contained in:
Tobias Henkel 2018-03-16 16:29:40 +01:00
parent a66634c7fd
commit ee9c392b40
No known key found for this signature in database
GPG Key ID: 03750DEC158E5FA2
1 changed files with 1 additions and 0 deletions

View File

@ -213,6 +213,7 @@ class BubblewrapDriver(Driver, WrapperInterface):
'/etc/nsswitch.conf',
'/etc/lsb-release.d',
'/etc/alternatives',
'/etc/ssl/certs',
]:
if os.path.exists(path):
bwrap_command.extend(['--ro-bind', path, path])