summaryrefslogtreecommitdiff
path: root/source3/tests/trapdoor.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/tests/trapdoor.c')
-rw-r--r--source3/tests/trapdoor.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/source3/tests/trapdoor.c b/source3/tests/trapdoor.c
deleted file mode 100644
index 83e10d0613..0000000000
--- a/source3/tests/trapdoor.c
+++ /dev/null
@@ -1,25 +0,0 @@
-/* test for a trapdoor uid system */
-
-#include <stdlib.h>
-#include <unistd.h>
-#include <stdio.h>
-
-main()
-{
- if (getuid() != 0) {
- fprintf(stderr,"ERROR: This test must be run as root - assuming non-trapdoor system\n");
- exit(0);
- }
-
- if (seteuid(1) != 0) exit(1);
- if (geteuid() != 1) exit(1);
- if (seteuid(0) != 0) exit(1);
- if (geteuid() != 0) exit(1);
-
- if (setegid(1) != 0) exit(1);
- if (getegid() != 1) exit(1);
- if (setegid(0) != 0) exit(1);
- if (getegid() != 0) exit(1);
-
- exit(0);
-}