3

I know that this question is too abstract. So to make things more concrete, I'm examining on dirtycow(CVE-2016-5195). And especially for Android(6.0), I confirmed this PoC works and modified run-as.c to show whoami

char *whoami[]= { "/system/bin/whoami", 0 };
execve(whoami[0], whoami, 0);

, which shows root. But even if I modified the code to exec shell(/system/bin/sh). The code is rejected with EACCES. What is the missing point?! The SE Linux or the other Linux security policy I'm misunderstanding.

1
-1

EACCES on Android means you don't have sufficient privileges to access whatever medium (internal storage or external storage)you are trying to access.This may arise even when you don't declare the right permissions in manifest file.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.