Hi all,

I am using mbuff to have some shared memory between a realtime ISR and a
user space process.  I managed to get a small test program running,
where the init_module() creates some shared memory using mbuff_alloc()
and the user space program gets access to this memory through
mbuff_attach().

This works as expected when I run the user space program as root, but as
a non-root user mbuff_attach() fails with a "open failed: Permission
denied".  I can understand this, since it is kernel memory I'm
accessing.

But is there a way to avoid running the program as root and still get
access to the shared memory?  It would be nice not to have the powers of
root when debugging my application ...

Thanks,

  Jesper
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to