From nobody Mon Jan 22 12:03:25 2024 X-Original-To: freebsd-hackers@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 4TJTQL1rPgz57mFV for ; Mon, 22 Jan 2024 12:03:38 +0000 (UTC) (envelope-from theraven@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TJTQL1PGLz4ng3; Mon, 22 Jan 2024 12:03:38 +0000 (UTC) (envelope-from theraven@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705925018; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=A4dMCbOgtT+oHH1NRfV+PMEo5D6BekwUAYQwhDHqNFs=; b=WdHNHNoZgJ+xXyiSr9asUOfLIdVcpKNAFB1vWh6xXJ4p/BUUW5Au5Yrc2X8RC/cuSDZBFn wEIWikqHd60uZibGuN8486iqFNzEh41Q8OF2hGGx/vTeTdIl7/oFHoH+qorQzq6u3Qw33C 29V3erumA++6p9ybGaTaNr5bUG4BbpAbesQCUj3OveTOVZgU35GFyvWncImKVvv6sW68Me OiETFi4VNGpnmbPPIt0YZXgCKAMJnqqiSFYw7SRh6mQSUPUoiQ3+KFMg3/U9eUMzbVdnUb FktnDLha740hZh/esGJqD9WUBMF4ltAzB2cE4pvpe6sctI6WEAb5dXHWHCjQ7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705925018; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=A4dMCbOgtT+oHH1NRfV+PMEo5D6BekwUAYQwhDHqNFs=; b=adxbLGFn0y4XHZRHwQd+usMX4OgbL18+zJZQywxU66R7CpU5GIrLfSCo/F3IEGBiHYOaFB NbMLGN9pOWpWVPsj6rKhqdn/b6fzoWUqRyH3nWO4gGOwTn4HBdvl2orAU0bjdtATXYEC36 w7u5WNriCro+9mhpFOxV3csYPQuA43jh6CsJApiLbH0ajjc2tvlJCvzkEvcuJ3QKdttLzl IMAfIwNmcm1GF0sPX9bzOTJj6eauyl8+pqaWUspTKuU2VhOFqdQa6zg+zpzitvU3B4yFmQ cmPJJO+06YqVE4nygn6y9HcVREXFIVxUaaCNPU2xcIlQU+z2kv/i4t+8zfmn5w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705925018; a=rsa-sha256; cv=none; b=IqgjT0/DvXU+B0kTM/Qrw0xIP9t1Yuh/f0dBmiKa2yzRBVjKLNENNlOvWX629HAdXwqCAY pfn7MDMC7dyvRuN720e9LwXmW4yre9XAL5ROu6191rWMGxYcrNtw4Sv3A4kL0pLMLqRhS2 Ssf3+urJm5wF0VJhsxhKsFthY0g+1fCj2GIsiisG9TEwfyv2iHAoXPhVDzXv4S1c0NVjnZ cP0UsvN8H9X7Z1U+rktIScTzxcSi9Tt4W92M73GItxnjsRu1CJudc7g+RwPhiPGcNDy+TS VCYG8NkVQLE92m+gNswxdn+2lcoCOAskRzv5LkMB3C+j4FMfFvznBntI2ygc1Q== Received: from smtp.theravensnest.org (smtp.theravensnest.org [45.77.103.195]) (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) (Authenticated sender: theraven) by smtp.freebsd.org (Postfix) with ESMTPSA id 4TJTQL0LQkzZcY; Mon, 22 Jan 2024 12:03:38 +0000 (UTC) (envelope-from theraven@freebsd.org) Received: from smtpclient.apple (host109-153-95-118.range109-153.btcentralplus.com [109.153.95.118]) by smtp.theravensnest.org (Postfix) with ESMTPSA id E4317BF24; Mon, 22 Jan 2024 12:03:36 +0000 (GMT) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable From: David Chisnall List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org Mime-Version: 1.0 (1.0) Subject: Re: The Case for Rust (in the base system) Date: Mon, 22 Jan 2024 12:03:25 +0000 Message-Id: <984FC02D-61A8-4296-8BFA-2BDF4873A31C@freebsd.org> References: <202401221046.40MAkKGX075486@critter.freebsd.dk> Cc: Alan Somers , George Mitchell , freebsd-hackers@freebsd.org In-Reply-To: <202401221046.40MAkKGX075486@critter.freebsd.dk> To: Poul-Henning Kamp X-Mailer: iPad Mail (21C62) On 22 Jan 2024, at 10:46, Poul-Henning Kamp wrote: >=20 >> I'd love to see a default that anything intended to run with >> elevated privilege is written in Lua. >=20 > Can you elaborate that one ? >=20 > Do you mean "setuid programs" or "500 root programs" ? Anything that starts from an init script as root (or with otherwise elevated= privileges) or is typically invoked by root and does not call cap_enter. David