From nobody Tue Nov 26 20:20:23 2024 X-Original-To: dev-commits-ports-main@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 4XyYpv1xHyz5dxmb; Tue, 26 Nov 2024 20:20:23 +0000 (UTC) (envelope-from git@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XyYpv1FFDz44NX; Tue, 26 Nov 2024 20:20:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732652423; 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=LgNOwcbDulXW66jZOd61E50stSq31DSTbIlkeGicl0o=; b=tlnIx9hN6pILXLux78oE8hS2zf0XFA3mHiPAklIkUB/TS/wBh4w3Pp7kfISkdABK4TEwzY aAhzCupXEv0LbStSnBX8XxpLOYctmDgP4Jz6qlZGO28UT9deRitZf2qOFJn3v4DGo+3CMW dYf93o5GYVJaHx6Y03PwMkXM+pP5ctiUYmvszV8eO1dKuWqmVufH67cC+Dlhi/5L1G9P9K HOLgm0t1EZxkD2PX1bXZkepcduVeNX3YOA/FehdzJjEf6TcLrNvjz8hPhDu7gsEdZBkrzS 41JH13QwBixExxMNEvvs2MuEOvmnm6dRdJxAQRF4Suv1tkmeccKeKZ0PGO8q8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732652423; 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=LgNOwcbDulXW66jZOd61E50stSq31DSTbIlkeGicl0o=; b=jrIm8nY8YM3Tmhux6z5rZWhIiyFzzZBZHEf20/nFsQC4ZLf/hjVBYc29HhAeWvTHJmYjgo m5UqMEGL/2NztmHG+ssG7DCTJdMOEAeiuTV8iTAOo2U26GIMzJvZ2tQwgR7cxOv2uNZTEV fszH7hmhGuHib+/+AdzcIvFuMu6yXsQxVVgQo40WKdDfl2ImFi9B6ECBPy2gQirrtgpb7v 1mhqjcJ8bKPHUycFcfiP3+3xpK/p462QILtcY1w8SwtpbNRdTX/x8yGSmDUr5CGy3ivo4Y dloOwvALtEbh4dPQI4y5ODvAH0Zw2pjrPL2X85/Dzlqvn5f1knpq3i+aPJ2U/g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732652423; a=rsa-sha256; cv=none; b=bV/fh45WALavAvJC3Ydhrms7MB+pL1Lnh1rowVSWzVJp3OKPQW+GL60jRDDWhtHjncNy44 Kt0mC2TeWZlvuABN1kGAYeESUcnUUHMb3SbLJXN/ORrpacuKOD3k+IxuP5QqykI3uv4Pi5 oT39230iYhpUHt8mTpBZIni1VFAkwT5VM/fAdC4oT1BpxG8bRepvlUB5oTtDUJurF+A7ag xIwPyvipRY4Xvi80XTp7Lxr1Cui9QFmHk/06a8kB/HxJcvq1GLMI3Ew37azmuMbX/IoLQ2 XGd2vMwhiw7kpfUsMUoMC29/j1J8GvSKtau6iSD5q6OkrKOb1wCClts2ZrEHNA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4XyYpv0rjQzf2Z; Tue, 26 Nov 2024 20:20:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4AQKKN7P007970; Tue, 26 Nov 2024 20:20:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4AQKKNww007967; Tue, 26 Nov 2024 20:20:23 GMT (envelope-from git) Date: Tue, 26 Nov 2024 20:20:23 GMT Message-Id: <202411262020.4AQKKNww007967@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: "Sergey A. Osokin" Subject: git: a90aad5b6a21 - main - www/unit-wasm: both read and write permissions are required List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: osa X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a90aad5b6a213ecd9d4412e555a21a532be4a52b Auto-Submitted: auto-generated The branch main has been updated by osa: URL: https://cgit.FreeBSD.org/ports/commit/?id=a90aad5b6a213ecd9d4412e555a21a532be4a52b commit a90aad5b6a213ecd9d4412e555a21a532be4a52b Author: Sergey A. Osokin AuthorDate: 2024-11-26 20:19:51 +0000 Commit: Sergey A. Osokin CommitDate: 2024-11-26 20:20:17 +0000 www/unit-wasm: both read and write permissions are required Bump PORTREVISION. --- www/unit-wasm/Makefile | 2 +- www/unit/files/patch-src_wasm_nxt__rt__wasmtime.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/www/unit-wasm/Makefile b/www/unit-wasm/Makefile index f919d9be0dc9..73ccfd59cdfc 100644 --- a/www/unit-wasm/Makefile +++ b/www/unit-wasm/Makefile @@ -1,5 +1,5 @@ PKGNAMESUFFIX= -${UNIT_MODNAME} -PORTREVISION= 3 +PORTREVISION= 4 UNIT_MODNAME= wasm diff --git a/www/unit/files/patch-src_wasm_nxt__rt__wasmtime.c b/www/unit/files/patch-src_wasm_nxt__rt__wasmtime.c index 702c2f4fdda5..9798c0438bd5 100644 --- a/www/unit/files/patch-src_wasm_nxt__rt__wasmtime.c +++ b/www/unit/files/patch-src_wasm_nxt__rt__wasmtime.c @@ -6,8 +6,8 @@ for (dir = ctx->dirs; dir != NULL && *dir != NULL; dir++) { - wasi_config_preopen_dir(wasi_config, *dir, *dir); + wasi_config_preopen_dir(wasi_config, *dir, *dir, -+ WASMTIME_WASI_DIR_PERMS_WRITE, -+ WASMTIME_WASI_FILE_PERMS_WRITE); ++ WASMTIME_WASI_DIR_PERMS_READ|WASMTIME_WASI_DIR_PERMS_WRITE, ++ WASMTIME_WASI_FILE_PERMS_READ|WASMTIME_WASI_FILE_PERMS_WRITE); } error = wasmtime_context_set_wasi(rt_ctx->ctx, wasi_config);