diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/hal-system-power-hibernate | 2 | ||||
-rwxr-xr-x | tools/hal-system-power-reboot | 2 | ||||
-rwxr-xr-x | tools/hal-system-power-shutdown | 2 | ||||
-rwxr-xr-x | tools/hal-system-power-suspend | 2 | ||||
-rwxr-xr-x | tools/hal-system-storage-eject | 2 | ||||
-rwxr-xr-x | tools/hal-system-storage-unmount | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/tools/hal-system-power-hibernate b/tools/hal-system-power-hibernate index b8f7807c..9f4075f7 100755 --- a/tools/hal-system-power-hibernate +++ b/tools/hal-system-power-hibernate @@ -12,7 +12,7 @@ unsupported() { POLICY=hal-power-hibernate if [ "$HAL_METHOD_INVOKED_BY_UID" != "0" ] ; then - polkit-is-privileged --policy $POLICY --uid $HAL_METHOD_INVOKED_BY_UID + polkit-is-privileged --privilege $POLICY --user $HAL_METHOD_INVOKED_BY_UID IS_PRIVILEGED=$? if [ "$IS_PRIVILEGED" != "0" ] ; then echo org.freedesktop.Hal.Device.PermissionDeniedByPolicy >&2 diff --git a/tools/hal-system-power-reboot b/tools/hal-system-power-reboot index 367b794a..4c92e444 100755 --- a/tools/hal-system-power-reboot +++ b/tools/hal-system-power-reboot @@ -8,7 +8,7 @@ unsupported() { POLICY=hal-power-reboot if [ "$HAL_METHOD_INVOKED_BY_UID" != "0" ] ; then - polkit-is-privileged --policy $POLICY --uid $HAL_METHOD_INVOKED_BY_UID + polkit-is-privileged --privilege $POLICY --user $HAL_METHOD_INVOKED_BY_UID IS_PRIVILEGED=$? if [ "$IS_PRIVILEGED" != "0" ] ; then echo org.freedesktop.Hal.Device.PermissionDeniedByPolicy >&2 diff --git a/tools/hal-system-power-shutdown b/tools/hal-system-power-shutdown index 4e11d76e..327a9584 100755 --- a/tools/hal-system-power-shutdown +++ b/tools/hal-system-power-shutdown @@ -8,7 +8,7 @@ unsupported() { POLICY=hal-power-poweroff if [ "$HAL_METHOD_INVOKED_BY_UID" != "0" ] ; then - polkit-is-privileged --policy $POLICY --uid $HAL_METHOD_INVOKED_BY_UID + polkit-is-privileged --privilege $POLICY --user $HAL_METHOD_INVOKED_BY_UID IS_PRIVILEGED=$? if [ "$IS_PRIVILEGED" != "0" ] ; then echo org.freedesktop.Hal.Device.PermissionDeniedByPolicy >&2 diff --git a/tools/hal-system-power-suspend b/tools/hal-system-power-suspend index d2220e18..03452da0 100755 --- a/tools/hal-system-power-suspend +++ b/tools/hal-system-power-suspend @@ -18,7 +18,7 @@ unsupported() { POLICY=hal-power-suspend if [ "$HAL_METHOD_INVOKED_BY_UID" != "0" ] ; then - polkit-is-privileged --policy $POLICY --uid $HAL_METHOD_INVOKED_BY_UID + polkit-is-privileged --privilege $POLICY --user $HAL_METHOD_INVOKED_BY_UID IS_PRIVILEGED=$? if [ "$IS_PRIVILEGED" != "0" ] ; then echo org.freedesktop.Hal.Device.PermissionDeniedByPolicy >&2 diff --git a/tools/hal-system-storage-eject b/tools/hal-system-storage-eject index 861939fd..97ec10d9 100755 --- a/tools/hal-system-storage-eject +++ b/tools/hal-system-storage-eject @@ -26,7 +26,7 @@ fi # TODO: need to select storage-[fixed|removable][-change-uid] #POLICY=hal-storage-fixed-mount #if [ "$HAL_METHOD_INVOKED_BY_UID" != "0" ] ; then -# polkit-is-privileged --policy $POLICY --uid $HAL_METHOD_INVOKED_BY_UID +# polkit-is-privileged --privilege $POLICY --user $HAL_METHOD_INVOKED_BY_UID # IS_PRIVILEGED=$? # if [ "$IS_PRIVILEGED" != "0" ] ; then # echo org.freedesktop.Hal.Device.PermissionDeniedByPolicy >&2 diff --git a/tools/hal-system-storage-unmount b/tools/hal-system-storage-unmount index bccc16b0..8f9ecc04 100755 --- a/tools/hal-system-storage-unmount +++ b/tools/hal-system-storage-unmount @@ -46,7 +46,7 @@ fi # TODO: need to select storage-[fixed|removable][-change-uid] #POLICY=hal-storage-fixed-mount #if [ "$HAL_METHOD_INVOKED_BY_UID" != "0" ] ; then -# polkit-is-privileged --policy $POLICY --uid $HAL_METHOD_INVOKED_BY_UID +# polkit-is-privileged --privilege $POLICY --user $HAL_METHOD_INVOKED_BY_UID # IS_PRIVILEGED=$? # if [ "$IS_PRIVILEGED" != "0" ] ; then # echo org.freedesktop.Hal.Device.PermissionDeniedByPolicy >&2 |