From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 3 Mar 2007 14:56:34 +0300 From: Sergey Vlasov To: devel@lists.altlinux.org Message-ID: <20070303115634.GB8585@master.mivlgu.local> Mail-Followup-To: devel@lists.altlinux.org References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="5/uDoXvLw7AC5HRs" Content-Disposition: inline In-Reply-To: Subject: Re: [devel] tunctl & udev rules X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.9rc1 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Mar 2007 11:56:35 -0000 Archived-At: List-Archive: List-Post: --5/uDoXvLw7AC5HRs Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Mar 03, 2007 at 01:17:38PM +0200, Nick S. Grechukh wrote: > =D1 =D4=D5=D4 =D3=CF=C2=D2=C1=CC=D3=D1 =C4=C5=CC=C1=D4=D8 =C4=C9=D3=D4=D2= =C9=C2=D5=D4=C9=D7=CE=CF=C5 =D2=C5=DB=C5=CE=C9=C5 =C4=CC=D1 qemu tun/tap > networking, =D0=CF =C8=CF=C4=D5 =CE=C1=D2=C9=D3=CF=D7=C1=CC=D3=D1 control= -=D3=CB=D2=C9=D0=D4 =C4=CC=D1 tunctl. > =CF=C2=CE=C1=D2=D5=D6=C9=CC=CF=D3=D8 =DE=D4=CF: >=20 > [root@gns facilities]# grep -Rw tun /etc/udev/rules.d/ > /etc/udev/rules.d/50-udev-default.rules:KERNEL=3D=3D"tun", > NAME=3D"net/%k", MODE=3D"0600" > /etc/udev/rules.d/90-tun.rules:KERNEL=3D=3D"tun", NAME=3D"net/%k", > GROUP=3D"tun" MODE=3D"0660" =F4=D5=D4, =CB=D3=D4=C1=D4=C9, =C5=D3=D4=D8 =C5=DD=A3 =CF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C5 udev: KERNEL=3D=3D"tun", NAME=3D"net/%k", MODE=3D"0600" =C1 =D7 90-tun.rules =D0=D2=C1=D7=C9=CC=CF, =CB=CF=D4=CF=D2=CF=C5 =C2=D5=C4= =C5=D4 =D5=D3=D4=C1=CE=C1=D7=CC=C9=D7=C1=D4=D8 =D4=CF=CC=D8=CB=CF =D0=D2=C1= =D7=C1: KERNEL=3D=3D"tun", GROUP=3D"root", MODE=3D"0600" (=D7=CF=CF=C2=DD=C5 =D0=D2=C9 =C9=D3=D0=CF=CC=D8=DA=CF=D7=C1=CE=C9=C9 contr= ol =D2=C5=CB=CF=CD=C5=CE=C4=D5=C5=D4=D3=D1 =D3=D4=C1=D7=C9=D4=D8 =D7 =C6=C1= =CA=CC=C1=C8, =D7=C8=CF=C4=D1=DD=C9=C8 =D7 =D0=C1=CB=C5=D4, =CE=C1=C9=C2=CF=CC=C5=C5 =D6= =A3=D3=D4=CB=C9=C5 =D0=D2=C1=D7=C1 - =D0=D2=C9 =D0=C5=D2=D7=CF=CA =D5=D3=D4= =C1=CE=CF=D7=CB=C5 =D0=C1=CB=C5=D4=C1 =CF=CE=C9 =C2=D5=C4=D5=D4 =C9=D3=D0=D2=C1=D7=CC=C5=CE=D9 =D7=D9=DA=CF=D7=CF= =CD %post_control =CE=C1 =D7=C1=D2=C9=C1=CE=D4, =D5=CB=C1=DA=C1=CE=CE=D9=CA= =D7 =CF=D0=C3=C9=C9 -s). > [root@gns facilities]# rpm -qf /etc/udev/rules.d/90-tun.rules > tunctl-20060323-alt0 >=20 > [root@gns facilities]# rpm -q --scripts tunctl > preinstall scriptlet (through /bin/sh): > groupadd -r tun > postuninstall scriptlet (through /bin/sh): > groupdel tun >=20 > (=D4=D5=D4 =D3=D2=C1=DA=D5 =D4=D2=C9 =C2=C1=C7=C9 - BLOCKER: /^groupdel.*= $// ; ENH: s/tun/_tun/ ; > TRIVIAL: s/groupadd/%groupadd/ ;) =E4=C1 =D5=D6... =F7 =D3=CC=D5=DE=C1=C5 kqemu =C7=D2=D5=D0=D0=C1 kqemu =D5=D6=C5 =C2=D9=CC= =C1 =D7=CE=C5=D3=C5=CE=C1 =D7 =D0=C1=CB=C5=D4 setup, =D0=CF=DC=D4=CF=CD=D5 _kqemu =D1 =C4=C5=CC=C1=D4=D8 =CE=C5 =D3=D4=C1=CC. =F7 =C4=C1=CE=CE=CF=CD =D3=CC=D5=DE=C1=C5 =CD=CF=D6=CE=CF =D0=D2=CF=D3=D4= =CF =D3=CF=C2=D2=C1=D4=D8 =CE=CF=D7=D9=CA =D0=C1=CB=C5=D4 tunctl, =D3=CF=C4= =C5=D2=D6=C1=DD=C9=CA %groupadd _tun =D7 %pre, =C9 =D0=D2=CF=C9=C7=CE=CF=D2=C9=D2=CF=D7=C1=D4=D8 = =C4=C5=CA=D3=D4=D7=C9=D1 =D3 =C7=D2=D5=D0=D0=CF=CA tun =D7 =D3=D4=C1=D2=CF=CA =D3=C2=CF=D2=CB=C5 =D0=C1=CB=C5=D4=C1 (=D0=D2=C9 =CF=C2= =CE=CF=D7=CC=C5=CE=C9=C9 =DC=D4=C1 =C7=D2=D5=D0=D0=C1 =D5=C4=C1=CC=C9=D4=D3= =D1). > [root@gns facilities]# modprobe tun >=20 > [root@gns facilities]# ll /dev/net/tun > crw------- 1 root root 10, 200 Mar 2 23:00 /dev/net/tun >=20 > =CB=CF=CE=C5=DE=CE=CF, =DA=C1=CB=CF=CD=C5=CE=D4=C9=D4=D8 =D3=D4=D2=CF=DE= =CB=D5 =D7 50-udev-default.rules =CD=CF=C7y, =CE=CF =DC=D4=CF =CE=C5 > =CE=C1=DB =CD=C5=D4=CF=C4. =CD=CF=D6=CE=CF: >=20 > =C1) =D0=CF=D3=D4=C1=D7=C9=D4=D8 =C7=D2=D5=D0=D0=D5 tun =D7 =C4=C5=C6=CF= =CC=D4 =D3=C1=CD=CF=C7=CF =D5=C4=C5=D7=C1, =C9=DA =D0=C1=CB=C5=D4=C1 =D5=C2= =D2=C1=D4=D8 > =D2=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C=C5=CE =D0=C1=CB=C5=D4 tunctl =C9=CC=C9 =CE=C5=D4. =E4=CF=D3=D4=C1=D4= =CF=DE=CE=CF =D0=D2=CF=D3=D4=CF =D5=C2=D2=C1=D4=D8 =D5=D3=D4=C1=CE=CF=D7=CB=D5 NAME =C9= =DA =D4=CF=C7=CF =D0=D2=C1=D7=C9=CC=C1, =CB=CF=D4=CF=D2=CF=C5 =D3=D4=C1=D7= =C9=D4 =D0=D2=C1=D7=C1. > =D7) =C9=DA=CD=C5=CE=C9=D4=D8 =D7 =D0=C1=CB=C5=D4=C5 =CE=CF=CD=C5=D2 =D0= =D2=C1=D7=C9=CC=C1 =CE=C1 =CD=C5=CE=D8=DB=C5 50. =DC=D4=CF =C7=D2=D1=DA=CE= =CF :) =E9 =C2=D5=C4=C5=D4 =D2=C1=C2=CF=D4=C1=D4=D8 =D4=CF=CC=D8=CB=CF =DA=C1 =D3= =DE=A3=D4 =D0=CF=C2=CF=DE=CE=CF=C7=CF =DC=C6=C6=C5=CB=D4=C1 NAME, =CB=CF=D4= =CF=D2=D9=CA =D7 =C4=C1=CE=CE=CF=CD =D3=CC=D5=DE=C1=C5 =C2=D5=C4=C5=D4 =CF=D4=CB=CC=C0=DE=C1= =D4=D8 =D3=D4=C1=CE=C4=C1=D2=D4=CE=CF=C5 =D0=D2=C1=D7=C9=CC=CF. --5/uDoXvLw7AC5HRs Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFF6WJyW82GfkQfsqIRAiMGAKCE5ee4v77YObKDZ011IMb+KjjVsQCeJeCY /U82s7WO+KSDFwJVxCN7Zf8= =7b5b -----END PGP SIGNATURE----- --5/uDoXvLw7AC5HRs--