← Back to team overview

desktop-packages team mailing list archive

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

 

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 Desktop
Packages, which is subscribed to udisks2 in Ubuntu.
https://bugs.launchpad.net/bugs/1508075

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

Status in udisks2 package in Ubuntu:
  In Progress

Bug description:
  on wily release candidates I get a crash when it switches to the
  network setup page

  this doesn't happen with "try ubuntu" mode which runs as root only
  when launching ubiquity from the desktop

  the backtrace points to an authentication issue

  I get a related backtrace even if I'm connected to a network from the
  panel network-manager

  ProblemType: Bug
  DistroRelease: Ubuntu 15.10
  Package: ubiquity 2.21.35
  ProcVersionSignature: Ubuntu 4.2.0-16.19-generic 4.2.3
  Uname: Linux 4.2.0-16-generic x86_64
  ApportVersion: 2.19.1-0ubuntu3
  Architecture: amd64
  CasperVersion: 1.365
  CurrentDesktop: Unity
  Date: Tue Oct 20 14:26:28 2015
  InstallCmdLine: file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/casper/initrd.lz quiet splash ---
  LiveMediaBuild: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151019)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: ubiquity
  UpgradeStatus: No upgrade log present (probably fresh install)

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