From nobody Sun Jan 29 19:39:28 2023 X-Original-To: chromium@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 4P4hTY06Mrz3btp2 for ; Sun, 29 Jan 2023 19:39:29 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4P4hTX5tC0z3Gb4 for ; Sun, 29 Jan 2023 19:39:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1675021168; 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=NsWfgj1EYusrJDcge5USkyuj+pjxfh74Lc+XgiMiRIA=; b=CRefKIxUaZF1HIFg4xQaMhQhYmmBdWIwe4qNqJS0X/WmpTewUqO5/91BPJwUiS1j7xoJ7S FETT/Rei2xkw2EAsbrhF8Uat8KC9YM26jYjh0u6NF9ytki5mxFN2NoHlG8UfSuygx4CdKE liV/FUW5qnG7knYmbeJjkiCQApW81PwiuYDWwPk5CCrjqceb2yPuQOBzJwd5WijCnq6f8L jArMln/cKdKMlClpPUT0bDbLfqWSHKjUT0XKUNN+QQuFUczluMJpwDLO6onAOwq2UENAdN GeQQ6jly5xKeTwL8Zx/scw3STQI0EgpVrZY/fKoIJnJGZ1AS+tcNqFAULqLYfw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1675021168; a=rsa-sha256; cv=none; b=czlGKwHNv3Z5SUjVOzIDQmnc4KJ4k3s/z3yqlN4GL2cQy9Wg4MnEK7ZlYQKeKK+wsJvgyU 6Kgeo9JawY6z4BPndPIl8zeIwLHUWvpUfSs3L76PU2F42odpvFX/fA7+BXi9HtH5vcIxB3 TafxeaGi+dKmcSY9K3x88SON9Gshp9gySmytAYRLNFiz+MIK+nk31C4uYm6fl0GAgj/tDt dsei/92yBcOcKQHp5w4L5WhBFyeFe01A6qZAc5Az3G0huOlY2hB1pGHl1zdDXAqTlfvhaL HHTgfCB0Sgzc4RBTwfQ7s3G4g7iwn7bkVT7C0o8WmW6unKbNCLSOeiGIFiWy3w== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4P4hTX4kyMzgfs for ; Sun, 29 Jan 2023 19:39:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 30TJdSO0045985 for ; Sun, 29 Jan 2023 19:39:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 30TJdS8A045984 for chromium@FreeBSD.org; Sun, 29 Jan 2023 19:39:28 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: chromium@FreeBSD.org Subject: [Bug 269234] www/chromium: Sandboxing cleanup and basic Capsicum support for renderer processes Date: Sun, 29 Jan 2023 19:39:28 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: sigsys@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: chromium@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD-specific Chromium issues List-Archive: https://lists.freebsd.org/archives/freebsd-chromium List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-chromium@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269234 Bug ID: 269234 Summary: www/chromium: Sandboxing cleanup and basic Capsicum support for renderer processes Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: chromium@FreeBSD.org Reporter: sigsys@gmail.com Assignee: chromium@FreeBSD.org Flags: maintainer-feedback?(chromium@FreeBSD.org) Created attachment 239789 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D239789&action= =3Dedit Chromium port basic Capsicum support The patchset already supports different backends for OpenBSD and FreeBSD sandboxing, but some files were still including the OpenBSD-specific headers and the preprocessor guards in the FreeBSD header were the same as the Open= BSD ones. So this patch clears that up. And it adds rudimentary Capsicum support for the renderer processes (which = IIUC should be the most important processes to sandbox). It limits the stdio FDs (important since they could be TTYs), but does not limit any other FDs. And tbh, I do not know what kind of FDs they could be passed and how dangerous their ioctls could be. But it seems to work without issues (so far) and sho= uld be better than nothing. --=20 You are receiving this mail because: You are the assignee for the bug.=