summaryrefslogtreecommitdiffstats
path: root/udev
diff options
context:
space:
mode:
authorGravatar Hector Martin2010-01-30 00:33:57 +0100
committerGravatar Hector Martin2010-01-30 00:33:57 +0100
commit9932ebe49a47c929c8345625a907e5d4e73fe3d5 (patch)
treebb8324e926b9730a25c73273ab99aae2087844bf /udev
parentdb1429f4ab24433ec1b98721230305ed043aba66 (diff)
downloadusbmuxd-9932ebe49a47c929c8345625a907e5d4e73fe3d5.tar.gz
usbmuxd-9932ebe49a47c929c8345625a907e5d4e73fe3d5.tar.bz2
Require explicit username to drop privs
Diffstat (limited to 'udev')
-rw-r--r--udev/85-usbmuxd.rules.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/85-usbmuxd.rules.in b/udev/85-usbmuxd.rules.in
index f68a5fa..f9c8376 100644
--- a/udev/85-usbmuxd.rules.in
+++ b/udev/85-usbmuxd.rules.in
@@ -1,7 +1,7 @@
# usbmuxd (iPhone "Apple Mobile Device" MUXer listening on /var/run/usbmuxd)
# Forces iPhone 1.0, 3G, 3GS and iPodTouch 1 and 2 to USB configuration 3 and run usbmuxd
-ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="129[0-9]", ATTR{bConfigurationValue}!="$attr{bNumConfigurations}", ATTR{bConfigurationValue}="$attr{bNumConfigurations}", RUN+="@CMAKE_INSTALL_PREFIX@/sbin/usbmuxd -u -U"
+ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="05ac", ATTR{idProduct}=="129[0-9]", ATTR{bConfigurationValue}!="$attr{bNumConfigurations}", ATTR{bConfigurationValue}="$attr{bNumConfigurations}", RUN+="@CMAKE_INSTALL_PREFIX@/sbin/usbmuxd -u -U usbmux"
# Exit usbmuxd when the last phone is removed
ACTION=="remove", SUBSYSTEM=="usb", ENV{PRODUCT}=="5ac/129[0-9]/*", ENV{INTERFACE}=="255/*", RUN+="@CMAKE_INSTALL_PREFIX@/sbin/usbmuxd -x"