From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4FAD2E6F.1070501@domain.hid> Date: Fri, 11 May 2012 17:21:19 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <4F9D64C1.8070505@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 05/11/2012 05:02 PM, Frederik Bayart wrote: > now with mailing list in cc > > Hallo Gilles, > > by adding my user to group xenomai and configuring the > xeno_nucleus.xenomai_gid parameter on the command line, I was able to > run my binary as non-root, so my problem is solved. > > However, I noticed that if I start my binary as root, and using > seteuid and setegid to non-root as in de example still fails. I don't > know whether this is normal or a bug. It is normal. For your case to run, the fork itself must be run a root. So, you should call again seteuid/setegid before vfork, then drop again the rights before exec (if you do not want the exec to be run as root). -- Gilles.