ueventd.rc uses android users & groups
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
android (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
The ueventd.rc file [1] used by Ubuntu for building android packages contains users and groups that don't exist in the Ubuntu rootfs.
While udev rules in 70-device.rules can be used to set a proper user/group for these devices on the Ubuntu side, the rules don't seem to take effect in the android container. I think this leads to "Permission denied" errors for android services like sensorservice, or at least I can't think of any other reason right now why sensorservice can't access /dev/cm3602 in my case.
Android container:
> # ls -l /dev/cm*
> crw-r----- compass system 10, 34 2013-10-24 17:05 cm3602
Ubuntu: (Note the 0660 permission instead of 0640, so my udev rule seems to work fine here)
> # ls -l /dev/cm*
> crw-rw---- 1 system system 10, 34 Oct 24 17:05 /dev/cm3602
Logcat error:
> # /system/bin/logcat | grep Permission
> E/Sensors ( 1517): Couldn't open /dev/cm3602 (Permission denied)
> # ps aux | grep 1517
> system 1517 0.0 0.4 5900 1652 ? Sl 17:05 0:00 /system/bin/sen
As far as I know, Ubuntu wants to get rid of android system users, so I hope the ueventd.rc in system/core/rootdir can be changed to not contain any android users/groups we don't have in the Ubuntu roofs as well.
description: | updated |
summary: |
- missing compass user and group + ueventd.rc uses android users & groups |
no longer affects: | touch-preview-images |