github.com/rita33cool1/iot-system-gateway@v0.0.0-20200911033302-e65bde238cc5/docker-engine/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  }