aptdaemon frontend locking, locking fixes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
aptdaemon (Ubuntu) |
Fix Released
|
High
|
Julian Andres Klode | ||
Xenial |
Fix Released
|
High
|
Julian Andres Klode | ||
Bionic |
Fix Released
|
High
|
Julian Andres Klode | ||
Cosmic |
Won't Fix
|
High
|
Julian Andres Klode | ||
Disco |
Fix Released
|
High
|
Julian Andres Klode | ||
Eoan |
Fix Released
|
High
|
Julian Andres Klode |
Bug Description
[Impact]
aptdaemon needs to implement frontend locking to avoid it hijacking dpkg status lock from clients that do implement frontend locking; and in order to be protected from apt clients that acquire the status lock (which they won't do if aptdaemon holds the frontend lock).
This also change the locking order to lock in APT order, and the unlock order becomes the reverse of that so that the behavior is sane wrt other clients, as it was somewhat broken.
[Test case]
Lock /var/lib/
[Regression potential]
There may be other race conditions appearing now due to the order of (un)locking changing.
description: | updated |
Changed in aptdaemon (Ubuntu Xenial): | |
status: | New → In Progress |
status: | In Progress → Triaged |
Changed in aptdaemon (Ubuntu Bionic): | |
status: | New → Triaged |
Changed in aptdaemon (Ubuntu Cosmic): | |
status: | New → Triaged |
Changed in aptdaemon (Ubuntu Disco): | |
status: | New → Triaged |
Changed in aptdaemon (Ubuntu Eoan): | |
status: | New → In Progress |
importance: | Undecided → High |
Changed in aptdaemon (Ubuntu Disco): | |
importance: | Undecided → High |
Changed in aptdaemon (Ubuntu Cosmic): | |
importance: | Undecided → High |
Changed in aptdaemon (Ubuntu Bionic): | |
importance: | Undecided → Critical |
importance: | Critical → High |
Changed in aptdaemon (Ubuntu Xenial): | |
importance: | Undecided → High |
assignee: | nobody → Julian Andres Klode (juliank) |
Changed in aptdaemon (Ubuntu Bionic): | |
assignee: | nobody → Julian Andres Klode (juliank) |
Changed in aptdaemon (Ubuntu Cosmic): | |
assignee: | nobody → Julian Andres Klode (juliank) |
Changed in aptdaemon (Ubuntu Disco): | |
assignee: | nobody → Julian Andres Klode (juliank) |
Changed in aptdaemon (Ubuntu Eoan): | |
assignee: | nobody → Julian Andres Klode (juliank) |
status: | In Progress → Fix Committed |
This bug was fixed in the package aptdaemon - 1.1.1+bzr982- 0ubuntu23
--------------- bzr982- 0ubuntu23) eoan; urgency=medium
aptdaemon (1.1.1+
* Various locking fixes (LP: #1831981)
- Implement frontend locking
- Adjust locking order to match APT
- Use reverse order for unlocking
-- Julian Andres Klode <email address hidden> Fri, 07 Jun 2019 12:04:55 +0200