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
support actually seems good enough.

You can test quickly with

  pkcheck -a org.freedesktop.udisks2.filesystem-mount -p $$; echo $?

This should give 0 ("allowed") normally, and 1 and "Not authorized."
while you are running "sudo ./udisks2-inhibit sleep 5" or something
such.

** Attachment added: "fixed udisks2-inhibit (using inotify)"
   
https://bugs.launchpad.net/ubuntu/+source/udisks2/+bug/1508075/+attachment/4501723/+files/udisks2-inhibit

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1508075

Title:
  ubiquity and others time out on polkit (killed by udisks2-inhibit)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/udisks2/+bug/1508075/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to