Backport support for the -lln command-line option to unsquashfs for 18.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
squashfs-tools (Ubuntu) |
Fix Released
|
Low
|
Unassigned | ||
Bionic |
Fix Released
|
Undecided
|
Alex Murray |
Bug Description
[Impact]
unsquashfs gains a new flag to list numeric uid/gid in the contents of squashfs files. This can be used by the snap store dashboard and review-tools to accurately assess the owner of files within a snap etc.
[Test Case]
snap download core
unsquashfs -lln core_*.snap
The above should succeed and output numeric uid/gid information, e.g.:
...
drwxrwsr-x 0/50 3 2016-04-13 05:44 squashfs-
drwxrwxr-x 0/114 94 2021-04-28 17:53 squashfs-
-rw------- 0/43 0 2021-04-28 17:49 squashfs-
-rw-r----- 0/4 31 2021-04-28 17:49 squashfs-
-rw-r----- 0/4 31 2021-04-28 17:49 squashfs-
-rw-r----- 0/4 31 2021-04-28 17:49 squashfs-
-rw-rw-r-- 0/43 30660 2021-04-28 17:49 squashfs-
-rw-rw-r-- 0/43 0 2021-04-28 17:49 squashfs-
drwxrwsr-x 0/8 3 2021-04-28 17:49 squashfs-
drwx-wx--T 0/102 3 2016-04-06 07:29 squashfs-
drwx------ 108/4 3 2019-03-25 23:44 squashfs-
...
As a more detailed test, the test-squashfs-
[Where problems could occur]
unsquashfs could fail to properly run and so the snap store review-tools could fail as a result. The review-tools and the store are coded to fail-closed such that any resulting problems with unsquashfs should not allow snaps that would otherwise be flagged by the review-tools to pass automated review.
------- original description follows --------
The snap store review-tools is changing to compare snaps based on their numeric uid/gids rather than user/group names (see https:/
Currently the snap store dashboard, where the review-tools are run, is running Ubuntu 18.04 - which is based on squashfs-tools 4.3 - however support for the -lln command-line option was only added in the 4.4 release. This change https:/
Changed in squashfs-tools (Ubuntu Bionic): | |
assignee: | nobody → Alex Murray (alexmurray) |
Changed in squashfs-tools (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Fix Released |
description: | updated |
Changed in squashfs-tools (Ubuntu Bionic): | |
status: | New → In Progress |
This update is being prepared in https:/ /launchpad. net/~ci- train-ppa- service/ +archive/ ubuntu/ 4560