From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.9 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,URIBL_BLACK autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 16069 invoked from network); 28 Mar 2021 09:06:44 -0000 Received: from lists.zx2c4.com (165.227.139.114) by inbox.vuxu.org with ESMTPUTF8; 28 Mar 2021 09:06:44 -0000 Received: by lists.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 0d746e48; Sun, 28 Mar 2021 09:06:28 +0000 (UTC) Return-Path: Received: from sendmail.purelymail.com (sendmail.purelymail.com [34.202.193.197]) by lists.zx2c4.com (ZX2C4 Mail Server) with ESMTPS id 0daf2038 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Sun, 28 Mar 2021 09:06:26 +0000 (UTC) DKIM-Signature: a=rsa-sha256; b=Mura5OauwnRStuThTYzeNgn6pWsmAJRgxIi0558Z83zVsuz6SItp4FhXFWUUslcmAKKj1JQk/nXOLR3N52MNgBGgXxZIQ+tBh+0XXRu08n5gc9hI0ARHK0m0czM+r+UzXduqJtzWbiVlDEVk6IhTr3e4lXdIvPgtkmHGBxUCvNbvPgqI3ZdGzGSZr8hCNcBsgCm2FC/1BtTqiJFld5oIIvlZtd2wpKSAB8h2IE9StGR1mbkfgzGELWwGCMuQssFnoit4YZJo1if7AbqcZrPWeYM7PUKkFEjLbxsb7XnOCnXluUzNl9YYKumnuQnmH/a5wfM4VdTD479NSY5y3MgCvw==; s=purelymail2; d=bydasein.com; v=1; bh=fo1WaDPbA+gx73t0ZDF6LgrawfWWhjaz8pj7Xr7Pu8s=; h=Received:From:To; DKIM-Signature: a=rsa-sha256; b=LBjNn7SFdmHhlXY94hj+IyRSRhj9aPlSfefZLuB//IOGi5ieDrVbn05h2sXC37alVIJINRW6VA+2yfSuoR0rm8o8sQp+RE3bHTUruZhkpESAe1JmEUXbt3rUpdufAh6NRJxv94eyKa9aRYf9PpktLzlAJ47ufn7qwY03SCDHrU5Wzu9PLhYPljuoHuxdPiW39v3COiLSSSeN+Oibvp3dK977CXn4ghZ78Q4swl4/E7cVdYJRnKXeh9rVz0Xba3OaCskTZYy7diGJEupPwbaCYJQadpw9/+ukHA1P5iJxr8fBr4CcHNH1QPSNZMv8QIxCrfBrwgQxnF3rE94jUEudIQ==; s=purelymail2; d=purelymail.com; v=1; bh=fo1WaDPbA+gx73t0ZDF6LgrawfWWhjaz8pj7Xr7Pu8s=; h=Feedback-ID:Received:From:To; Feedback-ID: 791:353:null:purelymail X-Pm-Original-To: cgit@lists.zx2c4.com Received: by ip-172-30-0-247.ec2.internal (JAMES SMTP Server ) with ESMTPA ID -1433555422; Sun, 28 Mar 2021 09:05:51 +0000 (UTC) MIME-Version: 1.0 Date: Sun, 28 Mar 2021 19:05:51 +1000 From: "Paul W. Rankin" To: Oscar Najera Cc: cgit@lists.zx2c4.com Subject: Re: about-filter in chroot on OpenBSD (httpd + slowcgi) In-Reply-To: <87sg4fpulm.fsf@oscarnajera.com> References: <87sg4fpulm.fsf@oscarnajera.com> User-Agent: Purely Mail via Roundcube/1.4.10 Message-ID: <7aea255f48d681ed9d36dca28f5ffa05@bydasein.com> X-Sender: pwr@bydasein.com Organization: By Dasein Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: cgit@lists.zx2c4.com X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: List for cgit developers and users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: cgit-bounces@lists.zx2c4.com Sender: "CGit" On 2021-03-28 18:09, Oscar Najera wrote: > Paths are absolute on. Try > > about-filter=/var/www/bin/lowdown Thanks Oscar, but cgit is running in chroot at /var/www so this path would become /var/www/var/www/bin/lowdown. This is now solved. I was making two mistakes; the first is that about-filter doesn't want an executable to do the conversion, it wants a the command to pass to do the conversion. The second is that my script was #!/bin/sh but sh wasn't in the chroot, so I needed to copy the sh binary into /var/www/bin. But with some help from the OpenBSD list I was able to make a little static C program that works: #include int main(void) { execl("/bin/lowdown", "lowdown", NULL); return 1; }