string options in *.policy.mount_option
Juergen Orschiedt
jorschiedt at web.de
Tue Aug 30 04:32:13 PDT 2005
A month ago, rider at altlinux.com sent a patch against libhal-storage.c
which would allow the usage of string options in mount_options.
I added a missing "else", because it generated empty fields when a
boolen value was reset by the policy.
So now you can create mount_options like
<deviceinfo version="0.2">
<device>
<match key="volume.policy.should_mount" bool="true">
<merge key="volume.policy.mount_option.pamconsole"
type="bool">false</merge>
<merge key="volume.policy.mount_option.gid"
type="string">users</merge>
<merge key="volume.policy.mount_option.noauto"
type="bool">false</merge>
<merge key="volume.policy.mount_option.umask"
type="string">0002</merge>
</match>
</device>
</deviceinfo>
Attached you'll find the patch against hal-0.5.4cvs
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hal-allow-string-in-mount_options.diff
Type: text/x-patch
Size: 2660 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/hal/attachments/20050830/49befc07/hal-allow-string-in-mount_options.bin
More information about the hal
mailing list