jadonk / jadonk/rowboat

No write permission for all usb in /dev/bus/usb/xxx

Open
#120 0 comments 0 reactions 0 assignees View on GitHub
auto-migrated Priority-Medium Type-Defect
Dominant language
No language data
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

```
What steps will reproduce the problem?
I ahve build Gingerbread (Android 2.3) for xm beagle board. I need write
permission for all the usb port at the time of booting itself. For that i have
added the statement

mount -t usbfs none /proc/bus/usb/ -o devmode=0666

It works and usbfs is mounted in /proc/bus/usb/ with write permission.

What is the expected output? What do you see instead?
I need write permission in /dev/bus/usb/ also.

$ls -l /dev/bus/usb/001/

crw-rw-rw- root usb 189, 10 1970-01-02 00:02 011
crw-rw-rw- root usb 189, 9 1970-01-02 00:00 010
crw-rw-rw- root usb 189, 7 1970-01-01 00:00 008
crw-rw-rw- root usb 189, 5 1970-01-01 00:00 006
crw-rw-rw- root usb 189, 3 1970-01-01 00:00 004
crw-rw-rw- root usb 189, 2 1970-01-01 00:00 003
crw-rw-rw- root usb 189, 1 1970-01-01 00:00 002
crw-rw-rw- root usb 189, 0 1970-01-01 00:00 001
crw-rw-rw- root usb 189, 4 1970-01-01 00:00 005

but it is seen as,

crw-rw---- root usb 189, 10 1970-01-02 00:02 011
crw-rw---- root usb 189, 9 1970-01-02 00:00 010
crw-rw---- root usb 189, 7 1970-01-01 00:00 008
crw-rw---- root usb 189, 5 1970-01-01 00:00 006
crw-rw---- root usb 189, 3 1970-01-01 00:00 004
crw-rw---- root usb 189, 2 1970-01-01 00:00 003
crw-rw---- root usb 189, 1 1970-01-01 00:00 002
crw-rw---- root usb 189, 0 1970-01-01 00:00 001
crw-rw---- root usb 189, 4 1970-01-01 00:00 005

What version of the product are you using? On what operating system?

Gingerbread 2.3
Linux kernel 2.6.32
Ubuntu 10.04

Please provide any additional information below.

```

Original issue reported on code.google.com by `unni.sre...@gmail.com` on 28 Jul 2011 at 5:02

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Android 2.3 boot-time USB device permissions on the XM BeagleBoard with Linux kernel 2.6.32, comparing /proc/bus/usb with /dev/bus/usb. Trace how the /dev/bus/usb nodes are created and configured; done when all USB device nodes have the required write permission immediately after boot.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, linux
Domain
embedded-iot, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.