git: c84d8db0ab3d - main - procfs: ensure that RLIMIT_IDENT is properly updated when a limit is added
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 Sep 2024 21:09:30 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=c84d8db0ab3d02f65422e8dcdc1f911cc15a04ec
commit c84d8db0ab3d02f65422e8dcdc1f911cc15a04ec
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-09-20 15:04:32 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-09-20 21:08:51 +0000
procfs: ensure that RLIMIT_IDENT is properly updated when a limit is added
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
---
sys/fs/procfs/procfs_rlimit.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sys/fs/procfs/procfs_rlimit.c b/sys/fs/procfs/procfs_rlimit.c
index 83e11f44b3f8..6be933ac6e44 100644
--- a/sys/fs/procfs/procfs_rlimit.c
+++ b/sys/fs/procfs/procfs_rlimit.c
@@ -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)
{