Where is the binary?  /data is mounted "nosuid", so any setuid program will
fail in that location.

setuid programs can only exist on /system.

-- Nick

On Wed, Mar 2, 2011 at 11:36 AM, vertlook <[email protected]> wrote:

> Hi all,
> I have an app, which will work on rooted phones. The app consist of a
> java ui and native binary, which requires a root privilege.
> I was planning to chown this binary to root and set a setid bit on it.
> But it does not seem to take any effect, when I run this binary as an
> app user, getuid() gives me a user id of this app, not of the root.
> Also tried to do setuid(0) from the binary but getting "permission
> denied".
> Same binary works just fine on linux. Any ideas?
> Thanks!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Android Security Discussions" group.
> To post to this group, send email to
> [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/android-security-discuss?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Android Security Discussions" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/android-security-discuss?hl=en.

Reply via email to