summaryrefslogtreecommitdiff
path: root/other/shellkit/mips_irix/setreuid.s
diff options
context:
space:
mode:
authorRoot THC2026-02-24 12:42:47 +0000
committerRoot THC2026-02-24 12:42:47 +0000
commitc9cbeced5b3f2bdd7407e29c0811e65954132540 (patch)
treeaefc355416b561111819de159ccbd86c3004cf88 /other/shellkit/mips_irix/setreuid.s
parent073fe4bf9fca6bf40cef2886d75df832ef4b6fca (diff)
initial
Diffstat (limited to 'other/shellkit/mips_irix/setreuid.s')
-rw-r--r--other/shellkit/mips_irix/setreuid.s32
1 files changed, 32 insertions, 0 deletions
diff --git a/other/shellkit/mips_irix/setreuid.s b/other/shellkit/mips_irix/setreuid.s
new file mode 100644
index 0000000..9578262
--- /dev/null
+++ b/other/shellkit/mips_irix/setreuid.s
@@ -0,0 +1,32 @@
1/* MIPS/IRIX PIC setreuid chainable code
2 *
3 * -sc.
4 */
5
6#include <sgidefs.h>
7#include <sys/regdef.h>
8#include <sys/asm.h>
9#include <sys.s>
10#include <sys/syscall.h>
11
12 .section .text
13
14 .globl cbegin
15 .globl cend
16
17cbegin:
18 .set noreorder
19 .set nomacro
20
21 /* setreuid (a0, a1) */
22 li a0, 0x4141 /* ruid ^ 0x5555 */
23 li a1, 0x4242 /* euid ^ 0x5555 */
24 xor a0, a0, 0x5555
25 xor a1, a1, 0x5555
26 li v0, SYS_setreuid /* 0x0464 */
27 syscall
28 li t8, 0x7350
29
30 .end cbegin
31cend:
32