* [ECOS] synthetic ethernet @ 2008-11-28 15:47 Simon Kallweit 2008-11-28 15:58 ` Sergei Gavrikov 0 siblings, 1 reply; 6+ messages in thread From: Simon Kallweit @ 2008-11-28 15:47 UTC (permalink / raw) To: eCos Disuss Hi Has anyone used the synthetic ethernet driver recently? I'm a bit stuck with the rawether utility, which does not seem to work when invoked as a user. I've seen that the Makefile used to install the eth synth host stuff does try to change the rawether user to root and set the suid flag. But even using suid I still get the same permission error everytime: 0Failed to initialize /dev/net/tun, errno Operation not permitted (1) Running rawether using sudo, it actually seems to work. Now I don't quite see where the difference between the suid and sudo method is?!? But I guess I miss the obvious here ... Any advice? Simon -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ECOS] synthetic ethernet 2008-11-28 15:47 [ECOS] synthetic ethernet Simon Kallweit @ 2008-11-28 15:58 ` Sergei Gavrikov 2008-11-28 16:09 ` Simon Kallweit 0 siblings, 1 reply; 6+ messages in thread From: Sergei Gavrikov @ 2008-11-28 15:58 UTC (permalink / raw) To: Simon Kallweit; +Cc: eCos Disuss Simon Kallweit wrote: > 0Failed to initialize /dev/net/tun, errno Operation not permitted (1) > > Running rawether using sudo, it actually seems to work. Now I don't > quite see where the difference between the suid and sudo method is?!? > But I guess I miss the obvious here ... > > Any advice? Try tunctl. man tunctl. Sergei -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ECOS] synthetic ethernet 2008-11-28 15:58 ` Sergei Gavrikov @ 2008-11-28 16:09 ` Simon Kallweit 2008-11-28 16:18 ` Sergei Gavrikov 0 siblings, 1 reply; 6+ messages in thread From: Simon Kallweit @ 2008-11-28 16:09 UTC (permalink / raw) To: Sergei Gavrikov; +Cc: eCos Disuss Sergei Gavrikov wrote: > Simon Kallweit wrote: > >> 0Failed to initialize /dev/net/tun, errno Operation not permitted (1) >> >> Running rawether using sudo, it actually seems to work. Now I don't >> quite see where the difference between the suid and sudo method is?!? >> But I guess I miss the obvious here ... >> >> Any advice? >> > > Try tunctl. man tunctl. > Thanks, got it working. Might be worth to add a little note in the ecos documentation. Simon -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ECOS] synthetic ethernet 2008-11-28 16:09 ` Simon Kallweit @ 2008-11-28 16:18 ` Sergei Gavrikov 2008-11-30 9:54 ` Simon Kallweit 2008-12-01 15:09 ` Bart Veer 0 siblings, 2 replies; 6+ messages in thread From: Sergei Gavrikov @ 2008-11-28 16:18 UTC (permalink / raw) To: Simon Kallweit; +Cc: eCos Disuss On Fri, Nov 28, 2008 at 04:47:19PM +0100, Simon Kallweit wrote: > Sergei Gavrikov wrote: >> Simon Kallweit wrote: >> >>> 0Failed to initialize /dev/net/tun, errno Operation not permitted (1) >>> >>> Running rawether using sudo, it actually seems to work. Now I don't >>> quite see where the difference between the suid and sudo method is?!? >>> But I guess I miss the obvious here ... >>> >>> Any advice? >>> >> >> Try tunctl. man tunctl. >> > > Thanks, got it working. Might be worth to add a little note in the ecos > documentation. I would prefer to exclude setuid setup at all from install rules. I install tools with prefix --prefix=${HOME}/ecos/tools, and I hate to type sudo make install; sudo chown -R ... Sergei -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ECOS] synthetic ethernet 2008-11-28 16:18 ` Sergei Gavrikov @ 2008-11-30 9:54 ` Simon Kallweit 2008-12-01 15:09 ` Bart Veer 1 sibling, 0 replies; 6+ messages in thread From: Simon Kallweit @ 2008-11-30 9:54 UTC (permalink / raw) To: Sergei Gavrikov; +Cc: eCos Disuss > I would prefer to exclude setuid setup at all from install rules. I > install tools with prefix --prefix=${HOME}/ecos/tools, and I hate to > type sudo make install; sudo chown -R ... > Yeah I guess this can be removed, as the setuid approach obviously does not work (anymore). -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [ECOS] synthetic ethernet 2008-11-28 16:18 ` Sergei Gavrikov 2008-11-30 9:54 ` Simon Kallweit @ 2008-12-01 15:09 ` Bart Veer 1 sibling, 0 replies; 6+ messages in thread From: Bart Veer @ 2008-12-01 15:09 UTC (permalink / raw) To: Sergei Gavrikov; +Cc: simon.kallweit, ecos-discuss >>>>> "Sergei" == Sergei Gavrikov <sergei.gavrikov@gmail.com> writes: Sergei> On Fri, Nov 28, 2008 at 04:47:19PM +0100, Simon Kallweit wrote: >> Sergei Gavrikov wrote: >>> Simon Kallweit wrote: >>> >>>> 0Failed to initialize /dev/net/tun, errno Operationa not >>>> permitted (1) >>>> >>>> Running rawether using sudo, it actually seems to work. Now I >>>> don't quite see where the difference between the suid and >>>> sudo method is?!? But I guess I miss the obvious here ... >>>> >>>> Any advice? >>>> >>> >>> Try tunctl. man tunctl. >>> >> >> Thanks, got it working. Might be worth to add a little note in >> the ecos documentation. Sergei> I would prefer to exclude setuid setup at all from install Sergei> rules. I install tools with prefix Sergei> --prefix=${HOME}/ecos/tools, and I hate to type sudo make Sergei> install; sudo chown -R ... Do please remember that rawether is intended to work with real ethernet devices as well, not just /dev/net/tun. In fact that is a lot easier nowadays than it used to be: just plug in a cheap USB ethernet device and you have an eth1 device for use by the synthetic target. Further, using a real ethernet device makes the synthetic target behave a lot more like a typical embedded target when it comes to things like accessing a dhcp server. AFAIK there is no easy way for rawether to access a real ethernet device unless it is setuid root. Second, I just tried /dev/net/tun on a Fedora 10 installation. There is no tunctl utility, and rawether accessed the tun device without problems. So presumably the problems you were experiencing are specific to certain distributions. If anybody wants to add a paragraph to the docs about using tunctl on particular distributions, feel free. Bart -- Bart Veer eCos Configuration Architect eCosCentric Limited The eCos experts http://www.ecoscentric.com/ Barnwell House, Barnwell Drive, Cambridge, UK. Tel: +44 1223 245571 Registered in England and Wales: Reg No 4422071. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2008-12-01 15:09 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2008-11-28 15:47 [ECOS] synthetic ethernet Simon Kallweit 2008-11-28 15:58 ` Sergei Gavrikov 2008-11-28 16:09 ` Simon Kallweit 2008-11-28 16:18 ` Sergei Gavrikov 2008-11-30 9:54 ` Simon Kallweit 2008-12-01 15:09 ` Bart Veer
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).