Skip to content

Commit fbd4f6a

Browse files
committed
Implement POSIX uid / gid related syscalls
1 parent 71141ba commit fbd4f6a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

qiling/os/posix/syscall/unistd.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def ql_syscall_issetugid(ql: Qiling):
6363

6464

6565
def ql_syscall_getuid(ql: Qiling):
66-
return 0
66+
return ql.os.uid
6767

6868

6969
def ql_syscall_getuid32(ql: Qiling):
@@ -75,15 +75,15 @@ def ql_syscall_getgid32(ql: Qiling):
7575

7676

7777
def ql_syscall_geteuid(ql: Qiling):
78-
return 0
78+
return ql.os.euid
7979

8080

8181
def ql_syscall_getegid(ql: Qiling):
82-
return 0
82+
return ql.os.egid
8383

8484

8585
def ql_syscall_getgid(ql: Qiling):
86-
return 0
86+
return ql.os.gid
8787

8888

8989
def ql_syscall_setgroups(ql: Qiling, gidsetsize: int, grouplist: int):

0 commit comments

Comments
 (0)