snap's device cgroup is not discarded upon uninstall
Bug #1803210 reported by
Ian Johnson
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
snapd |
Confirmed
|
Medium
|
Unassigned |
Bug Description
When developing snaps that plug an interface that generates udev code and thus triggers enforcement of the device cgroup for the snap, removing the snap doesn't remove the device cgroup for the snap, and thus even if the snap is rebuilt and reinstalled with interfaces that don't trigger the device cgroup, the device cgroup is still being enforeced.
I think snap-discard-ns (or something else) should remove the device cgroup when the snap is uninstalled.
Changed in snapd: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
To post a comment you must log in.
I think that all that needs to happen is after all processes from the device cgroup have died/been killed is just to remove the /sys/fs/ cgroup/ devices/ $SNAP_NAME. $SNAP_APP/ directory to remove the cgroup.