From nobody Sat Oct 05 07:11:09 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XLGmF4PmJz5XrXM; Sat, 05 Oct 2024 07:11:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XLGmF1v9Xz4Mml; Sat, 5 Oct 2024 07:11:09 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728112269; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uXyY+je3A+E8KFC/NU+dGkuCVDG2RceVHJj0x+6e/Kg=; b=aUQhfO0cVt4uF3892Af0779Tc+2G/nzPqwfdJUza72mLNuF7AaJXIsLE5M6okQsf2zrXyt 4SZL4yqiRWJQVmbOdeBenjbSkLP4DSwfYhxU2EBgQfEgoF64cPHaGFPpTfY0u1tnQjUq4z n5731h4SUHRCb80iw0eIwzLNAgKEY5gZRUWUg31T+Nby5xNkV7bxev0Jq96lq7fSUYSlKJ hbex83m+WQv9uBo8Sihz8kkcdXuGrxRrygegwsPyi0ZEvoJsB1Acx1BVrxW9MX/ThoMAL4 AS9N1owVA7apWRTCzJjcpvSvv6v7oavyhj6lfYMn7Ndb6Ym4Ap1oJCLgh30seg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728112269; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=uXyY+je3A+E8KFC/NU+dGkuCVDG2RceVHJj0x+6e/Kg=; b=X6CUFiMFIaNCiYRKX8dLQs/zFRb0MQLUb9eVtgPtyoKKcUwY9HDktWhSMdnMPl0uqQH5M8 Kmf1uqefvtL12xVk82migYeGhJmHYfhBkE/otVNh0IngmKjpF/HIO5E+mwBhe5tI1BaMw8 hC3k+o18ckguQ/2/DyJ//rkK6LT4550LDURHAfqMPqbTZ1rVMyCLl0lJG9nM6A257qxBZj afOiOreZz2kPZ1oSR+Q7+ZYtCFuQAWZk2KHIwCWx1p1evvgvx8VLRluSVpS1N4YhXSvRC/ 6klIr8AM5slzg+ukP+3+R/FlaZqfUF8H4uS1UTS0XLi1AaCUOh2aVyPxds2NuQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728112269; a=rsa-sha256; cv=none; b=QQ7PEhm5ZUSkisyOoLTgwWW93MMgGf6w14+1SIlxzv12PwOG2HrAZgg5co8aNV2X3q8vWH VOn8nHz/BQqdzMha9kAYb8Ugx44Zs6RJd5uu588fmcGFuKx8G8swZrQNrr134uo6e+TWdL 41oGIqlavg7dIhP/vHUptJK9KtndzPDy1rTij4sHn78sl10UAXaFFs8D0pDTgDU+X7kEb1 Mh2qyddOWzKKX/djikya5kyi/wFrMQUGCEtNrKdU9Ier3F4uA3BjVWZKCABbDEpIHMZ4sv Yr5JMe1juWq7eV/WJfpN7n6ldfnqtKVXeFS3oR9VogLdYwX/7I2cpvIlIytq9A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XLGmF17Jsz183Y; Sat, 5 Oct 2024 07:11:09 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4957B91m000847; Sat, 5 Oct 2024 07:11:09 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4957B97G000844; Sat, 5 Oct 2024 07:11:09 GMT (envelope-from git) Date: Sat, 5 Oct 2024 07:11:09 GMT Message-Id: <202410050711.4957B97G000844@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: a03f7c040ce7 - stable/14 - libutil: support RLIMIT_PIPEBUF List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: a03f7c040ce7b836b7e0dedfca76b28d2b8a5464 Auto-Submitted: auto-generated The branch stable/14 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=a03f7c040ce7b836b7e0dedfca76b28d2b8a5464 commit a03f7c040ce7b836b7e0dedfca76b28d2b8a5464 Author: Konstantin Belousov AuthorDate: 2024-09-10 04:13:01 +0000 Commit: Konstantin Belousov CommitDate: 2024-10-05 07:08:54 +0000 libutil: support RLIMIT_PIPEBUF (cherry picked from commit a4c04958f526a0dba353b54641dc5d2806984d02) --- lib/libutil/login.conf.5 | 1 + lib/libutil/login_class.3 | 1 + lib/libutil/login_class.c | 1 + 3 files changed, 3 insertions(+) diff --git a/lib/libutil/login.conf.5 b/lib/libutil/login.conf.5 index a749fe5519ab..b1e7211e4c18 100644 --- a/lib/libutil/login.conf.5 +++ b/lib/libutil/login.conf.5 @@ -204,6 +204,7 @@ login environment. .It "pseudoterminals number Maximum number of pseudo-terminals." .It "swapuse size Maximum swap space size limit." .It "umtxp number Maximum number of process-shared pthread locks." +.It "pipebuf" size Maximum size of pipe buffers." .El .Pp These resource limit entries actually specify both the maximum diff --git a/lib/libutil/login_class.3 b/lib/libutil/login_class.3 index b67301f5a5a6..46e6a70f8ca8 100644 --- a/lib/libutil/login_class.3 +++ b/lib/libutil/login_class.3 @@ -118,6 +118,7 @@ pseudoterminals RLIMIT_NPTS swapuse RLIMIT_SWAP kqueues RLIMIT_KQUEUES umtxp RLIMIT_UMTXP +pipebuf RLIMIT_PIPEBUF .Ed .It LOGIN_SETPRIORITY Set the scheduling priority for the current process based on the diff --git a/lib/libutil/login_class.c b/lib/libutil/login_class.c index eb16ad501881..172da78aaf17 100644 --- a/lib/libutil/login_class.c +++ b/lib/libutil/login_class.c @@ -66,6 +66,7 @@ static struct login_res { { "swapuse", login_getcapsize, RLIMIT_SWAP }, { "kqueues", login_getcapsize, RLIMIT_KQUEUES }, { "umtxp", login_getcapnum, RLIMIT_UMTXP }, + { "pipebuf", login_getcapnum, RLIMIT_PIPEBUF }, { NULL, 0, 0 } };