init.rc service group/user

1,313 views
Skip to first unread message

steeldusk

unread,
Jun 3, 2011, 4:00:44 AM6/3/11
to android-porting
Hi,

I am trying to set user and group in init.rc for my own service. It
works nicely with having user as root, but I see some other default
android services have 'system' as group.

For example,

service media /system/bin/mediaserver
class services
group system audio camera

and, I am wondering what this 'system' is. Can someone give me any
idea?

Thanks.

freakingtux

unread,
Jun 21, 2011, 7:35:16 AM6/21/11
to android...@googlegroups.com


On Friday, June 3, 2011 10:00:44 AM UTC+2, steeldusk wrote:
Hi,

I am trying to set user and group in init.rc for my own service.  It
works nicely with having user as root, but I see some other default
android services have 'system' as group.
Hi

I written down what I understand from user and groups here  https://github.com/keesj/gomo/wiki/AndroidUserAndGroups you might find it useful or not.

My understanding of the "system" user is that it is a user that was given very broad set of permissions( by using capabilities and user/group settings on files) but not
the typical "all" permissions the root user will get. Making a service part of a group broadens it's permissions.

Greetings
Reply all
Reply to author
Forward
0 new messages