jailmode doesn't work with snap try or snap install

Bug #1641885 reported by Didier Roche-Tolomelli
20
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
High
Zygmunt Krynicki

Bug Description

$ snap --version
snap 2.16ubuntu3
snapd 2.16ubuntu3
series 16
ubuntu 16.04

1. Install a snap in devmode, listening to the network for instance. (like https://github.com/ubuntu/snap-codelabs-code/tree/master/build-a-werbserver-service/step3)
Note that this one defines "confinement: devmode"
2. Build and install it with --jailmode
3. Run the app -> notice that the apparmor denials (like binds) are ALLOWED in syslog.

$ snap list
chuck-norris-webserver 1.0.0 x6 jailmode

the apparmor profile is still in "complain" mode.

Zygmunt Krynicki (zyga)
Changed in snappy:
status: New → Triaged
importance: Undecided → High
Zygmunt Krynicki (zyga)
Changed in snappy:
assignee: nobody → Zygmunt Krynicki (zyga)
status: Triaged → In Progress
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

This is fixed by the following pull request, scheduled to land for 2.18

https://github.com/snapcore/snapd/pull/2310

Revision history for this message
Zygmunt Krynicki (zyga) wrote :
Zygmunt Krynicki (zyga)
Changed in snappy:
status: In Progress → Fix Committed
Michael Vogt (mvo)
Changed in snappy:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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