Hi, On Sun, Aug 28, 2011 at 2:34 PM, Kay Sievers <kay.sievers@xxxxxxxx> wrote: > Udev rules or udisks act system wide, but the policy to mount a device > runs in the user session. The user session only talks to the > privileged processes which, after privilege checks, act on behalf of > the user. > > What you probably want, and what might be nice to have for other > things too, is a way for an application to dynamically inhibit the > user session's auto-mounting. > > And unlike the writing-out of a static file, such a dynamic lock > should automatically be cleared when the application goes away. This already exists, it's the --inhibit option for the udisks(1) program, see http://hal.freedesktop.org/docs/udisks/udisks.1.html or the Inhibit() method if you want to do it via D-Bus http://hal.freedesktop.org/docs/udisks/UDisks.html#UDisks.Inhibit David -- To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html