On Apr 28, 4:33 pm, wadhah dawahi <[email protected]> wrote:
> i am under linux/android and i want to configure network card without
> passing to root
Please be clearer about what you are trying to do. Do you want to
make a fixed-function setuid program to execute specific commands,
which can't be misused to execute other ones?
> execv("/system/bin/sh", exec_args);
>
> printf("commancer l'execlp \n");
>
> execlp("/system/bin/sh", "sh", NULL);
Why are you calling two exec functions?
> and i changed its privilege with chmod 755 /data/data/..../su
That makes it executable, not setuid root which is presumably what you
want if it's going to manage the network hardware
> my executable su stop in execv("/system/bin/sh", exec_args);
"The exec() family of functions replaces the current process image
with a new process image."
--
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.