please add -fstime patch for snap v2 checks in review tools
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
squashfs-tools (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Trusty |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
From xenial:
squashfs-tools (1:4.3-3ubuntu1) xenial; urgency=medium
* debian/
extract the fs superblock information and -fstime to mksquashfs to set
the fs superblock time on create. This is needed to support Ubuntu
Store unpack and repack checks for snappy v2 snaps.
This patch needs to be SRU'd to trusty so that Canonical machines for the Ubuntu Store can properly verify snap v2 packages and so that people running trusty can verify snap v2 packages locally.
[Test Case]
Attached is sru-tests.tar.gz that has tests to both show the bug is fixed and some tests for regressions.
$ schroot -c trusty-amd64 -u root
# apt-get install squashfs-tools
# su <your username>
$ tar -zxvf ./sru-tests.tar.gz
$ cd sru-tests
$ ./test-
...
All tests pass
$ ./test-
Could not determine fstime
but with the fix:
$ ./test-
Parallel unsquashfs: Using 4 processors
...
./snappy-
/tmp/tmp.
SUCCESS: match
If you also want to see if it works with the review tools, can check out the review tools and then run them on a v2 snap. Eg:
$ schroot -c trusty-amd64 -u root
# apt-get install click-reviewers
# su <your username>
$ bzr branch lp:click-reviewers-tools
$ cd click-reviewers
$ PYTHONPATH=./ ./bin/click-review /tmp/snappy-
Warnings
--------
- security-
could not determine fstime of squashfs
/tmp/snappy-
With updated squashfs-tools:
$ PYTHONPATH=./ ./bin/click-review /tmp/snappy-
/tmp/snappy-
or:
$ PYTHONPATH=./ ./bin/click-review -v /tmp/snappy-
...
- security-
OK
/tmp/snappy-
[Regression Potential]
The chance of regression is very small because the code that is being added is for non-default options and is only run if specifying the new -fstime option to mksquashfs and unsquashfs. Furthermore this patch exists in xenial with no bugs against it since the upload.
[Other Info]
In addition to the above, I compared build logs between unpatched and patched and no new warnings or issues were found.
Changed in squashfs-tools (Ubuntu): | |
status: | New → Fix Released |
summary: |
- please add -fstime patch to trusty + please add -fstime patch for snap v2 checks in review tools |
Here is a snap that can be used for testing.