git: 1508dce2502d - stable/14 - procfs: ensure that RLIMIT_IDENT is properly updated when a limit is added
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 05 Oct 2024 07:11:03 UTC
The branch stable/14 has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=1508dce2502d3afd4863595c94624ff71d2883c0
commit 1508dce2502d3afd4863595c94624ff71d2883c0
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2024-09-20 15:04:32 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2024-10-05 07:08:53 +0000
procfs: ensure that RLIMIT_IDENT is properly updated when a limit is added
(cherry picked from commit c84d8db0ab3d02f65422e8dcdc1f911cc15a04ec)
---
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 3100bb0d6966..3dccf7889a0c 100644
--- a/sys/fs/procfs/procfs_rlimit.c
+++ b/sys/fs/procfs/procfs_rlimit.c
@@ -59,6 +59,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)
{