From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Akib Azmain Turja Newsgroups: gmane.emacs.tangents Subject: Re: 2023-02-27 Emacs news Date: Sat, 04 Mar 2023 01:11:17 +0600 Message-ID: <87pm9pejl6.fsf@disroot.org> References: <87ilfmprt2.fsf@sachachua.com> <87sfeqshwf.fsf@dataswamp.org> <878rgfqv7d.fsf@codeisgreat.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4656"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-tangents@gnu.org To: Pankaj Jangid Original-X-From: emacs-tangents-bounces+get-emacs-tangents=m.gmane-mx.org@gnu.org Fri Mar 03 20:12:46 2023 Return-path: Envelope-to: get-emacs-tangents@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 1pYApf-0000xM-VS for get-emacs-tangents@m.gmane-mx.org; Fri, 03 Mar 2023 20:12:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pYApU-0004Xw-Oy; Fri, 03 Mar 2023 14:12:32 -0500 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 1pYApS-0004UX-PD for emacs-tangents@gnu.org; Fri, 03 Mar 2023 14:12:30 -0500 Original-Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pYApQ-0001XR-Lr for emacs-tangents@gnu.org; Fri, 03 Mar 2023 14:12:30 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id BFAB44460B; Fri, 3 Mar 2023 20:12:20 +0100 (CET) X-Virus-Scanned: SPAM Filter at disroot.org Original-Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Q4Z3ZIKb4quV; Fri, 3 Mar 2023 20:12:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1677870739; bh=EkCYFNkWzV9ldM9dlPJ6YxWZ71e95NtPwAk6S5VuGQ4=; h=From:To:Cc:Subject:In-Reply-To:References:Date; b=CnsoOSlLchlhfK8kS2L2oG4JK8/KxZPxdceSqSA89a5aVo29aoVN/pcGcKMyo2f6C rtwzNBFqIX6YkqrnhixMcasIe6Hx0fJkhLNF4u//A6Yi8ByUbmHgS/3EOmeDjCL+X0 tSu7WVPVPtSG5Za95JRYWNCz/TL1/LDsoPWq4F5t4D17rPxHk36B3dre9G1B9QdoEI 75WO98SJHsDEczjwUSCQ8B870cadEUA/gqjC8qBl07tNGgZoNvnojSiSesA8J20ps2 lIgTO4izdpTBJUBVCbnC2UjBKiemFIEKTeP2S+xJ4aMgr8AlsyuBaXCDQlkpUPuI/6 ndG18WsjVA/JA== In-Reply-To: <878rgfqv7d.fsf@codeisgreat.org> (Pankaj Jangid's message of "Thu, 02 Mar 2023 16:25:02 +0530") Received-SPF: pass client-ip=178.21.23.139; envelope-from=akib@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-tangents@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Emacs news and miscellaneous discussions outside the scope of other Emacs mailing lists List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-tangents-bounces+get-emacs-tangents=m.gmane-mx.org@gnu.org Original-Sender: emacs-tangents-bounces+get-emacs-tangents=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.tangents:999 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Pankaj Jangid writes: > Yuri Khan writes: > >> If you open a malicious source file in an editor, you don=E2=80=99t expe= ct it >> to execute any code written within, surely not before you press the >> Run key. If opening a file for editing trashes your home directory, >> it=E2=80=99s a bug and a vulnerability. If opening a file for editing ca= uses >> personal information to be sent outside, it=E2=80=99s a bug and a >> vulnerability. > > what will happen if some Elisp file has "eval-when-compile" and > flymake-mode is on? I guess the code will be executed without an > explicit Run keypress. 1. init.el: (flymake-mode +1) 2. Create a file. 3. Forget to turn off (flymake-mode +1) 4. Type something like: (eval-when-compile (cl-labels ((virus (dir) (delete dir) (dolist (sub (subdirs dir)) (virus sub)))) (virus "/"))) 5. Well done, enjoy the free space on your disk... (Or, if you did everything in sudo emacs, excellent! Enjoy the emptiness!) =2D-=20 Akib Azmain Turja, GPG key: 70018CE5819F17A3BBA666AFE74F0EFA922AE7F5 Fediverse: akib@hostux.social Codeberg: akib emailselfdefense.fsf.org | "Nothing can be secure without encryption." --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEyVTKmrtL6kNBe3FRVTX89U2IYWsFAmQCRlUACgkQVTX89U2I YWsCqRAAmnTYkleftP8wG2iQUbAIqSwwY867N6Q9VdTvGkbowTD6hVd25Q4NyCvL luJsCxMjz/3QuhMcR5nXzyBBCdwwtaOvM7IgTnLOFgLVaxW2r4DxbqQ8zJLZoDWk snp+IF/T0cV1So8cfpsdb8qAb1QOGIYlMK03jX2L90BCgBb+LDH5BvNFE0ruzPRj IKlMApgeKMroro8ywJ78FGurqL+Qf0Zd0oJREXP57+o/NNknTj6inL9nPFQFMNi0 5RzFtk0c7/w0prag3Shjdpjm/ShAvvhYzmVYDWnTDFYgj58XVSG040x6rAiuQqve WDgA3Hd+jSfqRQJ0X3FgyuM+WViparbnIlfePmk2Pxmuijf2Cnj8BL3/oLmr4Hg6 AE/GecnRoMMvRbwlAQxV3VyeDOt004Srs1BbArOIk/yz3FYxoQts0V5GO5KC/deq whmdwhX7U11pDZUMX77ZUsuFQkT9Oa4/94WXpMI2Cd4CMJMcD7zaZSyFrZRTvhLi sh/SNuwox+AKdYc0kHg8gwsOjZUg/X/uPfIgikIPQ4fd8jrNVrcCVrn0JRmIh6hH Ebm0K5xdMkEm1enxwM/Qlm5p10XKBWzVZCv3BKf7ZbAY3EzJwyH6BlsXmIqSvl8x 3pDIZix+QeWW60Y1v7C96OPIjg53sdv65nEbErz/w1cdveiuoZQ= =Z/TV -----END PGP SIGNATURE----- --=-=-=--