29 Apr 2012 17:56
Re: Xenomai: binding failed: Operation not permitted.
Gilles Chanteperdrix <gilles.chanteperdrix <at> xenomai.org>
2012-04-29 15:56:31 GMT
2012-04-29 15:56:31 GMT
On 04/25/2012 04:00 PM, Frederik Bayart wrote: > Migration to squeeze is the next step planned. > In attachment a small test program to reproduce the problem and a makefile. > The program is running as root but we want e.g. the command executed > by the popen command running as user 'triphase' > > if you run the program and press CTRL-C, you get Xenomai: binding > failed on 2.6.0 and output (of part of the output) from 'ls' on > 2.4.10. I am afraid you will have to add the triphase user to the xenomai group and pass the xeno_nucleus.xenomai_gid option to the kernel. Or else rewrite the vfork + exec yourself dropping root privileges after the fork. The reason is that the native api assumes that if you fork in a xenomai program, chances are you will want to use the native api in the child program. -- -- Gilles.
RSS Feed