[OpenIndiana-discuss] JDS: USB automount problem

Predrag Zecevic [Unix Systems Administrator] predrag.zecevic at 2e-systems.com
Tue Dec 24 12:03:17 UTC 2013


Hi All, Jim...

not sure if this HAL trick had helped  at all, as at the end solution 
was adoption from very OLD OS bug (from version snv_123)...

It happen that only simple modification in file 
/etc/hal/fdi/preprobe/10osvendor/20-ignore-fixed-storage.fdi did it:

changed line:
<merge key="info.ignore" type="bool">true</merge>
to
<merge key="info.ignore" type="bool">false</merge>

and hal service restarted:

$ pfexec svcadm restart hal

After that, my USB was mounted properly from GNOME FileManager

Regards.

Happy Holidays to all,

On 11/29/13 04:14 PM, Jim Klimov wrote:
> See below
>
> On 2013-11-29 15:46, Predrag Zecevic [Unix Systems Administrator] wrote:
>> Hi,
>>
>> I cannot mount USB devices anymore in my /hipster installation (I mean
>> automatically mount withing JDS/GNOME).
>  > ...
>> Nov 29 15:04:00 solarix genunix: [ID 864859 kern.notice] NOTICE:
>> hald-addon-stora[2482]: missing privilege "sys_mount" (euid = 0, syscall
>> = 255) needed at secpolicy_fs_owner+0x2e
>>
>> It looks like hald-addon-storage has some privilege problems, so I have
>> added it (Profile is called 'Solarix' and I am trying to get collected
>> there all missing privileges - plenty of them). But for now, I would
>> like to focus on this one:
>> /etc/security/exec_attr:Solarix:solaris:cmd:::/usr/lib/hal/hald-addon-storage:privs=sys_mount
>>
>>
>>
>> What else I have to check/change 0 what I am missing?
>
> How do you then reference the "Solarix" profile?
>
> I'd say that you need to look into the "hal" service definition:
> root at openindiana:~# ps -ef | grep hal
>      root   359   297   0   Nov 27 ?           0:12
> /usr/lib/hal/hald-addon-acpi
>      root   397   297   0   Nov 27 ?           0:00
> /usr/lib/hal/hald-addon-storage
>      root   297   290   0   Nov 27 ?           0:00 hald-runner
>      root   344   297   0   Nov 27 ?           0:00
> /usr/lib/hal/hald-addon-network-discovery
>      root   346   297   0   Nov 27 ?           0:00
> /usr/lib/hal/hald-addon-cpufreq
>      root   290     1   0   Nov 27 ?           0:08 /usr/lib/hal/hald
> --daemon=yes
>
> root at openindiana:~# svcs -p hal
> STATE          STIME    FMRI
> online         Nov_27   svc:/system/hal:default
>                 Nov_27        290 hald
>                 Nov_27        297 hald-runner
>                 Nov_27        344 hald-addon-netw
>                 Nov_27        346 hald-addon-cpuf
>                 Nov_27        359 hald-addon-acpi
>                 Nov_27        397 hald-addon-stor
>
> Here we see that hald-addon-storage is spawned by hald-runner by hald,
> and they all are part of the "hal" SMF service. You might need to add
> the privileges involved to the startup method as part of its context,
> i.e.
>
> svccfg -s hal setprop start/privileges = astring: basic,sys_mount
> svcadm refresh hal
> svcadm restart hal
>
> Would this help?
> HTH,
> //Jim
>
> _______________________________________________
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss at openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>

-- 
Predrag Zečević, Technical Support Analyst, 2e Systems GmbH

Telephone: +49 6196 9505 815, Facsimile: +49 6196 9505 894
Mobile:    +49  174 3109 288,     Skype: predrag.zecevic
E-mail:    predrag.zecevic at 2e-systems.com

Headquarter:          2e Systems GmbH, Königsteiner Str. 87,
                       65812 Bad Soden am Taunus, Germany
Company registration: Amtsgericht Königstein (Germany), HRB 7303
Managing director:    Phil Douglas

http://www.2e-systems.com/ - Making your business fly!

[***]===---
There are three rules for writing a novel. Unfortunately, no one knows 
what they are. -- Somerset Maugham



More information about the OpenIndiana-discuss mailing list