From mboxrd@z Thu Jan 1 00:00:00 1970 References: <55B9E768.6050209@free.fr> <55BB9D9F.5050508@free.fr> From: Philippe Gerum Message-ID: <55BBA495.1000102@xenomai.org> Date: Fri, 31 Jul 2015 18:38:45 +0200 MIME-Version: 1.0 In-Reply-To: <55BB9D9F.5050508@free.fr> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable Subject: Re: [Xenomai] running as user issue List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?UTF-8?Q?St=c3=a9phane_ANCELOT?= , "xenomai@xenomai.org" On 07/31/2015 06:09 PM, St=E9phane 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. > 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 >=20 > On 30/07/2015 10:59, St=E9phane 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=3D5000000 >> 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 >=20 >=20 > _______________________________________________ > Xenomai mailing list > Xenomai@xenomai.org > http://xenomai.org/mailman/listinfo/xenomai >=20 --=20 Philippe.