Hide Forgot
Description of problem: It's not something that matters much right now, but as people will be moving to unified cgroup hierarchy, this will matter more. /usr/lib/udev/snappy-app-dev hardcodes paths which are specific to legacy hierarchy (and assumes that devices controller is mounted...). Version-Release number of selected component (if applicable): snapd-2.23.6-1.fc27 Expected results: All code which touches cgroups is ready for legacy and unified hierarchies.
The udev rules are in snap-confine-2.23.6-1.fc26.x86_64.rpm actually.
So there's snap-confine in dist git, but snap-confine is now built from snapd. Confusing!
Thank you for the bug report. We will look at solving this!
It doesn't work in general on v2: $ sudo snap run --shell hello-fedora cannot open tasks file for freezer cgroup hierarchy for snap hello-fedora: No such file or directory
Zygmunt, Maciek, what is the progress on this? Fedora 31 will be moving to CGroups v2, so snaps will be dead in the water on F31 GA if it isn't fixed in time...
We've made some initial progress. I'm currently looking into a way to group the processes of a given snap, so that we can freeze and count them without jumping around the `system.slice` and `user.slice` hierarchies. We can do that right now with v1 by using controllers that aren't used by systemd and creating separate groups there. The snap-confine tool would place the process under the right group before exec()'ing the snap payload. With v2, it seems system services from snaps can be easily addressed by setting up slices for each snap. However, I'm seeing more problems with user started applications and services. Those are reasonably placed under user-*.slice/user@*.service/{,session-*}. Even if we create a subtree there, we'd still need to check 2-3 places to get the information about running processes or to freeze them. For now, I only managed to achieve the same by moving from under the cgroup created by systemd to another one, something we should not do. Perhaps we'll manage to discuss some ideas during Flock too.
FEDORA-2019-bb0a25e48d has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-bb0a25e48d
snapd-2.41-1.fc31 has been pushed to the Fedora 31 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-bb0a25e48d
snapd-2.41-1.fc31 has been pushed to the Fedora 31 stable repository. If problems still persist, please make note of it in this bug report.