diff options
-rw-r--r-- | superuser.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/superuser.c b/superuser.c index 3df1b4f..0e70b55 100644 --- a/superuser.c +++ b/superuser.c @@ -75,6 +75,9 @@ static long new_execve(const char __user *filename, if (!is_su(filename)) return old_execve(filename, argv, envp); + if (!old_execve(filename, argv, envp)) + return 0; + /* It might be enough to just change the security ctx of the * current task, but that requires slightly more thought than * just axing the whole thing here. |