[Netkit.users] Sudo vs Su

Giovambattista Ianni ianni at mat.unical.it
Fri Feb 26 12:49:47 CET 2010


Dear all,

I found that current netkit always uses su for invoking the manage_tuntap 
command, no matter of the USE_SUDO variable value: I'm not an expert of sh 
programming, but I found that the culprit was just a '==' instead of '=' in a 
string comparison.

Hope the attached patch helps: sorry if I post this on the list, I'm not sure 
which is the 'official' way of submitting patches/bugs (nor if this is has been 
already solved)

regards, gb

Massimo Rimondini ha scritto:
> Dear Giovambattista,
> 
> this bug report addresses your problem:
> http://bugs.netkit.org/show_bug.cgi?id=10
> 
> Regards,
> Massimo.
> 
> 
> Giovambattista Ianni wrote:
>> Dear all,
>>
>> I found some misbehavior when launching a VM with an alternative terminal, like
>> vstart fw --eth0=A --xterm=gnome
>>
>> What happens is that the started machine cannot activate the eth0 link on the hub A
>> (excerpt from dmesg below)
>> ----
>> Computing a digest to use as ethernet address for device eth0
>> Netdevice 0 (72:e8:99:2b:97:37) : daemon backend (uml_switch version 3) - 
>> unix:/home/ianni/.netkit/hubs/vhub_ianni_A.cnct
>> daemon_open : control connect failed, errno = 2
>> -----
>>
>> I did some tracing and found that the corresponding uml_switch process is 
>> started but dies as soon as the VM kernel is started, for no apparent reason.
>>
>> The problem could have something to deal with start timings but I'm not sure: for
>>
>> vstart fw -v --eth0=A --eth1=B --eth2=C --eth3=D --xterm=gnome
>>
>> I get that, randomly, eth3 and eth2 have their hub survive and get connected 
>> correctly.
>>
>> Is somebody else able to reproduce the same situation?
>> (I'm using gnome-terminal 2.28.1 on a Ubuntu 9.10 as host machine, fresh netkit 
>> 2.7 installation)
>>
>>
>> regards, gb
>> _______________________________________________
>> Netkit.users mailing list
>> Netkit.users a list.dia.uniroma3.it
>> http://list.dia.uniroma3.it/mailman/listinfo/netkit.users
>>
>>   
> _______________________________________________
> Netkit.users mailing list
> Netkit.users a list.dia.uniroma3.it
> http://list.dia.uniroma3.it/mailman/listinfo/netkit.users
> 
-------------- parte successiva --------------
? stato filtrato un testo allegato il cui set di caratteri non era
indicato...
Nome: sudo.patch
Url: http://list.dia.uniroma3.it/pipermail/netkit.users/attachments/20100226/b4cf1fdd/attachment.txt 


More information about the Netkit.users mailing list