NetBSD Problem Report #54892

From www@netbsd.org  Sat Jan 25 02:16:47 2020
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id D5C08D0AB5
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 25 Jan 2020 02:16:46 +0000 (UTC)
Message-Id: <20200125021646.071AFD0DD8@mollari.NetBSD.org>
Date: Sat, 25 Jan 2020 02:16:45 +0000 (UTC)
From: mforney@mforney.org
Reply-To: mforney@mforney.org
To: gnats-bugs@NetBSD.org
Subject: www/firefox sandbox blocks access to rest of pkgsrc prefix, preventing fonts from loading
X-Send-Pr-Version: www-1.0

>Number:         54892
>Category:       pkg
>Synopsis:       www/firefox sandbox blocks access to rest of pkgsrc prefix, preventing fonts from loading
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ryoon
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jan 25 02:20:00 +0000 2020
>Last-Modified:  Thu Feb 27 17:01:21 +0000 2020
>Originator:     Michael Forney
>Release:        pkgsrc trunk, 2020-01-24
>Organization:
>Environment:
Linux arrow 5.4.13+ #104 SMP Tue Jan 21 15:51:57 PST 2020 x86_64
>Description:
On Linux, firefox uses a seccomp-bpf sandbox to restrict access to various parts of the filesystem. However, only some locations for fonts are exposed, even though pkgsrc might be installed in some arbitrary prefix.

The result is that firefox fails to load any fonts at all, rendering placeholder characters instead:
https://mforney.org/firefox-bug.png
>How-To-Repeat:
Install firefox on an operating system that uses the seccomp sandbox (such as Linux). Note that there are a couple of other issues preventing firefox from building on Linux, I'll file separate PRs for those.
>Fix:
https://github.com/NetBSD/pkgsrc/compare/trunk...michaelforney:firefox-sandbox.patch

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->ryoon
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Thu, 27 Feb 2020 17:01:21 +0000
Responsible-Changed-Why:
Over to maintainer.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.