Files
snapd/tests/main/snapshot-basic
Alex Murray fd16a02b94 o/snapshotstate: check snapshots are self-contained on import (#12414)
* o/snapshotstate: check snapshots are self-contained on import

Snapshots require administrator privileges to be imported and hence are assumed
to be trusted. However, let's try and be as helpful as possible and validate
that they are self-contained on import (ie. there are no files within the
snapshot that point outside of the parent directory) and report an error in that
case.

Thanks: Sam Sanoop <sams@snyk.io>
Signed-off-by: Alex Murray <alex.murray@canonical.com>

* tests: fix snapshot-basic test on trusty

Signed-off-by: Alex Murray <alex.murray@canonical.com>
Co-authored-by: Michael Vogt <mvo@ubuntu.com>
2022-12-12 15:53:51 +01:00
..