procfs: ensure that RLIMIT_IDENT is properly updated when a limit is added

Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2024-09-20 18:04:32 +03:00
parent 2c1963d463
commit c84d8db0ab

View File

@ -57,6 +57,9 @@
#include <fs/pseudofs/pseudofs.h>
#include <fs/procfs/procfs.h>
_Static_assert(nitems(rlimit_ident) == RLIM_NLIMITS,
"resource.h RLIMIT_IDENT needs update");
int
procfs_doprocrlimit(PFS_FILL_ARGS)
{