snapd fails on old kernel apparmor, runtime detection needed

Bug #1591148 reported by Federico Gimenez
58
This bug affects 10 people
Affects Status Importance Assigned to Milestone
snapd
Fix Released
High
Unassigned

Bug Description

A Linode instance of Ubuntu using the stock Linode kernel does not work with snapd as snapd assumes the ubuntu kernel (when os-release says it is ubuntu) and uses apparmor features otherwise not available.

There are several issues here:
 - branding !ubuntu as ubuntu
 - running on apparmor system that is not supporting new constructs
 - using runtime detection (across snapd+snap-confine) rather than compile-time or simplified (which distro + release) checks

Tags: security
Ben M. (bmhm)
tags: added: security
Zygmunt Krynicki (zyga)
description: updated
no longer affects: snappy
Changed in snapd:
status: New → Confirmed
summary: - snap install fails with a kernel lacking apparmor support
+ snapd fails on old kernel apparmor, runtime detection needed
Changed in snapd:
importance: Undecided → High
Revision history for this message
Celso Providelo (cprov) wrote :

This also comes with an additional impact on the Store.

Linode instances trying to refresh core from r888 to r1079 (amd64), will systematically fail every 6h after downloading the core blob (70MB), no cache or failure limits, it will keep retrying, e.g.:

https://pastebin.canonical.com/179859/

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Snapd does runtime kernel detection now, I'm inclined to close this bug.

Changed in snapd:
status: Confirmed → 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.