From d3b7c297e50308dcabe675992d19829f6c3840fd Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Wed, 6 Jun 2012 10:31:32 -0400 Subject: [PATCH] Use "device" instead of "block_device" in the polkit variables Signed-off-by: David Zeuthen --- doc/udisks2-docs.xml | 10 +++++----- src/udisksdaemonutil.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/doc/udisks2-docs.xml b/doc/udisks2-docs.xml index bbc27f1..07e8fc3 100644 --- a/doc/udisks2-docs.xml +++ b/doc/udisks2-docs.xml @@ -182,9 +182,9 @@ for request). For example, a polkit authorization rule for any of the org.freedesktop.udisks2.filesystem-mount* - actions can use the device_file - variable to determine if the caller is authorized to mount a - specific device. + actions can use the device variable + to determine if the caller is authorized to mount a specific + block device. @@ -198,12 +198,12 @@ - device_file + device If the object is a block device, this property is set to the value of the Block:PreferredDevice property. If set, this is guaranteed to be a device file, for example /dev/vg_lucifer/lv_root or /dev/sda1. If the object is not a block device, this is not set. drive - Like device_file, but if the object is also a drive, this variable includes Vital Product Data about the drive such as the vendor and model identifiers (if available), for example INTEL SSDSA2MH080G1GC (/dev/sda1). Otherwise is just set to the same value as device_file. If the object is not a block device, this is not set (it is however set if the object is a block device but not a drive). + Like device, but if the object is also a drive, this variable includes Vital Product Data about the drive such as the vendor and model identifiers (if available), for example INTEL SSDSA2MH080G1GC (/dev/sda1). Otherwise is just set to the same value as device. If the object is not a block device, this is not set (it is however set if the object is a block device but not a drive). drive.wwn diff --git a/src/udisksdaemonutil.c b/src/udisksdaemonutil.c index 1e8d064..afd7726 100644 --- a/src/udisksdaemonutil.c +++ b/src/udisksdaemonutil.c @@ -544,7 +544,7 @@ udisks_daemon_util_check_authorization_sync (UDisksDaemon *daemon, details_drive = udisks_block_dup_preferred_device (block); if (details_device != NULL) - polkit_details_insert (details, "device_file", details_device); + polkit_details_insert (details, "device", details_device); if (details_drive != NULL) polkit_details_insert (details, "drive", details_drive); -- 2.7.4