From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Frederik Bayart <frederik.bayart@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Xenomai: binding failed: Operation not permitted.
Date: Wed, 25 Apr 2012 12:43:28 +0200 [thread overview]
Message-ID: <4F97D550.7080800@domain.hid> (raw)
In-Reply-To: <CALH4WdZ3zVeXeapCjUc_usPb4AreGjecPXaLjL_SWZzJ_mo0eQ@mail.gmail.com>
On 04/25/2012 12:28 PM, Frederik Bayart wrote:
> Hallo,
>
> We are switching from linux 2.6.30.8 with xenomai 2.4.10 to linux 2.6.38.8
> with xenomai 2.6.0 (stable release) on debian lenny.
>
> In our daemon (with real pid root), we are setting effective pid and gid to
> 1000 and are calling popen to execute a shell command.
> The popen succeeds, but when I try to read the output with fgets, I get the
> error :
>
> Xenomai: binding failed: Operation not permitted.
>
> I verified that the effective user for both commands is the same.
>
> This was working on xenomai 2.4.10
> I added the user with pid 1000 already to the xenomai group but this
> doesn't work.
>
> Does anyone know what the problem could be ?
Quite frankly, the description is a bit vague. For instance, the
"binding failed: operation not permitted" message should happens as a
result of starting a program, or as a result of popen, not when calling
fgets. Anyway, please try and reduce the bug to a simple and minimal
test case which still causes the bug, and post the code here. A piece of
code is worth a thousand words, and this exercise may help you identify
which piece of the puzzle causes the bug.
--
Gilles.
next prev parent reply other threads:[~2012-04-25 10:43 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-25 10:28 [Xenomai-help] Xenomai: binding failed: Operation not permitted Frederik Bayart
2012-04-25 10:43 ` Gilles Chanteperdrix [this message]
[not found] ` <4F97E4AA.8090502@domain.hid>
[not found] ` <CALH4WdbEZL9f=ikyEezZwUwpgKaFPaf=YqbCXzNe97dt0J643w@domain.hid>
2012-04-29 15:56 ` Gilles Chanteperdrix
2012-04-29 15:56 ` Gilles Chanteperdrix
[not found] ` <CALH4WdaTXPmzXnUHiU1jfhKUCiBhyG+X1oA6XSK5fHXds_gLTA@mail.gmail.com>
2012-05-11 15:02 ` Frederik Bayart
2012-05-11 15:21 ` Gilles Chanteperdrix
[not found] <200605181426.8240@domain.hid>
[not found] ` <446C6C1C.2010902@domain.hid>
2006-05-19 7:43 ` Petr Cervenka
2006-05-19 8:12 ` Jan Kiszka
2006-06-06 15:20 ` s.a.
2006-06-06 13:24 ` Jan Kiszka
2006-06-07 9:05 ` s.a.
2006-06-07 9:42 ` Jan Kiszka
2006-06-09 13:28 ` Jan Kiszka
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=4F97D550.7080800@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=frederik.bayart@domain.hid \
--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.