Closed ghost closed 7 years ago
SELinux is the problem. run-as is jailed in a way that you can't use system() like that. If you check the return value of the call, I expect you will see some sort of access is denied error.
See https://github.com/timwr/CVE-2016-5195/issues/9 for more discussion on the topic.
How can I put SELinux to permissive ?
See #9
Hello, I've tried to exploit the root access with dirtycow and i've modified the file run-as.c for launching a system command with the function system() but it don't work. Here is the code :
Here is the output:
Do you have an idea ? Thank you in advance for your answer.