linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Didier Kryn <kryn@in2p3.fr>
To: jdweyer@rockwellcollins.com
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: /dev/vme Permissions for users other than root...
Date: Wed, 23 Jan 2002 09:32:52 +0100	[thread overview]
Message-ID: <3C4E7534.3C5827BF@in2p3.fr> (raw)
In-Reply-To: OFEA27A9BB.3CE5E820-ON86256B49.007E0567@collins.rockwell.com


	Hi JoAnna.

	I'm just a user of the driver of Gabriel and I need to use
it in normal user applications. Givint public r/w permission to /dev/vme
is not enough, since the driver will not accept to change the
attribute if you are not root. I have found the following
workaround, which works well:

	Consider that the path is shared between the user process and
any of its childs that inherits it. If a child has the root priviledge,
it can change the attributes and this change reflects to its parent.

	Then you just need to write a program which takes the attributes
in argument, belongs to root and has the uid bit set, which sets the
attributes and exits. You write a function to call it easily from
user applications and it is done.

	One question I did not address up to now is the following:
Do the attributes apply only to processes inheriting the same path or to
all the processes using simultaneously /dev/vme ?

	Greetings.	Didier

jdweyer@rockwellcollins.com wrote:
>
> We are using Linux version 2.2.12 with Gabriel Paubert's patches for the
> Motorola MVME2600 platform.   I have
> my application working opening /dev/vme and then doing ioctl calls to set
> the attributes.  It works
> fine only when I am root.  When another user tries to run the application,
> the ioctl (not the open) fails.
> I have changed the permissions of /dev/vme to rw for all (ugo) and have
> even gone as far as
> changing ownership and group to the user's instead of root, but to no
> avail.  The permissions
> of /dev/vme are crwxrwxrwx.  I realize the execute (x) permission is
> ineffective, but I'm trying everything.
>
> Do you have any ideas of what to try?

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  reply	other threads:[~2002-01-23  8:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-22 22:57 /dev/vme Permissions for users other than root jdweyer
2002-01-23  8:32 ` Didier Kryn [this message]
2002-01-23 18:43 ` Wolfgang Grandegger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3C4E7534.3C5827BF@in2p3.fr \
    --to=kryn@in2p3.fr \
    --cc=jdweyer@rockwellcollins.com \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).