All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Stéphane ANCELOT" <sancelot@free.fr>
To: Philippe Gerum <rpm@xenomai.org>,
	"xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] running as user issue
Date: Wed, 05 Aug 2015 10:02:51 +0200	[thread overview]
Message-ID: <55C1C32B.3040409@free.fr> (raw)
In-Reply-To: <55BBA495.1000102@xenomai.org>

On 31/07/2015 18:38, Philippe Gerum wrote:
> On 07/31/2015 06:09 PM, Stéphane ANCELOT wrote:
>> giving a+rwx access to /dev/shm/xeno:mysession.heap permits to run
>> xenomai_init,
> This does not make sense unless you are trying to bind to an existing
> session with incompatible user privileges.
Do you mean it is not possible to "mix" user privileges. I mean running 
a root process and another one as user ? Because this may be my problem, 
some processes are running root and gui's processes as user . Do I need 
to switch all processes to the same world ...?
>
>> but unfortunately, the heap alloc / binds do not work.
> I'm sorry, I have no clue about what you are trying to do. More details
> would probably help, like how many processes share the same session,
> what are their respective user/privileges, which Xenomai-specific
> command line switches are passed to them?
>
>> Regards,
>> S.Ancelot
>>
>> On 30/07/2015 10:59, Stéphane ANCELOT wrote:
>>> Hi,
>>>
>>> I have problems running as user.
>>>
>>> pshared mode is enabled,
>>> conf tunables are defined (session_label , and mem_pool_size overloaded)
>>> and the program is running as root.
>>>
>>> user's group 1000 has been echoed to
>>> /sys/module/xenomai/parameters/allowed_group
>>>
>>> xenomai_init() reports EACCESS, although ulimit set up to unlimited
>>> memory lock.
>>>
>>>
>>> ulimit -a
>>> core file size          (blocks, -c) 0
>>> data seg size           (kbytes, -d) unlimited
>>> scheduling priority             (-e) 0
>>> file size               (blocks, -f) unlimited
>>> pending signals                 (-i) 15346
>>> max locked memory       (kbytes, -l) unlimited
>>> max memory size         (kbytes, -m) unlimited
>>> open files                      (-n) 65536
>>> pipe size            (512 bytes, -p) 8
>>> POSIX message queues     (bytes, -q) 819200
>>> real-time priority              (-r) 0
>>> stack size              (kbytes, -s) 8192
>>> cpu time               (seconds, -t) unlimited
>>> max user processes              (-u) 15346
>>> virtual memory          (kbytes, -v) unlimited
>>> file locks                      (-x) unlimited
>>>
>>>
>>>   ./print_erreur
>>> conf tunable
>>> mem pool size=5000000
>>>     0"003.362| WARNING: [main] failed to initialize main shared heap
>>>     0"003.439| WARNING: [main] setup call copperplate failed
>>>     0"003.493| BUG in xenomai_init(): [main] initialization failed, EACCES
>>>
>>> Regards,
>>> Steph
>>>
>>>
>>> _______________________________________________
>>> Xenomai mailing list
>>> Xenomai@xenomai.org
>>> http://xenomai.org/mailman/listinfo/xenomai
>>
>> _______________________________________________
>> Xenomai mailing list
>> Xenomai@xenomai.org
>> http://xenomai.org/mailman/listinfo/xenomai
>>
>



  reply	other threads:[~2015-08-05  8:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-30  8:59 [Xenomai] running as user issue Stéphane ANCELOT
2015-07-31 16:09 ` Stéphane ANCELOT
2015-07-31 16:38   ` Philippe Gerum
2015-08-05  8:02     ` Stéphane ANCELOT [this message]
2015-08-27  7:06       ` Stéphane ANCELOT

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=55C1C32B.3040409@free.fr \
    --to=sancelot@free.fr \
    --cc=rpm@xenomai.org \
    --cc=xenomai@xenomai.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 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.