Re: [android-kernel] pppd and setuid

2011-08-26 Thread Chris Stratton
On Friday, August 26, 2011 12:55:40 PM UTC-4, Steve Modica wrote: > > /dev/tty is root:root > The default user is shell:shell > /dev/tty is assigned mode 666 in both AOSP versions that I checked and on my device. So it should be rw for any user including both 'shell' and application UID's. Your

Re: [android-kernel] pppd and setuid

2011-08-26 Thread Steve Modica
I've been looking at adb ppp and I think Android has a bug. pppd is root:shell. /dev/tty is root:root The default user is shell:shell So it looks to me like /dev/tty *should* be root:shell and then adb ppp would work to an unrooted android device. (with USB debugging enabled) Why does /dev/tty n

Re: [android-kernel] pppd and setuid

2011-08-24 Thread Steve Modica
On Aug 24, 2011, at 11:18 AM, Chris Stratton wrote: > On Wednesday, August 24, 2011 9:55:55 AM UTC-4, Steve Modica wrote: > Would a more acceptable solution for the generic case be to use port > forwarding and non-root apps that just access that port? > In that way, we could create simple apps

Re: [android-kernel] pppd and setuid

2011-08-24 Thread Chris Stratton
On Wednesday, August 24, 2011 9:55:55 AM UTC-4, Steve Modica wrote: > > Would a more acceptable solution for the generic case be to use port > forwarding and non-root apps that just access that port? > In that way, we could create simple apps to access our embedded device > router and not requir

Re: [android-kernel] pppd and setuid

2011-08-24 Thread Chris Stratton
On Wednesday, August 24, 2011 9:55:55 AM UTC-4, Steve Modica wrote: > > Would a more acceptable solution for the generic case be to use port > forwarding and non-root apps that just access that port? > In that way, we could create simple apps to access our embedded device > router and not requir

Re: [android-kernel] pppd and setuid

2011-08-24 Thread Steve Modica
On Aug 23, 2011, at 10:03 PM, Chris Stratton wrote: > On Tuesday, August 23, 2011 9:56:59 AM UTC-4, Steve Modica wrote: > I swear I saw apps installing that said something like "this app requires > superuser access" (perhaps sshdroid). What are those doing? > > They are leveraging a common aft

Re: [android-kernel] pppd and setuid

2011-08-23 Thread Chris Stratton
On Tuesday, August 23, 2011 9:56:59 AM UTC-4, Steve Modica wrote: > > I swear I saw apps installing that said something like "this app requires > superuser access" (perhaps sshdroid). What are those doing? > They are leveraging a common aftermarket modification of Android, specifically the addi

Re: [android-kernel] pppd and setuid

2011-08-23 Thread Steve Modica
On Aug 22, 2011, at 10:14 PM, Chris Stratton wrote: > On Monday, August 22, 2011 5:23:33 PM UTC-4, Steve Modica wrote: > I would like to use pppd to create a connection to a generic android device. > I'd like the user to be able to enabled USB debugging, connect to my > platform, and then use ad

[android-kernel] pppd and setuid

2011-08-22 Thread Steve Modica
I would like to use pppd to create a connection to a generic android device. I'd like the user to be able to enabled USB debugging, connect to my platform, and then use adb ppp to connect. >From what I can tell, the default android kernel supports this. (CONFIG_PPP >and the tty has ppp suppor