Commit bd4d9f02 authored by Jakub Jirutka's avatar Jakub Jirutka Committed by Natanael Copa

main/busybox-initscripts: fix tun/tap, change their group to netdev

tun/tap devices are created inside /dev/net by default, so tun[0-9]*
and tap[0-9]* doesn't match them.

When you run qemu as an unprivileged user, that user must have write
permission on the tun device. The group netdev seems to be appropriate
for this and it's already included in the baselayout's groups.
parent 8ea73bd1
......@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=busybox-initscripts
pkgver=3.0
pkgrel=1
pkgrel=2
pkgdesc="Init scripts for busybox daemons"
url="http://git.alpinelinux.org/cgit/aports/tree/core/busybox-initscripts"
arch="noarch"
......@@ -69,7 +69,7 @@ e70b6427fb7b52f49801bcdfb99db3a2 rdate.initd
22adbf155ffc4595206ded6daad07812 rdate.confd
77fb31a75511247bf4e3430565a276bc syslog.confd
0bb55dde32f5e119111fa4938daaef3d watchdog.confd
15cbc09ecbffe6762f261ba1936e37ba mdev.conf
aef3d7530bb9afa4b4a0bf7a2ceb3755 mdev.conf
ad1556961294e4aa2abca6be52138b7c dvbdev
5c8725b4cbdeda23b00f08124a0d20bf ide_links
daf57f3d0372f825ddc05b00973e5afe usbdev
......@@ -94,7 +94,7 @@ f6cd63d6e5f384dcb01a4906c9a0b6c5923794380235dfe0d79b48a686b03c5d klogd.confd
791d49802395861a5f788dc7436c1260ec2cd3bdea0c790952ae1b2dd518e811 rdate.confd
8a2362d6b5b1ec1d754878726392119f2cc7416c748ee4f2ab134f731d6e6198 syslog.confd
77f6f9069afdbb477a7e822aa2c7265d64fd22fdd9338bb3beb0cee901d202ce watchdog.confd
369b0d3f5ef9cfd703d9a00453d5eb27592db0ec21ac2aa83ad687c3f1492206 mdev.conf
d8e97bd8f00c2b7f113ccd52686acdf532d5dd7e58bb9ee4b61fe0e2e2d15109 mdev.conf
ef091bb4c8943a99b9a97b556cdc15ddd20275f5afa8287e201419b08c4e71de dvbdev
3fccc9ee437e3dcc8ac73bfe3713334a7156a112fe442e052fff4f26ff0f6a88 ide_links
dcb0c37590019bccb4c31a5372cbf7728eae6f1174d56bf0708d7504243a5fbb usbdev
......@@ -119,7 +119,7 @@ b0ba67585f39d83320ed6de183d7463a0e163807b9f3dc6f0baa212236056f22aeb2c5399dfdcd54
3d6c4d358e226e0c0462f2003bcf0b6787f91a53f4d6b6db5bfe7748bb0dd392d7cc454058ea8a9b649e8dd2629963a5ad1257c36af04367caeb1923f954daf7 rdate.confd
330c6e6808dfdf05c75dcdec1048f17052f79b285e11513a64a97bf28fb60e023840966abe03a74fa146eb6b842c4e0e78df82918528e0b6e8f546f7f0a4e323 syslog.confd
359af0a4a1841dd6557eaf3e71d39f0d7a2687bad6a8fc6ef436eccf72a40f85c6400a3b7880c7f64d8e460b6af8a0ff3dd5ffc3a4b1aa8eb0d8f7eaf99ee3e4 watchdog.confd
a66ae33a6161fa5887cb423b7ce4923e665b82c71613fa5fe885f7e9e993229d4686f2d6110c85c735ecb627b2a72c56a912c43012def829a156e3f8b68bca71 mdev.conf
02299fc1f920d5f01bbd2e12b4eca3b8fe74a71d9330028249a4fdc76cdbae041dc2b584497bc2e046949c12420f3fa3f04dd8b4d2efaecfe882e406b4a01f6d mdev.conf
ebd82f935da2ca89097234dd8a8f47e179a423652c151123a1f3343f3e1e7bfaba2b8800380e988d4e8f4294545d3a9ab6708ae2e77c5b108b5f091bbce8f94a dvbdev
0142234d0bda86ad1e5f88f1da34669e5fda46a0fd52ce507bd49ce74d2b7c12c323e8db863bccb924e6d632b568db8b243361b217c5b2e1d92a25feb6e62dec ide_links
b2dcf0ded9264334d79fbbb05dd12d649dc3119a060db5893f0e8aeca2141323961c3ba4c822a0ffb00dba848742d5cb374dc77e776b57cecde352a3e8e30f8a usbdev
......
......@@ -96,8 +96,8 @@ dvb.* root:video 0660 */lib/mdev/dvbdev
usb[0-9]+ root:root 0660 */lib/mdev/usbdev
# net devices
tun[0-9]* root:root 0600 =net/
tap[0-9]* root:root 0600 =net/
net/tun[0-9]* root:netdev 0660
net/tap[0-9]* root:netdev 0660
# zaptel devices
zap(.*) root:dialout 0660 =zap/%1
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment