Commit eceb06a4 authored by Ralph Ronnquist's avatar Ralph Ronnquist

Removed generated dir.

parent 9b0ce468
/etc/init.d/vdev
/etc/insserv/overrides/vdev
/etc/vdev/acls/00-whitelist-root.acl
/etc/vdev/actions/001-sysfs-block.act
/etc/vdev/actions/001-sysfs-char.act
/etc/vdev/actions/002-modalias.act
/etc/vdev/actions/003-firmware.act
/etc/vdev/actions/agpgart.act
/etc/vdev/actions/block.act
/etc/vdev/actions/btrfs-control.act
/etc/vdev/actions/char.act
/etc/vdev/actions/cpu-msr.act
/etc/vdev/actions/cpu.act
/etc/vdev/actions/cuse.act
/etc/vdev/actions/device-mapper.act
/etc/vdev/actions/dialout.act
/etc/vdev/actions/disk-part.act
/etc/vdev/actions/disk.act
/etc/vdev/actions/dm-disk.act
/etc/vdev/actions/dri.act
/etc/vdev/actions/dvb.act
/etc/vdev/actions/err.act
/etc/vdev/actions/fb.act
/etc/vdev/actions/full.act
/etc/vdev/actions/fuse-mounts.act
/etc/vdev/actions/fuse.act
/etc/vdev/actions/hwdb.act
/etc/vdev/actions/ifname.act
/etc/vdev/actions/input.act
/etc/vdev/actions/irlpt.act
/etc/vdev/actions/kmsg.act
/etc/vdev/actions/kvm.act
/etc/vdev/actions/legousbtower.act
/etc/vdev/actions/lircN.act
/etc/vdev/actions/loop-control.act
/etc/vdev/actions/loop.act
/etc/vdev/actions/lp.act
/etc/vdev/actions/mISDNtimer.act
/etc/vdev/actions/mem.act
/etc/vdev/actions/mmtimer.act
/etc/vdev/actions/mwave.act
/etc/vdev/actions/net-tun.act
/etc/vdev/actions/netdev.act
/etc/vdev/actions/null.act
/etc/vdev/actions/nvram.act
/etc/vdev/actions/optical.act
/etc/vdev/actions/parport.act
/etc/vdev/actions/pktcdvd.act
/etc/vdev/actions/pktcdvdN.act
/etc/vdev/actions/port.act
/etc/vdev/actions/power-switch.act
/etc/vdev/actions/printer.act
/etc/vdev/actions/ptmx.act
/etc/vdev/actions/qftN.act
/etc/vdev/actions/random.act
/etc/vdev/actions/raw.act
/etc/vdev/actions/rawctl.act
/etc/vdev/actions/rfkill.act
/etc/vdev/actions/rtc.act
/etc/vdev/actions/sch.act
/etc/vdev/actions/sclp_line.act
/etc/vdev/actions/sgi.act
/etc/vdev/actions/sonypi.act
/etc/vdev/actions/sound-alsa-control.act
/etc/vdev/actions/sound-audio.act
/etc/vdev/actions/tty.act
/etc/vdev/actions/tty3270.act
/etc/vdev/actions/ttyN.act
/etc/vdev/actions/ttyS.act
/etc/vdev/actions/ttysclp.act
/etc/vdev/actions/usb-bus.act
/etc/vdev/actions/v4l.act
/etc/vdev/actions/vcs.act
/etc/vdev/actions/virtio.act
/etc/vdev/actions/virtualbox-usb.act
/etc/vdev/actions/virtualbox-usb_device.act
/etc/vdev/actions/z90crypt.act
/etc/vdev/actions/zaa-compiled.act
/etc/vdev/actions/zzz-event-push.act
/etc/vdev/actions/zzz-udev-compat.act
/etc/vdev/ifnames.conf
/etc/vdev/vdevd.conf
Package: vdev
Version: 1.0
Architecture: amd64
Maintainer: Ralph Ronnquist <ralph.ronnquist@gmail.com>
Installed-Size: 5025
Depends: libc6 (>= 2.14)
Section: unknown
Priority: optional
Homepage: <insert the upstream URL, if relevant>
Description: A device-file manager and filesystem
Vdev is a portable userspace device-file manager for UNIX-like
operating systems. It differs from existing device-file managers in
that it provides an optional filesystem interface that implements a
per-process view of /dev, thereby giving the host administrator the
means to control device node access based on arbitrary criteria (such
as process session ID, process seat assignment, etc.).
8bdb65d6d0a2660372e747e15d1418dd lib/vdev/VBoxCreateUSBNode.sh
1d86ca65e85845aacba009faf36d64f3 lib/vdev/block.sh
49725c301c2ed11e720542069423d12a lib/vdev/char.sh
2521e5cbb552f10f01d6b3516d7c9fdc lib/vdev/compiled.sh
2ad60ee41dccd15bac59ababbf06425a lib/vdev/daemonlet
9b30b7a300856839c43df039a5e4f4f7 lib/vdev/dev-setup.sh
15ae6dabc40fd3b0854a4e6a99a8a5f1 lib/vdev/disk.sh
83b271da36c24d1ce1a2efa49ce8198a lib/vdev/dm-disk.sh
f98fa89d0e8ad3e7d4b2e7a81d95ba38 lib/vdev/echo_n
360c368da99ecbcd2df438ee712dadfa lib/vdev/event-push.sh
6237fa57779e00e33787b0a36c27c760 lib/vdev/event-put
0f085f8ae8506598bf74567b827cb1ae lib/vdev/firmware.sh
4c19cd41d2a42f85dc51dd35c98fa70c lib/vdev/gen-ifnames.sh
3c4c0e8d6a5455b36fe3281ddbc179d4 lib/vdev/hwdb-props.sh
6f0684a035e95f2c2d3583241da1563c lib/vdev/hwdb.sh
b32ef32ca13e39dfd61850dc89b336bc lib/vdev/hwdb/hwdb.squashfs
73010de5d16477549e6eb39f80deb456 lib/vdev/ifname.sh
0e195db418c3f0aa2dde192056be87dc lib/vdev/input.sh
cf55ba68041a769801d7eb0a5b5596bf lib/vdev/modprobe.sh
200962fe3cc7169274b176ed4389e4e4 lib/vdev/netdev.sh
5b444712a62b3b40657682dead81cac1 lib/vdev/optical.sh
0269c290d7f14507b0647590d65e163c lib/vdev/permissions.sh
5894ad4068a7a17e7fa5936905abf79c lib/vdev/power-switch.sh
e4513cabb994365d8adb0f048d3ece6b lib/vdev/sound.sh
c014fed72fbb2bbea24b75562582ea8a lib/vdev/stat_ata
084bb79f164a976fc33a66d0eb2fa481 lib/vdev/stat_bus
4e94ab25e43658c608218f9abcda4fb5 lib/vdev/stat_input
3853c0069ba46427db1c9cc0f4675384 lib/vdev/stat_net
f830acec313d613696f2aabed3883c0d lib/vdev/stat_optical
3d27619a3e6450a444bd9972759cde3f lib/vdev/stat_path
2fc37efb3e667ea00452ff5541959670 lib/vdev/stat_scsi
718587279d69e2c7452e23cf0b064916 lib/vdev/stat_usb
be2152d603a03dd61968bfe14276aa66 lib/vdev/stat_v4l
7548b29d7239e9d96b6d81ab23633578 lib/vdev/subr-event.sh
973e12f73afb41652819acb3bad0a3b0 lib/vdev/subr-hwdb.sh
c30f0da953fb97590e17b5ca96563821 lib/vdev/subr.sh
9fecc8c1b302b27e73e07c723732b875 lib/vdev/sysfs.sh
61956f7291b8209cd173a61c74bdfeed lib/vdev/udev-compat.sh
8081ef2e124131579f0089d4c55d7965 lib/vdev/usb-name.sh
571728f5420f4402bc8658aeaec76dda lib/vdev/v4l.sh
15a1852ef679560bdcbc63980e3c057f sbin/vdevd
e5f056fbbc78cf9fe8272ca04765cea7 usr/share/doc/vdev/README.Debian
cc2bb5a5afb3dad766e4349efd338d84 usr/share/doc/vdev/README.md
e4345ad8c68fa03031e457cef00a3f3c usr/share/doc/vdev/changelog.gz
4d715baa243a940d14535daedeeb643b usr/share/doc/vdev/copyright
387ec1234b2ec39cfb97c99e832ef013 usr/share/vdev/initramfs-tools/hooks/vdev
850a6416f6a5cc34b1a3de8a4b60c375 usr/share/vdev/initramfs-tools/init
f078983e3cc96ffc76f343aad7f14ea7 usr/share/vdev/initramfs-tools/modules.d/vdev
f6e2b25bd2aade67889e5b2cf1c5b3b2 usr/share/vdev/initramfs-tools/scripts/init-bottom/vdev
4f92be44c643688e2c57764cc471621f usr/share/vdev/initramfs-tools/scripts/init-top/vdev
019f15641eabc703144f806e00096532 usr/share/vdev/vdev-install.sh
#!/bin/sh
# postinst script for vdevd
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <postinst> `configure' <most-recently-configured-version>
# * <old-postinst> `abort-upgrade' <new version>
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
# <new-version>
# * <postinst> `abort-remove'
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
# <failed-install-package> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
configure)
/lib/vdev/gen-ifnames.sh >> /etc/vdev/ifnames.conf
# Capture important udev files for later restoration
tar czf $UDEVTGZ -C $IT init $(find $IT -name udev -printf '%P ')
# Chose vdev
/usr/share/vdev/vdev-install.sh vdev
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
exit 0
#!/bin/sh
# prerm script for vdevd
#
# see: dh_installdeb(1)
set -e
# summary of how this script can be called:
# * <prerm> `remove'
# * <old-prerm> `upgrade' <new-version>
# * <new-prerm> `failed-upgrade' <old-version>
# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
# * <deconfigured's-prerm> `deconfigure' `in-favour'
# <package-being-installed> <version> `removing'
# <conflicting-package> <version>
# for details, see http://www.debian.org/doc/debian-policy/ or
# the debian-policy package
case "$1" in
remove|upgrade|deconfigure)
# Try to be polite and restore those udev files
/usr/share/vdev/vdev-install.sh udev
rm -f /usr/share/vdev/udev-initramfs.tgz
rm -f /etc/vdev/ifnames.conf
;;
failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`$1'" >&2
exit 1
;;
esac
# dh_installdeb will replace this with shell code automatically
# generated by other debhelper scripts.
exit 0
#!/bin/sh -e
### BEGIN INIT INFO
# Provides: udev
# Required-Start: mountkernfs
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Start vdevd, populate /dev and load drivers.
# Description: Manages the /dev directory tree
### END INIT INFO
SCRIPTNAME=$0
# fill defaults
if [ -z "$VDEV_BIN" ]; then
VDEV_BIN=/sbin/vdevd
fi
if [ -z "$VDEV_CONFIG" ]; then
VDEV_CONFIG=/etc/vdev/vdevd.conf
fi
if [ -z "$VDEV_MOUNTPOINT" ]; then
VDEV_MOUNTPOINT=/dev
fi
# load an ini file as a set of namespaced environment variables, echoing them to stdout
# $1 is the path to the file
# $2 is the namespace to be prepended to each variable name
source_ini_file() {
local FILE_PATH NAMESPACE line KEY VALUE
FILE_PATH=$1
NAMESPACE=$2
/bin/cat $FILE_PATH | /bin/sed "s/.*\[.*\].*//g" | \
while read line; do
KEY=$(echo $line | /bin/sed "s/\(^.*\)=.*/\1/g");
VALUE=$(echo $line | /bin/sed "s/^.*=\(.*\)$/\1/g");
if [ -n "$KEY" ]; then
echo "${NAMESPACE}${KEY}=${VALUE}"
fi
done
}
##############################################################################
[ -x $VDEV_BIN ] || exit 0
PATH="/sbin:/bin"
# defaults
tmpfs_size="10M"
. /lib/lsb/init-functions
# system-wide vdevd needs /sys to be mounted
if [ ! -d /sys/class/ ]; then
log_failure_msg "vdev requires a mounted sysfs, not started"
log_end_msg 1
fi
# system-wide vdevd needs "modern" sysfs
if [ -d /sys/class/mem/null -a ! -L /sys/class/mem/null ] || \
[ -e /sys/block -a ! -e /sys/class/block ]; then
log_warning_msg "CONFIG_SYSFS_DEPRECATED must not be selected"
log_warning_msg "Booting will continue in 30 seconds but many things will be broken"
sleep 30
fi
# load vdev config variables as vdev_config_*
eval $(source_ini_file $VDEV_CONFIG "vdev_config_")
# config sanity check
if [ -z "$vdev_config_pidfile" ]; then
log_warning_msg "No PID file defined in $VDEV_CONFIG. Please set the pidfile= directive."
log_warning_msg "You will be unable stop or restart vdevd with this script."
fi
# start up the system-wide vdevd
# $@ arguments to vdevd
vdevd_start() {
# clear uevent helper--vdevd subsumes its role
if [ -w /sys/kernel/uevent_helper ]; then
echo > /sys/kernel/uevent_helper
fi
# set the SELinux context for devices created in the initramfs
[ -x /sbin/restorecon ] && /sbin/restorecon -R $VDEV_MOUNTPOINT
log_daemon_msg "Starting the system device event dispatcher" "vdevd"
# make sure log directory exists...
if [ -n "$vdev_config_logfile" ]; then
vdev_log_dir="$(echo "$vdev_config_logfile" | sed 's/[^/]\+$//g')"
if [ -n "$vdev_log_dir" ]; then
mkdir -p "$vdev_log_dir"
fi
fi
# make sure the pid directory exists
if [ -n "$vdev_config_pidfile" ]; then
vdev_pid_dir="$(echo "$vdev_config_pidfile" | sed 's/[^/]\+$//g')"
if [ -n "$vdev_pid_dir" ]; then
mkdir -p "$vdev_pid_dir"
fi
fi
# start vdev
if "$VDEV_BIN" -c "$VDEV_CONFIG" $@ "$VDEV_MOUNTPOINT"; then
log_end_msg $?
else
log_warning_msg $?
log_warning_msg "Waiting 15 seconds and trying to continue anyway"
sleep 15
fi
return 0
}
# reseed device files with --once
# $@ arguments to vdevd
vdevd_once() {
log_daemon_msg "(Re)seeding device files" "vdevd"
# run vdevd once
$VDEV_BIN -c $VDEV_CONFIG --once $@ $VDEV_MOUNTPOINT
log_end_msg $?
return 0
}
# stop the system-wide vdevd
vdevd_stop() {
log_daemon_msg "Sending SIGTERM to the system device event dispatcher" "vdevd"
if ! [ -f $vdev_config_pidfile ]; then
echo "No PID file at $vdev_config_pidfile" >&2
exit 1
fi
# kill vdevd with SIGTERM
VDEV_PID=$(/bin/cat $vdev_config_pidfile)
/bin/kill -s SIGTERM $VDEV_PID
log_end_msg $?
return 0
}
case "$1" in
start)
vdevd_start
;;
stop)
vdevd_stop
;;
once)
vdevd_once
;;
restart)
vdevd_stop
vdevd_start
;;
*)
echo "Usage: $SCRIPTNAME {start|stop|once|restart}" >&2
exit 1
;;
esac
exit 0
#!/bin/sh
### BEGIN INIT INFO
# Provides: udevOFF
# Required-Start: mountkernfs
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Start udevd, populate /dev and load drivers.
### END INIT INFO
[vdev-action]
event=add
type=block
OS_DEVPATH=
helper=sysfs.sh
daemonlet=true
[vdev-action]
event=add
type=char
OS_DEVPATH=
helper=sysfs.sh
daemonlet=true
[vdev-action]
event=add
OS_MODALIAS=
helper=modprobe.sh
daemonlet=true
[vdev-action]
event=add
OS_FIRMWARE=
helper=firmware.sh
daemonlet=true
[vdev-action]
event=add
path=^agpgart$
OS_SUBSYSTEM=misc
VAR_PERMISSIONS_GROUP=video
helper=permissions.sh
[vdev-action]
event=any
type=block
helper=block.sh
daemonlet=true
[vdev-action]
event=add
path=^btrfs-control$
VAR_PERMISSIONS_OWNER=root
VAR_PERMISSIONS_GROUP=disk
VAR_PERMISSIONS_MODE=0660
helper=permissions.sh
[vdev-action]
event=any
type=char
helper=char.sh
daemonlet=true
[vdev-action]
event=any
OS_SUBSYSTEM=msr
path=^msr[0-9]*$
rename_command="$VDEV_HELPERS/echo_n" "$VDEV_PATH" | /bin/sed 's/msr\([0-9]*\)/cpu\/\1\/msr/g'
[vdev-action]
event=any
path=^microcode$
rename_command="$VDEV_HELPERS/echo_n" "cpu/$VDEV_PATH"
[vdev-action]
event=add
path=^cuse$
VAR_PERMISSIONS_MODE=0666
helper=permissions.sh
[vdev-action]
event=any
OS_DEVNAME=mapper/control
rename_command="$VDEV_HELPERS/echo_n" "$VDEV_OS_DEVNAME"
[vdev-action]
event=add
path=^tty[A-Z]+[0-9]*$|^pppox[0-9]*$|^ircomm[0-9]*$|^noz[0-9]*$|^rfcomm[0-9]*$
VAR_PERMISSIONS_GROUP=dialout
helper=permissions.sh
[vdev-action]
event=any
OS_SUBSYSTEM=block
OS_DEVTYPE=partition
helper=disk.sh
VAR_DISK_OWNER=root
VAR_DISK_GROUP=disk
VAR_DISK_MODE=0660
daemonlet=true
[vdev-action]
event=any
OS_DEVTYPE=disk
OS_SUBSYSTEM=block
VAR_DISK_OWNER=root
VAR_DISK_GROUP=disk
VAR_DISK_MODE=0660
helper=disk.sh
daemonlet=true
[vdev-action]
event=any
OS_DEVTYPE=disk
OS_SUBSYSTEM=block
helper=dm-disk.sh
VAR_DM_DISK_OWNER=root
VAR_DM_DISK_GROUP=disk
VAR_DM_DISK_MODE=0660
daemonlet=true
[vdev-action]
event=any
OS_SUBSYSTEM=drm
rename_command=test "$VDEV_PATH" != "UNKNOWN" && "$VDEV_HELPERS/echo_n" "$VDEV_OS_DEVNAME"; exit 0
VAR_PERMISSIONS_OWNER=root
VAR_PERMISSIONS_GROUP=video
VAR_PERMISSIONS_MODE=0660
helper=permissions.sh
[vdev-action]
event=add
path=^dvb/adapter[0-9]+/[^/]+$
VAR_PERMISSIONS_GROUP=video
VAR_PERMISSIONS_MODE=0660
helper=permissions.sh
[vdev-action]
event=add
path=^err$
OS_SUBSYSTEM=aoe
VAR_PERMISSIONS_MODE=0440
helper=permissions.sh
[vdev-action]
event=add
path=^fb[0-9]+$
VAR_PERMISSIONS_OWNER=root
VAR_PERMISSIONS_GROUP=video
VAR_PERMISSIONS_MODE=0660
helper=permissions.sh
[vdev-action]
event=add
path=^full$
VAR_PERMISSIONS_MODE=0666
helper=permissions.sh
[vdev-action]
event=add
path=^fuse$
command=if [ -z "$(/bin/cat /proc/self/mounts | /bin/grep "fusectl")" ]; then /bin/mount -t fusectl fusectl /sys/fs/fuse/connections; fi
[vdev-action]
event=add
path=^fuse$
VAR_PERMISSIONS_MODE=0666
VAR_PERMISSIONS_OWNER=root
helper=permissions.sh
[vdev-action]
event=add
helper=hwdb-props.sh
daemonlet=true
[vdev-action]
event=add
OS_INTERFACE=
OS_SUBSYSTEM=net
helper=ifname.sh
daemonlet=true
[vdev-action]
event=any
OS_SUBSYSTEM=input
VAR_INPUT_OWNER=root
VAR_INPUT_GROUP=input
VAR_INPUT_MODE=0660
helper=input.sh
daemonlet=true
[vdev-action]
event=add
path=^irlpt[0-9]*$
VAR_PERMISSIONS_GROUP=lp
helper=permissions.sh
[vdev-action]
event=add
path=^kmsg$
VAR_PERMISSIONS_MODE=0644
helper=permissions.sh
[vdev-action]
event=add
path=^kvm$
VAR_PERMISSIONS_OWNER=root
VAR_PERMISSIONS_GROUP=kvm
VAR_PERMISSIONS_MODE=0660
helper=permissions.sh
[vdev-action]
event=add
path=^legousbtower.*$
VAR_PERMISSIONS_MODE=0666
helper=permissions.sh
[vdev-action]
event=add
path=^lirc[0-9]+$
VAR_PERMISSIONS_GROUP=video
helper=permissions.sh
[vdev-action]
event=add
path=^loop-control$
VAR_PERMISSIONS_OWNER=root
VAR_PERMISSIONS_GROUP=disk
VAR_PERMISSIONS_MODE=0660
helper=permissions.sh
[vdev-action]
event=add
path=^loop[0-9]+$
VAR_PERMISSIONS_OWNER=root
VAR_PERMISSIONS_GROUP=disk
VAR_PERMISSIONS_MODE=0660
helper=permissions.sh