'aws-iot-greengrass' snap fails to start due to apparmor deny on mounting of "/proc/latency_stats". [interface/greengrass-support]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
## Problem Summary
'aws-iot-
## Error
Lambda container fails to start. I think the error is originating from runc/libcontainer
$ sudo tail /var/snap/
Runtime execution error: unable to start lambda container: failed to run container sandbox: container_
## Root Cause
Snap's apparmor profile doesn't allow mask mounting the path `/proc/
$ sudo journalctl --system -k | grep apparmor
localhost kernel: audit: type=1400 audit(158090078
## System Information
### Ubuntu
$ uname -a
Linux localhost 4.15.0-1054-raspi2 #58-Ubuntu SMP PREEMPT Wed Jan 15 19:28:59 UTC 2020 armv7l armv7l armv7l GNU/Linux
### Snap
$ snap --version
snap 2.42.5
snapd 2.42.5
series 16
kernel 4.15.0-1054-raspi2
### AWS IoT Greengrass Snap
$ snap info aws-iot-greengrass
name: aws-iot-greengrass
services:
aws-
snap-id: SRDuhPJGj4XPxFN
tracking: stable
refresh-date: yesterday at 10:28 UTC
channels:
stable: 1.8.0 2019-04-01 (3) 167MB -
candidate: 1.8.0 2019-03-29 (3) 167MB -
beta: 1.8.0 2019-03-29 (3) 167MB -
edge: 1.8.0 2019-03-29 (3) 167MB -
installed: 1.8.0 (3) 167MB -
affects: | snappy → snapd |
I have done extensive research on the problem, and I have come to a conclusion that this problem can be solved by updating apparmor profile for interface/ greengrass- support.
I have a patch ready, and I can contribute a fix.
Would like to know if I am heading in the right direction and this error is reproducible by the community.
- Hari
Founder & Head of Products,
Alvyl Consulting.