missing ptrace options needed by snap-confine
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
Critical
|
Yuan-Chen Cheng | ||
snap-confine |
Fix Released
|
Undecided
|
Unassigned | ||
snap-confine (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned | ||
Yakkety |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
When porting snappy to our reference device -- m10 (xenial, arm64, kernel-3.10), execution of hello-world command from the hello-world snap fails due to the lack of appropriate permission in apparmor. It turns out ptrace is used between snap-confine and its mount helper, and the corresponding trace/tracedby permissions are not granted. Merge proposal https:/
[Test Case]
1. flash m10 with images from frieza_arm64 channel,
2. install snapd. You may need to setup networking, remount root filesystem as read-write first.
3. install hello-world snap
4. run `hello-world`
[Regression Potential]
This patch grants extra options carried to ptrace calls between snap-confine and mount-namespace
[Other Info]
* snap-confine is technically an integral part of snapd which has an SRU exception and is allowed to introduce new features and take advantage of accelerated procedure. For more information see https:/
== # Pre-SRU bug description follows # ==
[ 2526.693811] (1)[30640:
[ 2526.693845] (1)[30640:
[ 3512.751438] (1)[8128:
So we need to modify /etc/apparmor.
/usr/lib/
...
ptrace (read, readby, tracedby) ...
^mount-
...
ptrace (read, trace, tracedby) ...
Changed in canonical-devices-system-image: | |
milestone: | none → x1 |
Changed in canonical-devices-system-image: | |
status: | New → Fix Committed |
Changed in canonical-devices-system-image: | |
assignee: | nobody → Yuan-Chen Cheng (ycheng-twn) |
Changed in canonical-devices-system-image: | |
importance: | Undecided → Critical |
Changed in snap-confine: | |
milestone: | none → 1.0.44 |
status: | Fix Committed → Fix Released |
description: | updated |
tags: | added: verification-needed |
description: | updated |
description: | updated |
description: | updated |
Changed in canonical-devices-system-image: | |
status: | Fix Committed → Fix Released |
Changed in snap-confine (Ubuntu): | |
status: | Fix Committed → Fix Released |
Changed in snap-confine (Ubuntu Xenial): | |
status: | Fix Committed → Fix Released |
Changed in snap-confine (Ubuntu Yakkety): | |
status: | Fix Committed → Fix Released |
This, along with bug 1632272, are necessary to install/run snap hello-world package on avila.