From: Philippe Gerum <rpm@xenomai.org>
To: Emmanuel Pacaud <emmanuel.pacaud@lapp.in2p3.fr>
Cc: xenomai <xenomai@lists.linux.dev>
Subject: Re: xenomai4 - running applications as regular user
Date: Fri, 22 Aug 2025 22:52:51 +0200 [thread overview]
Message-ID: <87qzx3f598.fsf@xenomai.org> (raw)
In-Reply-To: <f71b0364180199360785ffba2b8e08963ea53775.camel@lapp.in2p3.fr> (Emmanuel Pacaud's message of "Fri, 22 Aug 2025 16:29:30 +0200")
Emmanuel Pacaud <emmanuel.pacaud@lapp.in2p3.fr> writes:
> [1. text/markdown]
> Le vendredi 22 août 2025 à 09:13 +0200, Philippe Gerum a écrit :
>>
>> > What is the recommended way to run out of band applications as regular user using xenomai4 ?
>> >
>> > In xenomai3 documentation, there is a dedicated page about this, <[https://v3.xenomai.org/tips/regular-user/](https://v3.xenomai.org/tips/regular-user/)>, but I did not find similar instructions in xenomai4 version.
>> >
>> > Emmanuel.
>>
>>
>> See [https://v4.xenomai.org/core/user-api/#device-ownership-and-access](https://v4.xenomai.org/core/user-api/#device-ownership-and-access)
>
> Thanks.
>
> I have created a xenomai group, added myself to the group, changed the ownership to `root:xenomai` of everything in `/dev/evl`, `/dev/evl` included, but still get `Permission denied`. I have checked my groups using id, xenomai is listed.
>
> ```
> $ ls -la /dev/evl
> total 0
> drwxrwx--x 8 root xenomai 220 Aug 21 14:53 .
> drwxr-xr-x 20 root root 3260 Aug 22 15:53 ..
> drwxrwx--x 2 root xenomai 80 Aug 21 14:53 clock
> crw-rw---- 1 root xenomai 245, 0 Aug 21 14:54 control
> drwxrwx--x 2 root xenomai 60 Aug 21 17:08 monitor
> drwxrwx--x 2 root xenomai 60 Aug 21 14:53 observable
> crw-rw---- 1 root xenomai 245, 3 Aug 21 14:54 poll
> drwxrwx--x 2 root xenomai 60 Aug 21 14:53 proxy
> crw-rw---- 1 root xenomai 245, 7 Aug 21 14:54 random
> drwxrwx--x 2 root xenomai 60 Aug 22 16:02 thread
> drwxrwx--x 2 root xenomai 60 Aug 21 14:53 xbuf
> $ id -Gn
> virgo wheel dialout ftp xenomai calcul softs_cc diaporama
> ```
>
> It works though if I change the ownership of the `/dev/evl` tree to `pacaud:xenomai`. What would be the reason of this behaviour ?
>
In addition to making those files owned by the 'xenomai' group, you need
an udev rule fixing up the */clone files in each element directory
(clock, monitor etc.) giving rw permission to the group members too
(i.e. 0660).
--
Philippe.
prev parent reply other threads:[~2025-08-22 20:52 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-21 14:56 xenomai4 - running applications as regular user Emmanuel Pacaud
2025-08-22 7:13 ` Philippe Gerum
2025-08-22 14:29 ` Emmanuel Pacaud
2025-08-22 20:52 ` Philippe Gerum [this message]
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=87qzx3f598.fsf@xenomai.org \
--to=rpm@xenomai.org \
--cc=emmanuel.pacaud@lapp.in2p3.fr \
--cc=xenomai@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.