sync();
if (geteuid() == 0 || getuid() == 0) {
+ execl("/usr/bin/su", "/usr/bin/su", "-", "ast", "-c", "/usr/src/test/test17", NULL);
printf("Test 17 cannot run as root; test aborted\n");
exit(1);
}
int n;
if (geteuid() == 0 || getuid() == 0) {
+ execl("/usr/bin/su", "/usr/bin/su", "-", "ast", "-c", "/usr/src/test/test18", NULL);
printf("Test 18 cannot run as root; test aborted\n");
exit(1);
}
m = (argc == 2 ? atoi(argv[1]) : 0xFFFF);
if (geteuid() == 0 || getuid() == 0) {
+ execl("/usr/bin/su", "/usr/bin/su", "-", "ast", "-c", "/usr/src/test/test19", NULL);
printf("Test 19 cannot run as root; test aborted\n");
exit(1);
}
sync();
if (geteuid() == 0 || getuid() == 0) {
+ execl("/usr/bin/su", "/usr/bin/su", "-", "ast", "-c", "/usr/src/test/test21", NULL);
printf("Test 21 cannot run as root; test aborted\n");
exit(1);
}
sync();
if (geteuid() == 0 || getuid() == 0) {
+ execl("/usr/bin/su", "/usr/bin/su", "-", "ast", "-c", "/usr/src/test/test25", NULL);
printf("Test 25 cannot run as root; test aborted\n");
exit(1);
}
int i, m = 0xFFFF;
sync();
+
if (geteuid() == 0 || getuid() == 0) {
+ execl("/usr/bin/su", "/usr/bin/su", "-", "ast", "-c", "/usr/src/test/test3", NULL);
printf("Test 3 cannot run as root; test aborted\n");
exit(1);
}
sync();
if (geteuid() == 0 || getuid() == 0) {
+ execl("/usr/bin/su", "/usr/bin/su", "-", "ast", "-c", "/usr/src/test/test6", NULL);
printf("Test 6 cannot run as root; test aborted\n");
exit(1);
}