|
From: Olivier T. <nan...@na...> - 2013-08-20 07:55:40
|
Hello,
I am trying to setup a firewall under Devil Linux 1.6.3.
When I try to run vconfig I get: "no such file or directory". An strace
mention the error occur once the command is call. I saw this kind of
behavior before when applications were linked against obsolete glibc.
Notice seting up vlan interface work from initscript.
Regards.
==== Strace output: ====
root@Devil:~ # strace vconfig
execve("/bin/vconfig", ["vconfig"], [/* 17 vars */]) = -1 ENOENT (No
such file or directory)
dup(2) = 3
fcntl(3, F_GETFL) = 0x8002 (flags
O_RDWR|O_LARGEFILE)
fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x7f630d176000
lseek(3, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: No such file or di"..., 40strace: exec: No such
file or directory
) = 40
close(3) = 0
munmap(0x7f630d176000, 4096) = 0
exit_group(1) = ?
--
Olivier Thauvin
CNRS - LATMOS
♖ ♘ ♗ ♕ ♔ ♗ ♘ ♖
|
|
From: Philippe W. <phi...@la...> - 2013-08-21 05:30:26
|
Le 20/08/2013 09:37, Olivier Thauvin a écrit : > Hello, > > I am trying to setup a firewall under Devil Linux 1.6.3. > > When I try to run vconfig I get: "no such file or directory". An strace > mention the error occur once the command is call. I saw this kind of > behavior before when applications were linked against obsolete glibc. > > Notice seting up vlan interface work from initscript. on another version the problem seem the same vconfig is 32bit with old libc on 64bit devil root@XXXXXXX:~ # cat /etc/Devil-release Devil-Linux 1.6.4-2013-01-21-x86_64 root@XXXXXXX:~ # uname -a Linux el-diablo2.private.ipsl.fr 3.2.35-grsec #1 SMP Mon Jan 21 04:47:47 EST 2013 x86_64 GNU/Linux root@XXXXXXX:~ # file /bin/ls /bin/ls: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.0, stripped root@XXXXXXX:~ # file /bin/vconfig /bin/vconfig: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, stripped > > Regards. > > ==== Strace output: ==== > > root@Devil:~ # strace vconfig > execve("/bin/vconfig", ["vconfig"], [/* 17 vars */]) = -1 ENOENT (No > such file or directory) > dup(2) = 3 > fcntl(3, F_GETFL) = 0x8002 (flags > O_RDWR|O_LARGEFILE) > fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0 > mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) > = 0x7f630d176000 > lseek(3, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek) > write(3, "strace: exec: No such file or di"..., 40strace: exec: No such > file or directory > ) = 40 > close(3) = 0 > munmap(0x7f630d176000, 4096) = 0 > exit_group(1) = ? > > > > > ------------------------------------------------------------------------------ > Introducing Performance Central, a new site from SourceForge and > AppDynamics. Performance Central is your source for news, insights, > analysis and resources for efficient Application Performance Management. > Visit us today! > http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk > > > > _______________________________________________ > Devil-linux-develop mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/devil-linux-develop > -- Weill Philippe - Administrateur Systeme et Reseaux CNRS/UPMC/IPSL LATMOS (UMR 8190) Tour 45/46 3e Etage B302 - 4 Place Jussieu - 75252 Paris Cedex 05 - FRANCE Email:phi...@la... | tel:+33 0144274759 Fax:+33 0144273776 |
|
From: Serge L. <ser...@gm...> - 2013-08-21 06:02:55
Attachments:
network
|
well, to avoid the image rebuilding, please try to replace the appropriate
sections in /etc/init.d/network
vlan creation:
------------------------------------------------
# vlan-id needs to be a number. id's 0 and 4095 are reserved
if test -n "$VLANID" -a "$VLANID" -gt 0 -a "$VLANID" -lt 4095 2>/dev/null; then
echo -n "Setting vlan #$VLANID on physical interface $DEVICE"
PHYDEV=$DEVICE
DEVICE=$(get_vlan_name "$PHYDEV" "$VLANID")
ip link add link $PHYDEV name $DEVICE type vlan id $VLANID
evaluate_retval
fi
------------------------------------------------
vlan removal
------------------------------------------------
# vlan-id's 0 and 4095 are reserved
if test -n "$VLANID" -a "$VLANID" -gt 0 -a "$VLANID" -lt 4095 2>/dev/null; then
echo -n "Removing vlan #$VLANID from physical interface $PHYDEV"
ip link del $DEVICE type vlan id $VLANID
evaluate_retval
fi
------------------------------------------------
The whole script is in the attachment.
works for me (c)
Sincerely,
Serge
On 08/20/2013 10:14 PM, Philippe Weill wrote:
> Le 20/08/2013 09:37, Olivier Thauvin a écrit :
>> Hello,
>>
>> I am trying to setup a firewall under Devil Linux 1.6.3.
>>
>> When I try to run vconfig I get: "no such file or directory". An strace
>> mention the error occur once the command is call. I saw this kind of
>> behavior before when applications were linked against obsolete glibc.
>>
>> Notice seting up vlan interface work from initscript.
>
>
> on another version the problem seem the same
> vconfig is 32bit with old libc on 64bit devil
>
>
> root@XXXXXXX:~ # cat /etc/Devil-release
> Devil-Linux 1.6.4-2013-01-21-x86_64
> root@XXXXXXX:~ # uname -a
> Linux el-diablo2.private.ipsl.fr 3.2.35-grsec #1 SMP Mon Jan 21 04:47:47 EST 2013 x86_64 GNU/Linux
> root@XXXXXXX:~ # file /bin/ls
> /bin/ls: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked (uses shared
> libs), for GNU/Linux 2.6.0, stripped
> root@XXXXXXX:~ # file /bin/vconfig
> /bin/vconfig: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses
> shared libs), for GNU/Linux 2.2.5, stripped
>
>
>
>
>
>>
>> Regards.
>>
>> ==== Strace output: ====
>>
>> root@Devil:~ # strace vconfig
>> execve("/bin/vconfig", ["vconfig"], [/* 17 vars */]) = -1 ENOENT (No
>> such file or directory)
>> dup(2) = 3
>> fcntl(3, F_GETFL) = 0x8002 (flags
>> O_RDWR|O_LARGEFILE)
>> fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
>> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
>> = 0x7f630d176000
>> lseek(3, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
>> write(3, "strace: exec: No such file or di"..., 40strace: exec: No such
>> file or directory
>> ) = 40
>> close(3) = 0
>> munmap(0x7f630d176000, 4096) = 0
>> exit_group(1) = ?
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Introducing Performance Central, a new site from SourceForge and
>> AppDynamics. Performance Central is your source for news, insights,
>> analysis and resources for efficient Application Performance Management.
>> Visit us today!
>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
>>
>>
>>
>> _______________________________________________
>> Devil-linux-develop mailing list
>> Dev...@li...
>> https://lists.sourceforge.net/lists/listinfo/devil-linux-develop
>>
>
>
|
|
From: Heiko Z. <he...@zu...> - 2013-08-31 15:04:09
|
Hey,
Should we replace this in the distribution?
Best Regards
Heiko Zuerker
-----Original Message-----
From: Serge Leschinsky [mailto:ser...@gm...]
Sent: Wednesday, August 21, 2013 1:03 AM
To: dev...@li...
Subject: Re: [Devil-linux-develop] Devil 1.6.3: vconfig not working
well, to avoid the image rebuilding, please try to replace the appropriate sections in /etc/init.d/network
vlan creation:
------------------------------------------------
# vlan-id needs to be a number. id's 0 and 4095 are reserved if test -n "$VLANID" -a "$VLANID" -gt 0 -a "$VLANID" -lt 4095 2>/dev/null; then
echo -n "Setting vlan #$VLANID on physical interface $DEVICE"
PHYDEV=$DEVICE
DEVICE=$(get_vlan_name "$PHYDEV" "$VLANID")
ip link add link $PHYDEV name $DEVICE type vlan id $VLANID
evaluate_retval
fi
------------------------------------------------
vlan removal
------------------------------------------------
# vlan-id's 0 and 4095 are reserved
if test -n "$VLANID" -a "$VLANID" -gt 0 -a "$VLANID" -lt 4095 2>/dev/null; then
echo -n "Removing vlan #$VLANID from physical interface $PHYDEV"
ip link del $DEVICE type vlan id $VLANID
evaluate_retval
fi
------------------------------------------------
The whole script is in the attachment.
works for me (c)
Sincerely,
Serge
On 08/20/2013 10:14 PM, Philippe Weill wrote:
> Le 20/08/2013 09:37, Olivier Thauvin a écrit :
>> Hello,
>>
>> I am trying to setup a firewall under Devil Linux 1.6.3.
>>
>> When I try to run vconfig I get: "no such file or directory". An
>> strace mention the error occur once the command is call. I saw this
>> kind of behavior before when applications were linked against obsolete glibc.
>>
>> Notice seting up vlan interface work from initscript.
>
>
> on another version the problem seem the same vconfig is 32bit with old
> libc on 64bit devil
>
>
> root@XXXXXXX:~ # cat /etc/Devil-release Devil-Linux
> 1.6.4-2013-01-21-x86_64 root@XXXXXXX:~ # uname -a Linux
> el-diablo2.private.ipsl.fr 3.2.35-grsec #1 SMP Mon Jan 21 04:47:47 EST
> 2013 x86_64 GNU/Linux root@XXXXXXX:~ # file /bin/ls
> /bin/ls: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV),
> dynamically linked (uses shared libs), for GNU/Linux 2.6.0, stripped
> root@XXXXXXX:~ # file /bin/vconfig
> /bin/vconfig: ELF 32-bit LSB executable, Intel 80386, version 1
> (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5,
> stripped
>
>
>
>
>
>>
>> Regards.
>>
>> ==== Strace output: ====
>>
>> root@Devil:~ # strace vconfig
>> execve("/bin/vconfig", ["vconfig"], [/* 17 vars */]) = -1 ENOENT (No
>> such file or directory)
>> dup(2) = 3
>> fcntl(3, F_GETFL) = 0x8002 (flags
>> O_RDWR|O_LARGEFILE)
>> fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
>> mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
>> 0) = 0x7f630d176000
>> lseek(3, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek)
>> write(3, "strace: exec: No such file or di"..., 40strace: exec: No
>> such file or directory
>> ) = 40
>> close(3) = 0
>> munmap(0x7f630d176000, 4096) = 0
>> exit_group(1) = ?
>>
>>
>>
>>
>> ---------------------------------------------------------------------
>> --------- Introducing Performance Central, a new site from
>> SourceForge and AppDynamics. Performance Central is your source for
>> news, insights, analysis and resources for efficient Application
>> Performance Management.
>> Visit us today!
>> http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.
>> clktrk
>>
>>
>>
>> _______________________________________________
>> Devil-linux-develop mailing list
>> Dev...@li...
>> https://lists.sourceforge.net/lists/listinfo/devil-linux-develop
>>
>
>
|
|
From: Arnaud Gomes-do-V. <Arn...@ir...> - 2013-08-21 09:32:34
|
Philippe Weill <phi...@la...> writes: > on another version the problem seem the same > vconfig is 32bit with old libc on 64bit devil I sent a patch for this issue a few weeks/months ago, AFAIR it is now in CVS. -- A |
|
From: Olivier T. <nan...@na...> - 2013-08-21 10:33:16
|
* Serge Leschinsky (ser...@gm...) wrote:
>
> well, to avoid the image rebuilding, please try to replace the
> appropriate sections in /etc/init.d/network
[...]
>
> works for me (c)
In my case (1.6.3 x86_64) seting up vlan interface with initscript
works, it's just I cannot setup vlan interface using vconfig by hand:
root@Devil:~ # cat /etc/sysconfig/nic/ifcfg-vlan650
# the base interface (see ifcfg-eth1.sample for configuration)
DEVICE=bond0
ONBOOT=yes
DHCP=no
#DHCP=yes
#DHCP=server
### note: 0 < vlanid < 4095
VLANID=650
[...]
root@Devil:~ # ifconfig |grep vlan
vlan650 Link encap:Ethernet HWaddr f0:1f:af:ce:24:7c
The initscript seems to be already patched:
root@Devil:~ # grep "ip.*vlan" /etc/init.d/network
ip link add link $PHYDEV name $DEVICE type vlan id $VLANID
ip link del $DEVICE type vlan id $VLANID
Just think to fix vconfig binary for next release :)
Thanks for the quick answer.
Regards.
--
Olivier Thauvin
CNRS - LATMOS
♖ ♘ ♗ ♕ ♔ ♗ ♘ ♖
|
|
From: Serge L. <ser...@gm...> - 2013-08-21 17:35:31
|
On 08/21/2013 03:32 AM, Olivier Thauvin wrote: > * Serge Leschinsky (ser...@gm...) wrote: >> >> well, to avoid the image rebuilding, please try to replace the >> appropriate sections in /etc/init.d/network > > [...] > >> >> works for me (c) > > In my case (1.6.3 x86_64) seting up vlan interface with initscript > works, it's just I cannot setup vlan interface using vconfig by hand: Don't use "vconfig", use "ip" :) Seriously, I think that all network configuration should be done using "ip" and the only thing we need to achieve that is replace bridge handling commands. Well, "brctl" is used by other services (like qemu), so we probably have to keep it in the system, but I doubt we need vconfig. > http://www.candelatech.com/~greear/vlan.html > > 802.1Q VLANs and MAC-VLANs can be created with the 'ip' utility (vconfig > works for vlans, but is crufty and deprecated). > > Just think to fix vconfig binary for next release :) > Well, it's one approach ... Another one is to remove it from the system ;) and I personally have inclination to the latter. Sincerely, Serge |