From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4F9D64AF.20906@domain.hid> Date: Sun, 29 Apr 2012 17:56:31 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <4F97E4AA.8090502@domain.hid> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] Xenomai: binding failed: Operation not permitted. List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Frederik Bayart Cc: xenomai@xenomai.org 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.