From owner-svn-src-head@freebsd.org Tue Nov 15 00:24:52 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7BB2EC3051E; Tue, 15 Nov 2016 00:24:52 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-it0-f50.google.com (mail-it0-f50.google.com [209.85.214.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D1BA172E; Tue, 15 Nov 2016 00:24:51 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-it0-f50.google.com with SMTP id c20so114787472itb.0; Mon, 14 Nov 2016 16:24:51 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc:content-transfer-encoding; bh=s5CjC13FyqoRLbIhTqGXPOawNEQBJfXtChayI9C03mI=; b=RZIw5o/P3INcoa/Z30qgu7sfmzzxgv/Wdr9lfXD83JCawtiQCgKLbFbHBM6H+ieqsd seN/rEovZL/3JrzBgrbJNuIlN8U3HOhTiXSPSI244aNQa76i/jufNq/4nXkl7it2h9gO YdV80XplvsRSpDsM3UEVbelBZ0rv/jW+3Y8cFEP5ljj+0wAZ+ilXddVqwKy2++Cp6OvO CjMhgBpuQeEBTAxjtxqySdeGDZAXzbl8eNHF75DOiIAUJPoxQpiUmfHBt3Rfnf7FJTIf wW8uXN3bqZ1lOnFaKg7wL1jfp967BSbFUx8u5SM2FqoIfeLxYFRDZLYHOKZK6tjwzk6j ZcLA== X-Gm-Message-State: ABUngvcr7vhKhoWoPZgV2JMfrUZend/+E3mwV6EPlKsrNqsIJj2pvjz1sbLeQMaY3VEq0A== X-Received: by 10.107.130.197 with SMTP id m66mr26344688ioi.38.1479169490388; Mon, 14 Nov 2016 16:24:50 -0800 (PST) Received: from mail-it0-f49.google.com (mail-it0-f49.google.com. [209.85.214.49]) by smtp.gmail.com with ESMTPSA id l74sm463352ita.15.2016.11.14.16.24.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Nov 2016 16:24:50 -0800 (PST) Received: by mail-it0-f49.google.com with SMTP id q124so136363359itd.1; Mon, 14 Nov 2016 16:24:50 -0800 (PST) X-Received: by 10.107.16.170 with SMTP id 42mr26524135ioq.93.1479169490130; Mon, 14 Nov 2016 16:24:50 -0800 (PST) MIME-Version: 1.0 Reply-To: cem@freebsd.org Received: by 10.36.220.199 with HTTP; Mon, 14 Nov 2016 16:24:49 -0800 (PST) In-Reply-To: References: <201611080531.uA85V2DL025382@repo.freebsd.org> From: Conrad Meyer Date: Mon, 14 Nov 2016 16:24:49 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r308432 - in head: bin/echo bin/sleep usr.bin/basename usr.bin/dc usr.bin/dirname usr.bin/fold usr.bin/getopt usr.bin/locate/bigram usr.bin/logname usr.bin/printenv usr.bin/yes To: =?UTF-8?B?SmVhbi1Tw6liYXN0aWVuIFDDqWRyb24=?= Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Nov 2016 00:24:52 -0000 On Mon, Nov 14, 2016 at 5:25 AM, Jean-S=C3=A9bastien P=C3=A9dron wrote: > On 08.11.2016 06:31, Conrad E. Meyer wrote: >> Author: cem >> Date: Tue Nov 8 05:31:01 2016 >> New Revision: 308432 >> URL: https://svnweb.freebsd.org/changeset/base/308432 >> >> Log: >> Capsicumize some trivial stdio programs >> >> Trivially capsicumize some simple programs that just interact with >> stdio. This list of programs uses 'pledge("stdio")' in OpenBSD. > > Hi! > > fold(1) is broken after this commit: > > fold -s src/rabbit_ctl_usage.erl.tmp2 > fold: src/rabbit_ctl_usage.erl.tmp2: Not permitted in capability mode > > I don't know how Capsicum works, but fold(1) works with files in > addition to stdio, so perhaps caph_limit_stdio() is incorrect for this > program. Hi, Yes, this program is incorrectly capsicumized. My mistake. I have reverted the change to fold(1) in r308657. Thanks, Conrad