From nobody Fri Sep 20 06:46:49 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 4X92x61902z5Wj2Z; Fri, 20 Sep 2024 06:46:50 +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 4X92x557Pvz4r25; Fri, 20 Sep 2024 06:46:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726814809; 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=lf0KyyRCQxPp3EBFKeHOaZ3iy/QFPYqo0T7qIiH2SRs=; b=OaxE8VGZ8dwhEtkMSyZYaRgqqYlfmdHpXANDGtyEEuEWdS3odW4aR2Lx50lPP9kaAtXsex rOmcmHky7RHYUJIjLBlik3i4S7+lsuOJHE1DyYsDEGle6/R1ohfj8iDssnvs5xjp1OebR6 y4Tv9rWhIq2n6ZFHL/8GOwy4FVPTzAfDI5THdmGVgH8WrUGIJj6GpmucffJO1+ZGMtsrt7 XrtYvr7qMwTqUGiEKVmASxrfG6U6b2HhhM4zLx3fK3kwlDGf5lYz1Nwh0Fmdn6yccSI2Gs 0K/Tc/plV7QuEoZi6Qomyl05wvgeBk/vtSKflfZrwx+qeq7q9jSEAbDTWt66WQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1726814809; a=rsa-sha256; cv=none; b=siz9lwEAkCFl/R87Z2Yhce/FmnBJN0n+5wf6d6T/J1Zwo0DSGHlJFRjR5rLF44PLEkAG/n 5WgR2yxA0I79qlQ42bUZ064PIrTDgLNy+K5h2gI++3wIk1tMvii2oj12dxZ5FcFItC6ak+ G6dKQONig6L0KUcC8Ai+CDIu2WPSKdUdXe4gxCRKgcu4Mu7e2IfLDiDv8XWh5Vd/f/zjJO L+6jLtoQo/ywOQsA1H+MIu6xesQplOPZIO5LLQgSyJGENtYQ9dPvzXYLjca74DpYVI5oG+ pLSZGSnfNGHkV/omQjb/myd5yhPkATDvGNfouainsGojb4+UnlmZjat/9+iokw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1726814809; 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=lf0KyyRCQxPp3EBFKeHOaZ3iy/QFPYqo0T7qIiH2SRs=; b=d2JVfBBKKNZRiZ1QbfGSoj+D6xp/95AdZH0TtgginukiT62DxpAh9eW4O2QzEQkmvz3Ot1 /M/iSJGzP+ocsFBD8O4H7UwK6UpMNqk8I9zhE+QVGMXqy7wEF2PWf9N8T4lmbM48wK2O5p DWr4G5JlJqZRq0kifBRhlRKMYSgbfoTD9HOao3Q/5unBymbsrrUHESvl6feBQwE6I7sytP Tg7pXQi6FVLLua9rFTpRtbA7Z4t29THVPcUETzhDo/OgxcgEoDi2SXidTJbqWCOHzPYfwF sI5pFPQBJEDCxpEZ3v9f7cFLbPCZJz7MfadFCYtH0IuFb6DbSv2619p2RKWOlQ== 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 4X92x54lFtzfPy; Fri, 20 Sep 2024 06:46:49 +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 48K6kn8f009518; Fri, 20 Sep 2024 06:46:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 48K6knM7009515; Fri, 20 Sep 2024 06:46:49 GMT (envelope-from git) Date: Fri, 20 Sep 2024 06:46:49 GMT Message-Id: <202409200646.48K6knM7009515@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: a4c04958f526 - main - 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/main X-Git-Reftype: branch X-Git-Commit: a4c04958f526a0dba353b54641dc5d2806984d02 Auto-Submitted: auto-generated The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=a4c04958f526a0dba353b54641dc5d2806984d02 commit a4c04958f526a0dba353b54641dc5d2806984d02 Author: Konstantin Belousov AuthorDate: 2024-09-10 04:13:01 +0000 Commit: Konstantin Belousov CommitDate: 2024-09-20 06:46:06 +0000 libutil: support RLIMIT_PIPEBUF Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D46619 --- 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 916e69065320..c3c1b0ddda27 100644 --- a/lib/libutil/login_class.c +++ b/lib/libutil/login_class.c @@ -65,6 +65,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 } };