SuperUser permission for the Driver??
shivaprasad javali
jbsp72 at gmail.com
Wed Jun 25 01:27:03 EDT 2008
The problem is that when I launch the application from the activity
taskbar(the activity icons at the bottom of the screen) It will run under
normal user privileges(right??). But for the application to work properly
the USB driver has to run under superuser privileges. So I have to figure
out how to do this while the application as a whole still has normal user
privileges. It all works properly if I go to the terminal su from there and
then launch the application from that terminal.
Thanks
Shivaprasad
On Wed, Jun 25, 2008 at 10:07 AM, shivaprasad javali <jbsp72 at gmail.com>
wrote:
> The USB HID device which works along with my application needs a third
> party driver(libhid). So I have to detach the device from the kernel before
> I starting using my own drivers. So I need superuser permission for that to
> detach the USB device from the kernel. I call hid_force_open() (this is a
> libhid() call which detaches the USB device from the kernel and then start
> using its own driver)
>
> Hope this makes it clear as to what I am trying to do. :)
>
> Thanks
> Shivaprasad
>
>
> On Tue, Jun 24, 2008 at 9:29 PM, Deepak Saxena <dsaxena at laptop.org> wrote:
>
>> On Jun 24 2008, at 17:35, shivaprasad javali was caught saying:
>> > Hi,
>> >
>> > I have USB devices (not storage devices, just some usb devices),
>> which
>> > I can use along with my application on the olpc. The driver for these
>> USB
>> > devices are third paty drivers so I have to detach the kernel usb driver
>> so
>> > that I can use my own driver for that USB device. For this I need to
>> have
>> > super user privileges while running my application.
>> >
>> > I am new to programming on Linux. Could anybody point me as to how
>> I
>> > can give superuser privileges to my driver code.
>>
>> See http://wiki.laptop.org/go/Su
>>
>> I am not completely sure I grok what you need. Are you trying to load
>> a driver via insmod or run some installer for the driver? Note that
>> until two days ago, the USB driver was built into to the kernel, so
>> you can't unload it. What specific device and driver is this?
>>
>> ~Deepak
>>
>> --
>> Deepak Saxena <dsaxena at laptop.org>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.laptop.org/pipermail/devel/attachments/20080625/6128e6a8/attachment.html>
More information about the Devel
mailing list