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.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 25886 invoked from network); 28 Mar 2021 05:36:30 -0000 Received: from lists.zx2c4.com (165.227.139.114) by inbox.vuxu.org with ESMTPUTF8; 28 Mar 2021 05:36:30 -0000 Received: by lists.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 7277de81; Sun, 28 Mar 2021 05:36:12 +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 459e05b4 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO) for ; Sun, 28 Mar 2021 05:36:09 +0000 (UTC) DKIM-Signature: a=rsa-sha256; b=h0S/OxHco2oTLOPhzV7HVh6zXnwfQRHAZPgbJ/IqYRouJOmebDk78xw42JGNbhAXbA9UifrizIR0jQ3UCcm2A5Tl4mGi+5Sw7PW/dtIyvkYLHTC7bel7xAzybYgjJxeU+35Mh06/z0TD0qOCfUwkqBqvG1KETty7s4rf2/mNtI4cl8XcHI/PQlTT+JklqGDFg33ufFP+NhS/rLjNS1FNzIFjuskfMcbYJHJSiKgKnKE9tqWCJQhlXpVdis5FSkmZUZ+92ao22K7qTYV+fTFbLJyHEaLmMcrYnxXGMHnFIIue6XYRigaEKkbrKBhnYqW+uJebGNxZds+Eb14sVgfVvw==; s=purelymail2; d=bydasein.com; v=1; bh=0A87ZU1rAvOxqhL+C3CEm/16foGGcqxGEi6xu7GKJLk=; h=Received:From:To; DKIM-Signature: a=rsa-sha256; b=KDTspN+1Um1BRGAqMt11/koTtcKVkrOOjtRmqUUF6PXJQKK/EqqWxJuxahxcVDNr+YaFkZ+c4YkgRMvQ1fLzq8iheCjF02bIb/U7nEmJjGKVUPAThu8J4jtfgI8+/2rDCsXmicnrhoqD4jTv8zc2ozwVefUoThFrQURdxs27WAVjk7vpaVc3TN8eyCW1mptfb8M9sxDxvQbgsDLdvj78cH4fetd0b4cWIxB1oiV97fDNoje481EawkoxLOl4DfztoM2nNqsQFRf4dwfz1s9aW+dysO9FugXF0O2BESj/oWSCnj/7/5IcoBphO+LyuwCps/rqdyZREMGlUdye/enZZQ==; s=purelymail2; d=purelymail.com; v=1; bh=0A87ZU1rAvOxqhL+C3CEm/16foGGcqxGEi6xu7GKJLk=; 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 1534648520 for ; Sun, 28 Mar 2021 05:35:55 +0000 (UTC) MIME-Version: 1.0 Date: Sun, 28 Mar 2021 15:35:55 +1000 From: "Paul W. Rankin" To: cgit@lists.zx2c4.com Subject: about-filter in chroot on OpenBSD (httpd + slowcgi) User-Agent: Purely Mail via Roundcube/1.4.10 Message-ID: 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" Hello, I'm running cgit on OpenBSD with httpd + slowcgi and can't seem to get the about-filter to work. Both httpd and slowcgi run in the default chroot of /var/www. I've compiled lowdown with "-static -pie" to /var/www/bin/lowdown (chroot /bin/lowdown) with permissions: -rwxr-xr-x 1 root bin 1325512 Mar 4 01:38 /var/www/bin/lowdown In my cgitrc (cgit.conf): about-filter=/bin/lowdown readme=:README.md However, upon visiting an About page of a repo that includes a README.md, I get only a blank page and the following is logged in error.log: lowdown: README.md: No such file or directory Here's the cgit server section in httpd.conf: server "git.bydasein.com" { listen on * port 80 listen on * tls port 443 root "/cgi-bin/cgit.cgi" tls { certificate "/etc/ssl/bydasein.com.fullchain.pem" key "/etc/ssl/private/bydasein.com.key" } location "/.well-known/acme-challenge/*" { root "/acme" request strip 2 } location "/robots.txt" { root "/htdocs/git.bydasein.com" no fastcgi } location "/favicon.ico" { root "/htdocs/git.bydasein.com" no fastcgi } location "/cgit.css" { root "/htdocs/git.bydasein.com" no fastcgi } location "/custom.css" { root "/htdocs/git.bydasein.com" no fastcgi } fastcgi { socket "/run/slowcgi.sock" param CGIT_CONFIG "/conf/cgit.conf" } } I'm pretty sure I can have this work if I disable the chroot in httpd and/or slowcgi, but I'd prefer a solution that doesn't require that. Does anyone have any ideas? Has anyone managed to get cgit running on OpenBSD using httpd + slowcgi with chroot enabled? Thanks for your time :) -- Paul W. Rankin https://bydasein.com The single best thing you can do for the world is delete your social media accounts.