added task and solution

This commit is contained in:
nihonium 2025-04-29 03:40:01 +03:00
commit a0e1d6f7ab
9 changed files with 444 additions and 0 deletions

View file

@ -0,0 +1,12 @@
#include <unistd.h>
#include <stdio.h>
#include <sys/stat.h>
int main() {
struct stat st;
sleep(30);
execve("/tmp/setuid_fail", NULL, NULL);
printf("failed\n");
perror("execve");
}