From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#66245: [PATCH] ; Silence macOS 14 warning Date: Fri, 29 Sep 2023 12:11:50 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25108"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 66245@debbugs.gnu.org, Alan Third , Eshel Yaron To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 29 12:13:17 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qmAUn-0006OK-7h for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 29 Sep 2023 12:13:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qmAUO-0005qU-P9; Fri, 29 Sep 2023 06:12:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qmAUM-0005pw-5M for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2023 06:12:50 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qmAUL-00081W-Sn for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2023 06:12:49 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qmAUZ-0006Of-1i for bug-gnu-emacs@gnu.org; Fri, 29 Sep 2023 06:13:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 29 Sep 2023 10:13:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66245 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 66245-submit@debbugs.gnu.org id=B66245.169598235924536 (code B ref 66245); Fri, 29 Sep 2023 10:13:03 +0000 Original-Received: (at 66245) by debbugs.gnu.org; 29 Sep 2023 10:12:39 +0000 Original-Received: from localhost ([127.0.0.1]:55390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmATy-0006NL-Rr for submit@debbugs.gnu.org; Fri, 29 Sep 2023 06:12:38 -0400 Original-Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:59476) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qmATm-0006N1-Gn for 66245@debbugs.gnu.org; Fri, 29 Sep 2023 06:12:19 -0400 Original-Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-32336a30d18so5887499f8f.2 for <66245@debbugs.gnu.org>; Fri, 29 Sep 2023 03:11:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695982312; x=1696587112; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=XHkQ0tZydjQHanAR1iiXQrkOBtBjgb5dqZ0nRR1N5W8=; b=f6AFz7QZhsPE14idrk1MS27TB1C4W9Gl85kLxmEoWH5XotZv6t4tXnIkgInCEuuJga DPCvyVa3CNZPnbUo0MtSE3GC9AaSWC2g2NDo/Gt9FhW4AinBhnBr3LD417HJYqI0uqKY RrdB5dXajtXeuxtVyXJuAlr0cz9tgy1aQnh+XHl0gU0Fi/bJdsKuJSvXzmFTCdEsqYAG I+vZ0gq+9NCw/kGHY5f9GQKKqMw6OoyIKeq15TJR7zglevcJQG+2yBqiBxLLjEnCauT+ vBeYPSkQzUaTgMyCTYItNBCe0twzEhh7o+IbzoK412e7jYwgQXs1S3AKbTwK82WybSSH 3P4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695982312; x=1696587112; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=XHkQ0tZydjQHanAR1iiXQrkOBtBjgb5dqZ0nRR1N5W8=; b=i24FrC+IaY8CnhoqPcgEMKQtMnBbuk6D+7uS8h+nNceFjZ45Q7JxgvdxyUTWhrQCBm JuP3N2Eo21Kw/4pTd9bji76RmdxgQgomblqgf1Ku8tYeNWYowypte/PgI1xwGzsBDwVl NlS6Y9shhQWj/dRGRfgXXnoo8LxtFPQNi545rOBQVcCMvYPLtcBpTYTGnBxlSK20RtB0 rahm0hxh5izTtyRo5kgR2fxM55pMSWq7dlnQYx4Mc3gvLH40U5X5hsIDqOsnadCBUKXd KUz+TPgnKSKCsjH07toXJjMyB4VpkPI3Hx7Qr8u/BbqJ5/dvulJa3hoAXhk1YaUJpmZ+ wL8g== X-Gm-Message-State: AOJu0YyTOo6sVSIRt/G+Tp0aJSaGRgJ8sREu+7XwlxPFHlpAz0zKC0pk ck3+91XztNJgEYUgmnLXxIQ= X-Google-Smtp-Source: AGHT+IEU88CAs4PQ0wI8HOGDlR4m4zVKAArjBCI2Hpd8tARYeu021T8F/fatHWrUOuR7zvw0g93G0w== X-Received: by 2002:a5d:5902:0:b0:31f:fd9c:8ee8 with SMTP id v2-20020a5d5902000000b0031ffd9c8ee8mr3880868wrd.38.1695982311478; Fri, 29 Sep 2023 03:11:51 -0700 (PDT) Original-Received: from Pro.fritz.box (p4fe3ae09.dip0.t-ipconnect.de. [79.227.174.9]) by smtp.gmail.com with ESMTPSA id d12-20020adf9b8c000000b003233a8b425esm7408266wrc.115.2023.09.29.03.11.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Sep 2023 03:11:50 -0700 (PDT) In-Reply-To: (Stefan Kangas's message of "Fri, 29 Sep 2023 02:38:29 -0700") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:271478 Archived-At: Stefan Kangas writes: > Gerd M=C3=B6llmann writes: > >>> Without this code, are we enabling malicious processes to escape the >>> macOS sandbox, and gain the same privileges as the Emacs process? >> >> Well, not that drastically... From the release notes of macOS 12 Appkit >> (we're now at 14). >> >> https://developer.apple.com/documentation/macos-release-notes/appkit-rel= ease-notes-for-macos-12?changes=3Dlat__5_3 >> >> Restorable State >> >> To enable secure coding for a restorable state, implement >> applicationSupportsSecureRestorableState(_:). When opted in: >> >> The system requires classes passed to restorationClass to >> explicitly conform to NSWindowRestoration. >> >> ... >> >> I understand that as meaning that this switches on additional checks in >> Appkit. That should be okay for Emacs because it doesn't use this >> feature of Appkit, at least AFAIK. > > Thanks. IIUC, that seems to speak in favor of not making an emergency > release of Emacs 29.2 at this point. I agree. The new method would just enable "secure coding" for restorable state on macOS < 14 (it's the default in 14), but since we're not using this stuff to begin with, it's kind of pointless.