Add multi-seat support
authorDavid Zeuthen <davidz@redhat.com>
Sat, 21 Apr 2012 15:31:35 +0000 (11:31 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Sat, 21 Apr 2012 15:35:45 +0000 (11:35 -0400)
commit91106cdc7622d9674f6083dcb524407f026a36c7
tree6179790f1ccc1da845ef1ff8677ac7449de83a9a
parent9c408ae9bad6c5f147d21564d9847eabd329ca6d
Add multi-seat support

The first change is that we require additional authorization to
mount/unlock/modify a device, if it is on another seat than the
caller.

The other change is that we export the seat id as a property on the
org.freedesktop.UDisks2.Drive D-Bus interface. This can be used by
auto-mounter infrastructure (such as GVfs) to hint that a device
should not be automatically mounted unless it's plugged into the same
seat as where the environment is running.

All this is based on the libsystemd-login library - if this library is
not available at build-time, multi-seat support will not be enabled.

Signed-off-by: David Zeuthen <davidz@redhat.com>
12 files changed:
configure.ac
data/org.freedesktop.UDisks2.xml
data/org.freedesktop.udisks2.policy.in
doc/udisks2-sections.txt
src/udisksdaemonutil.c
src/udisksdaemonutil.h
src/udiskslinuxblock.c
src/udiskslinuxdrive.c
src/udiskslinuxencrypted.c
src/udiskslinuxfilesystem.c
src/udiskslinuxpartition.c
src/udiskslinuxpartitiontable.c