Date: Sat, 5 Oct 2024 07:11:03 GMT From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 1508dce2502d - stable/14 - procfs: ensure that RLIMIT_IDENT is properly updated when a limit is added Message-ID: <202410050711.4957B3pp000661@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202410050711.4957B3pp000661>