snapd udev rules are incompatible with unified cgroup hierarchy

Bug #1678342 reported by Neal Gompa
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
snapd
Triaged
High
Zygmunt Krynicki
snapd (Fedora)
In Progress
Undecided

Bug Description

snapd / snap-confine currently assume that the legacy CGroup hierarchy is used, however the new unified CGroup hierarchy is coming and is incompatible with the udev hooks currently distributed with the snap-confine aspect of Snappy.

Tags: cross-distro
Revision history for this message
In , Zbigniew (zbigniew-redhat-bugs) wrote :

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.

Revision history for this message
In , Zbigniew (zbigniew-redhat-bugs) wrote :

The udev rules are in snap-confine-2.23.6-1.fc26.x86_64.rpm actually.

Revision history for this message
In , Zbigniew (zbigniew-redhat-bugs) wrote :

So there's snap-confine in dist git, but snap-confine is now built from snapd. Confusing!

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

Thanks for reporting this issue. As you seem to know more about this than I do, can you tell me how the new cgroup hierarchy works? Snapd has very modest requirements wrt control groups, it merely wants to create a new device control group in specific conditions. We don't care (particularly) about much else, apart from the fact that a process is placed there and that we can put certain devices there.

Changed in snappy:
importance: Undecided → High
assignee: nobody → Zygmunt Krynicki (zyga)
status: New → Incomplete
Revision history for this message
Neal Gompa (ngompa13) wrote :

@Zygmunt, I have no idea. I just forwarded the bug on from Red Hat Bugzilla. You'll want to ask Zbigniew Jędrzejewski-Szmek in the linked bug.

Simon Fels (morphis)
tags: added: cross-distro
Revision history for this message
In , Zygmunt (zygmunt-redhat-bugs) wrote :

Thank you for the bug report. We will look at solving this!

Zygmunt Krynicki (zyga)
Changed in snappy:
status: Incomplete → Triaged
Zygmunt Krynicki (zyga)
no longer affects: snap-confine
Changed in snapd:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Zygmunt Krynicki (zyga)
Changed in snappy:
assignee: Zygmunt Krynicki (zyga) → nobody
no longer affects: snappy
Changed in snapd (Fedora):
importance: Unknown → Undecided
status: Unknown → In Progress
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.