From nobody Wed Nov 27 12:22:46 2024 X-Original-To: dev-commits-src-main@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 4Xyz9L3Jsyz5f6YC; Wed, 27 Nov 2024 12:22:46 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xyz9L1889z4HBJ; Wed, 27 Nov 2024 12:22:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732710166; 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=prct/j4lYr5PhWh3GAlyOqKekIjLv1gc7FxDRSVv6kc=; b=aF18oR8ybw1muczE7ok341kh4VPi9ICeBC71uagkPIcwgVI9rDWzOWWH8MP8CeoGE3jNfP p5Ilwik0HxN1r3WnxE2LPR604JSjpLq6OVEAzO4sh/sCPGxvisIv9sF7rjF3uJJSUKJHum //iWs1YBKWcBZvm+KNqLKZrfsnKZf62uMgXWZTyu5ImnRKq5RmjFu+QrBaUQXUkNo+/qts Vw1EueEva+2sh0b0NC5ChmVU9V7WTTXwpvcG699czj0Uo01eAY3JbrssIxZaIBrYl2Xw55 dG6XY7P6vznkbnrCGHhunNoVyUvwdHavX+MgMVMCOZBVIYfexh3uqkWc4L4pdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732710166; 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=prct/j4lYr5PhWh3GAlyOqKekIjLv1gc7FxDRSVv6kc=; b=ajpyh0K21dBMLGYHLgnCZW8jB/+QJA0wKVgjwfMXB4/Rr3qxT+pcs1azHv6ECR6KuVsJgh +gBREOtjBl3vcHCJC7o9/tuspXMEZN9GkyoolDoSL+l2dSB1kLKmr62w/NZD3cmNTJE9Zo uB40x4lN/c6vkZ/6PnpyfxfGkYuWoRlnSMk7QdDQ0XoYKuOred0e5s0TtjaVBdr5TBJ0Jw cse2nx771kaQxYr2H2i8UugrgXy+0D7tWPGGnkkTPTmR+8G9O3R0vXBk5OnUodBYR2FE/B lPpp25ZiQmyfBDPIyCG5Do+DmR5Xj5KDXOMRO7zbhdGXr18aR30KXT7Pu98CDQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732710166; a=rsa-sha256; cv=none; b=wSp05QzN+HGO+C9nl0eJ9UXnWiE1D8DBhrfRnNrmlbTrDJY8WdSETVYx0nrGqzUsB3AP3Q 4NnMfHtoGh4CM7ACYNZ30AGgNVXDNCI/IKF6e32AhPUVqeuKyqM/MHFsvuhdXSaokzQeIa CTkx95xJRJNUTtxdbDLkAOVl5DiNo7kKW8srgybAfbXo2+BWCE7caei+4Z5zrSFBkSASYQ TTB/Y2T2/X9eq3i4dT775efy3kIYBvXsb2dcHYbi1Pm82h3KNQof/BV25akVk2l8Cwex7/ fKAq+SMaI08l0tZR/4BR644gYLRy9/DE8NsTbFnghKdZDMWTUwq4McZOBonHAQ== 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 4Xyz9L0m6Rz18JX; Wed, 27 Nov 2024 12:22:46 +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 4ARCMkxt008475; Wed, 27 Nov 2024 12:22:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4ARCMkLK008472; Wed, 27 Nov 2024 12:22:46 GMT (envelope-from git) Date: Wed, 27 Nov 2024 12:22:46 GMT Message-Id: <202411271222.4ARCMkLK008472@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mariusz Zaborski Subject: git: 95498a5acc08 - main - colrm(1): Capsicumise List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: oshogbo X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 95498a5acc0888ed2e73237b82a1e90f109473f9 Auto-Submitted: auto-generated The branch main has been updated by oshogbo: URL: https://cgit.FreeBSD.org/src/commit/?id=95498a5acc0888ed2e73237b82a1e90f109473f9 commit 95498a5acc0888ed2e73237b82a1e90f109473f9 Author: Faraz Vahedi AuthorDate: 2024-10-27 09:01:01 +0000 Commit: Mariusz Zaborski CommitDate: 2024-11-27 12:22:50 +0000 colrm(1): Capsicumise Signed-off-by: Faraz Vahedi Reviewed by: markj, oshogbo MFC after: 1 week Pull Request: https://github.com/freebsd/freebsd-src/pull/1496 --- usr.bin/colrm/colrm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/usr.bin/colrm/colrm.c b/usr.bin/colrm/colrm.c index 7f758b9cfbc6..20bbd6e9a622 100644 --- a/usr.bin/colrm/colrm.c +++ b/usr.bin/colrm/colrm.c @@ -40,6 +40,8 @@ #include #include +#include + #define TAB 8 void check(FILE *); @@ -54,6 +56,10 @@ main(int argc, char *argv[]) setlocale(LC_ALL, ""); + caph_cache_catpages(); + if (caph_limit_stdio() < 0 || caph_enter() < 0) + err(EXIT_FAILURE, "capsicum"); + while ((ch = getopt(argc, argv, "")) != -1) switch(ch) { case '?':