From: "Nick S. Grechukh" <gns@altlinux.ru>
To: devel@lists.altlinux.org
Subject: [devel] tunctl & udev rules
Date: Sat, 3 Mar 2007 13:17:38 +0200
Message-ID: <a4ab440f0703030317t104972b2qd7ee8978fb7974b9@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1264 bytes --]
я тут собрался делать дистрибутивное решение для qemu tun/tap
networking, по ходу нарисовался control-скрипт для tunctl.
обнаружилось что:
[root@gns facilities]# grep -Rw tun /etc/udev/rules.d/
/etc/udev/rules.d/50-udev-default.rules:KERNEL=="tun",
NAME="net/%k", MODE="0600"
/etc/udev/rules.d/90-tun.rules:KERNEL=="tun", NAME="net/%k",
GROUP="tun" MODE="0660"
[root@gns facilities]# rpm -qf /etc/udev/rules.d/90-tun.rules
tunctl-20060323-alt0
[root@gns facilities]# rpm -q --scripts tunctl
preinstall scriptlet (through /bin/sh):
groupadd -r tun
postuninstall scriptlet (through /bin/sh):
groupdel tun
(тут сразу три баги - BLOCKER: /^groupdel.*$// ; ENH: s/tun/_tun/ ;
TRIVIAL: s/groupadd/%groupadd/ ;)
[root@gns facilities]# modprobe tun
[root@gns facilities]# ll /dev/net/tun
crw------- 1 root root 10, 200 Mar 2 23:00 /dev/net/tun
конечно, закоментить строчку в 50-udev-default.rules могy, но это не
наш метод. можно:
а) поставить группу tun в дефолт самого удева, из пакета убрать
рулезы. а кто создаст группу?
б) убрать из udev правило для tun, чтобы работало нужно будет ставить
пакет tunctl. да и так без него tun особо не поюзаешь - qemu
разучился создавать их от пользователя.
в) изменить в пакете номер правила на меньше 50. это грязно :)
[-- Attachment #2: tun.control --]
[-- Type: application/x-shellscript, Size: 1614 bytes --]
next reply other threads:[~2007-03-03 11:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-03 11:17 Nick S. Grechukh [this message]
2007-03-03 11:56 ` Sergey Vlasov
2007-03-04 10:21 ` Nick S. Grechukh
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=a4ab440f0703030317t104972b2qd7ee8978fb7974b9@mail.gmail.com \
--to=gns@altlinux.ru \
--cc=devel@lists.altlinux.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
ALT Linux Team development discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
public-inbox-index devel
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.devel
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git