Re: [android-kernel] Re: permission verification: what code components are responsible?

2010-12-20 Thread Dianne Hackborn
Anyway native code can do permission checks fine, just by doing the same IPC into the system that other things do. On Mon, Dec 20, 2010 at 12:05 PM, Chris Stratton wrote: > On Dec 20, 2:58 pm, Earlence wrote: > > > However, with the recent introduction of the ability to record audio > > from na

[android-kernel] Re: permission verification: what code components are responsible?

2010-12-20 Thread Chris Stratton
On Dec 20, 2:58 pm, Earlence wrote: > However, with the recent introduction of the ability to record audio > from native code, there should be a permission check for it > (android.permission.RECORD_AUDIO) > Is it a similar patch like the internet check.? That would depend on how "native" audio r

[android-kernel] Re: permission verification: what code components are responsible?

2010-12-20 Thread Earlence
okay...that was a sufficient explanation. I presume that since the ability to do things like SEND_SMS are not available natively, the question does not arise. However, with the recent introduction of the ability to record audio from native code, there should be a permission check for it (android.pe

[android-kernel] Re: permission verification: what code components are responsible?

2010-12-20 Thread Chris Stratton
For which permission? There are a variety of different ways things are handled. For example, access to a hardware device is often protected by the unix permissions of the device file and filesystems/mounts. Network permission is done with a very short patch to add a check for the hardcoded andro

[android-kernel] Re: permission verification: what code components are responsible?

2010-12-19 Thread Earlence
but a little more detailed explanation. On Dec 19, 10:13 pm, Earlence wrote: > yup. more or less. > > On Dec 19, 9:48 pm, hedwin wrote: > > > In various parts in the android source code calls are made to getuid, > > getgid to verify whether parts of the code are allowed to execute > > based > >

[android-kernel] Re: permission verification: what code components are responsible?

2010-12-19 Thread Earlence
yup. more or less. On Dec 19, 9:48 pm, hedwin wrote: > In various parts in the android source code calls are made to getuid, > getgid to verify whether parts of the code are allowed to execute > based > on file permissions. Is that what you are looking for? > > On Sun, Dec 19, 2010 at 9:15 AM, Ea