added task and solution
This commit is contained in:
commit
a0e1d6f7ab
9 changed files with 444 additions and 0 deletions
12
solution/setuid_fail/monitor_shim.c
Normal file
12
solution/setuid_fail/monitor_shim.c
Normal 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");
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue