github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/contrib/syscall-test/setuid.c (about) 1 #include <sys/types.h> 2 #include <unistd.h> 3 #include <stdio.h> 4 5 int main() { 6 if (setuid(1) == -1) { 7 perror("setuid"); 8 return 1; 9 } 10 return 0; 11 }