Skip to content

Commit

Permalink
sysdeps/linux: Implement sys_setgroups
Browse files Browse the repository at this point in the history
Co-authored-by: 48cf <[email protected]>
  • Loading branch information
Dennisbonke and 48cf committed Dec 13, 2024
1 parent 3b8fd7a commit 45fbbdc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sysdeps/linux/generic/sysdeps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2055,6 +2055,14 @@ int sys_setns(int fd, int nstype) {
return 0;
}

int sys_setgroups(size_t size, const gid_t *list) {
auto ret = do_syscall(SYS_setgroups, size, list);
if(int e = sc_error(ret); e) {
return e;
}
return 0;
}

#if __MLIBC_BSD_OPTION
int sys_brk(void **out) {
auto ret = do_syscall(SYS_brk, 0);
Expand Down

0 comments on commit 45fbbdc

Please sign in to comment.