downloader.test example fails to run

Bug #1544236 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
Fix Released
Medium
Leo Arias

Bug Description

Running the binary downloader.test in a recent all-snaps snappy image shows no output.

The snappy-debu scanlog shows:

= AppArmor =
Time: Feb 10 19:11:21
Log: apparmor="DENIED" operation="open" profile="downloader.sideload_test_IMNKLcfHYDBI" name="/etc/hosts" pid=1296 comm="test" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /etc/hosts (read)
Suggestions:
* adjust program to read necessary files from SNAP_APP_PATH
* add '/etc/hosts' to 'read-paths' in security-override

= AppArmor =
Time: Feb 10 19:11:21
Log: apparmor="DENIED" operation="open" profile="downloader.sideload_test_IMNKLcfHYDBI" name="/run/resolvconf/resolv.conf" pid=1296 comm="test" requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
File: /run/resolvconf/resolv.conf (read)
Suggestions:
* adjust program to use SNAP_APP_DATA_PATH
* adjust program to use /run/shm/snaps/SNAP_FULLNAME/SNAP_VERSION

= AppArmor =
Time: Feb 10 19:11:21
Log: apparmor="DENIED" operation="create" profile="downloader.sideload_test_IMNKLcfHYDBI" pid=1296 comm="test" family="inet" sock_type="dgram" protocol=0

[Impact]

 * For users, none.

 * The test is just installing the snap, not executing it. So a regression might be introduced in this code path.

[Test Case]

 * Run the snaps tests.

[Regression Potential]

 * The snaps tests might start failing. But they are run in the pull request and in the autopkgtest, so we are covered.

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

This apparently doesn't have the 'network-client' old-security/cap applied. The recent changes wrt interfaces does not add 'network-client' if it isn't specified. It needs to be discussed if the new behavior is intentional or not and it not, how to move forward.

Leo Arias (elopio)
Changed in snapcraft:
milestone: none → 2.11
assignee: nobody → Leo Arias (elopio)
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Leo Arias (elopio) wrote :

Thanks Jamie. A little late, but we are adding this test now.

https://github.com/ubuntu-core/snapcraft/pull/589

description: updated
Changed in snapcraft:
status: Triaged → In Progress
Leo Arias (elopio)
Changed in snapcraft:
milestone: 2.12 → 2.13
Changed in snapcraft:
milestone: 2.13 → 2.14
Changed in snapcraft:
status: In Progress → Fix Committed
Changed in snapcraft:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.