[Bug 1508075] Re: ubiquity and others time out on polkit (killed by udisks2-inhibit)

2015-10-29 Thread Launchpad Bug Tracker
This bug was fixed in the package udisks2 - 2.1.6-2+git1 --- udisks2 (2.1.6-2+git1) xenial; urgency=medium * udisks2-inhibit: Stop fiddling with polkit rules; restarting it can break existing clients/pending requests, and we can't use inotify as we don't want to write

[Bug 1508075] Re: ubiquity and others time out on polkit (killed by udisks2-inhibit)

2015-10-21 Thread Launchpad Bug Tracker
This bug was fixed in the package udisks2 - 2.1.6-2ubuntu1 --- udisks2 (2.1.6-2ubuntu1) wily; urgency=medium * udisks2-inhibit: Restart polkitd instead of just killing it, so that existing connected clients continue having something to talk to instead of timing out. Keep

[Bug 1508075] Re: ubiquity and others time out on polkit (killed by udisks2-inhibit)

2015-10-21 Thread Martin Pitt
For Debian and X-series I have committed http://anonscm.debian.org/cgit /pkg-utopia/udisks2.git/commit/?id=b68ac3766c now, which implements the udev rules approach. ** Changed in: udisks2 (Ubuntu X-series) Status: In Progress => Fix Committed -- You received this bug notification because

[Bug 1508075] Re: ubiquity and others time out on polkit (killed by udisks2-inhibit)

2015-10-21 Thread Martin Pitt
** Changed in: udisks2 (Ubuntu) Status: Incomplete => In Progress ** Changed in: udisks2 (Ubuntu) Assignee: (unassigned) => Martin Pitt (pitti) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu.

[Bug 1508075] Re: ubiquity and others time out on polkit (killed by udisks2-inhibit)

2015-10-21 Thread Martin Pitt
This is a tested replacement for udisks2-inhibit which avoids killing/restarting the daemon. It instead uses polkit's inotify by merely placing a symlink into /var/lib/polkit-1/localauthority/90-mandatory.d/ . Since we are only adding a new file (or rm it on cleanup), overlayfs' restricted inotify

[Bug 1508075] Re: ubiquity and others time out on polkit (killed by udisks2-inhibit)

2015-10-21 Thread Martin Pitt
Neither of the above solutions are perfect, thus for x and beyond (and for Debian), I'd actually like to change it like this: udisks2-inhibit should create a temporary udev rule in /run/udev/rules.d/ with SUBSYSTEM=="block", ENV{UDISKS_IGNORE}="1" on all block devices. and then "udevadm

[Bug 1508075] Re: ubiquity and others time out on polkit (killed by udisks2-inhibit)

2015-10-21 Thread Martin Pitt
Note that the above is less robust than the original one as it now could happen to leave a dangling symlink behind if udisks2-inhibit is killed while its running with a signal that doesn't run the cleanup trap. However, this doesn't change actual policy, and as we only really use that during the

[Bug 1508075] Re: ubiquity and others time out on polkit (killed by udisks2-inhibit)

2015-10-21 Thread Martin Pitt
As indicated above, this is a variant which keeps the robust bind mounting, but restarts polkit instead of just killing it. This should deal much more gracefully with existing connected clients. ** Attachment added: "fixed udisks2-inhibit (using restart)"