1 /* test for a trapdoor uid system */
10 fprintf(stderr
,"ERROR: This test must be run as root - assuming non-trapdoor system\n");
14 if (seteuid(1) != 0) exit(1);
15 if (geteuid() != 1) exit(1);
16 if (seteuid(0) != 0) exit(1);
17 if (geteuid() != 0) exit(1);
19 if (setegid(1) != 0) exit(1);
20 if (getegid() != 1) exit(1);
21 if (setegid(0) != 0) exit(1);
22 if (getegid() != 0) exit(1);