wok rev 14081

udisks: add a polkit rule to make disk group use udisks without password, udisks should work now
author ernia <monghitri@aruba.it>
date Fri Feb 22 20:29:00 2013 +0000 (2013-02-22)
parents df1ef8b7ecf0
children 0eb1f12caf8e
files udisks/receipt udisks/stuff/org.freedesktop.udisks2.pkla
line diff
     1.1 --- a/udisks/receipt	Fri Feb 22 17:25:25 2013 +0000
     1.2 +++ b/udisks/receipt	Fri Feb 22 20:29:00 2013 +0000
     1.3 @@ -31,7 +31,8 @@
     1.4  # Rules to gen a SliTaz package suitable for Tazpkg.
     1.5  genpkg_rules()
     1.6  {
     1.7 -	mkdir -p $fs/etc $fs/usr/lib $fs/usr/share
     1.8 +	mkdir -p $fs/etc/polkit-1/localauthority/90-mandatory.d \
     1.9 +		$fs/usr/lib $fs/usr/share
    1.10  	cp -a $install/etc/dbus-1 $fs/etc
    1.11  	cp -a $install/lib/udev $fs/etc
    1.12  	cp -a $install/usr/bin $fs/usr
    1.13 @@ -40,4 +41,9 @@
    1.14  	cp -a $install/usr/lib/*.so* $fs/usr/lib
    1.15  	cp -a $install/usr/share/*-1 $fs/usr/share
    1.16  	cp -a $install/var $fs
    1.17 +	#we don't have consolekit and don't want systemd so we need
    1.18 +	#a rule to give disk group complete access to udisks2
    1.19 +	#methods without password.
    1.20 +	cp $stuff/org.freedesktop.udisks2.pkla \
    1.21 +		$fs/etc/polkit-1/localauthority/90-mandatory.d
    1.22  }
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/udisks/stuff/org.freedesktop.udisks2.pkla	Fri Feb 22 20:29:00 2013 +0000
     2.3 @@ -0,0 +1,4 @@
     2.4 +[No password required for disk group]
     2.5 +Identity=unix-group:disk
     2.6 +Action=org.freedesktop.udisks2.*
     2.7 +ResultAny=yes