Kernel/LibC: Implement {get,set,init}groups

This allows dropping /etc/group parsing from the kernel :D
This commit is contained in:
2025-08-10 18:19:31 +03:00
parent f41e254e35
commit af0bca74e4
9 changed files with 150 additions and 161 deletions

View File

@@ -673,8 +673,7 @@ error:
int getgroups(int gidsetsize, gid_t grouplist[])
{
dwarnln("FIXME: getgroups({}, {})", gidsetsize, grouplist);
return 0;
return syscall(SYS_GETGROUPS, grouplist, gidsetsize);
}
pid_t getppid(void)