i want to enable some options at Hal, this is my config:
and like work fine at hal
but still not work when mount (not 666 always 700):
mount by:
command "# hald --daemon=no --verbose=yes" response:
x( help me pls. its named "volume.policy.mount_option.-m" @ FreeBSD ?
Code:
$ cat /usr/local/etc/hal/fdi/policy/99-arli-removeable.fdi
<?xml version="1.0" encoding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="volume.fsusage" string="filesystem">
<match key="volume.fstype" string="vfat">
<merge key="volume.policy.mount_option.-m" type="string">666</merge>
<merge key="volume.policy.mount_option.-M" type="string">777</merge>
</match>
</match>
</device>
</deviceinfo>
and like work fine at hal
Code:
$ lshal | grep "mount_option.-"
volume.policy.mount_option.-M = '777' (string)
volume.policy.mount_option.-m = '666' (string)
but still not work when mount (not 666 always 700):
Code:
$ ll /media/disk/
total 160
-rwx------ 1 arli arli 2 8 12 06:06 .windows-serial
drwx------ 1 arli arli 32768 5 9 17:53 Installer
mount by:
Code:
$ gvfs-mount -d /dev/da1s3
command "# hald --daemon=no --verbose=yes" response:
Code:
mount_point = ''
mount_fstype = ''
mount_options = 'longnames -u=1001 '
trying dir /media/disk
given_options[0] = 'longnames'
given_options[1] = '-u=1001'
allowed_options[0] = 'ro'
allowed_options[1] = 'noexec'
allowed_options[2] = 'noatime'
allowed_options[3] = 'longnames'
allowed_options[4] = 'shortnames'
allowed_options[5] = 'nowin95'
allowed_options[6] = '-u='
allowed_options[7] = '-g='
allowed_options[8] = '-m='
allowed_options[9] = '-M='
allowed_options[10] = '-L='
allowed_options[11] = '-D='
allowed_options[12] = 'large'
using action org.freedesktop.hal.storage.mount-removable for uid 1001, system_bus_connection :1.63
passed privilege
08:57:39.423 [I] device.c:1894: Removing locks from ':1.65'
7357: XYA creating /media/.hal-mtab~
7357: XYA closing /media/.hal-mtab~
7357: XYA done renaming /media/.hal-mtab~ to /media/.hal-mtab
7357: XYA released lock on /media/.hal-mtab-lock
pid 7357: rc=0 signaled=0: /usr/local/libexec/hal-storage-mount
08:57:39.956 [I] device.c:1894: Removing locks from ':1.64'
08:57:39.956 [I] hald_dbus.c:4106: No more methods in queue
08:57:39.959 [I] ci-tracker.c:212: Removing CICallerInfo object for :1.63
x( help me pls. its named "volume.policy.mount_option.-m" @ FreeBSD ?