Add RLIMIT_FSIZE stub

This commit is contained in:
EnderIce2 2024-03-25 22:37:40 +02:00
parent 954e5a2d02
commit 3b1bd58a36
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -2097,6 +2097,11 @@ static int linux_prlimit64(SysFrm *, pid_t pid, int resource,
UNUSED(pOldLimit);
UNUSED(pNewLimit);
if (new_limit)
debug("new limit: rlim_cur:%ld rlim_max:%ld", pNewLimit->rlim_cur, pNewLimit->rlim_max);
if (old_limit)
debug("old limit: rlim_cur:%ld rlim_max:%ld", pOldLimit->rlim_cur, pOldLimit->rlim_max);
switch (resource)
{
case RLIMIT_NOFILE:
@ -2114,8 +2119,12 @@ static int linux_prlimit64(SysFrm *, pid_t pid, int resource,
fixme("Setting RLIMIT_NPROC is stub");
return 0;
}
case RLIMIT_CPU:
case RLIMIT_FSIZE:
{
fixme("Setting RLIMIT_FSIZE is stub");
return 0;
}
case RLIMIT_CPU:
case RLIMIT_DATA:
case RLIMIT_CORE:
case RLIMIT_RSS: