From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Deus Max Newsgroups: gmane.emacs.devel Subject: Re: Tramp and crypted files Date: Fri, 29 May 2020 19:33:02 +0300 Message-ID: <87r1v2em69.fsf@aia00820.aia.gr> References: <865zd1h3ru.fsf@duenenhof-wilhelm.de> <875zd15rze.fsf@gmx.de> <87wo5gjfbr.fsf@gmx.de> <87eermkdov.fsf@gmx.de> <87r1vlipg4.fsf@gmx.de> <86lflrttxn.fsf@duenenhof-wilhelm.de> <874ksdhdmp.fsf_-_@gmx.de> <87h7wcwbn9.fsf@aia00820.aia.gr> <87lfloou9y.fsf@gmx.de> <874ksbvwn0.fsf@aia00820.aia.gr> <871rn7rgtv.fsf@gmx.de> <87367kfbwa.fsf@aia00820.aia.gr> <87a71ryubz.fsf@gmx.de> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="100567"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org, Deus Max To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 29 18:37:16 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jei0S-000Q2w-EN for ged-emacs-devel@m.gmane-mx.org; Fri, 29 May 2020 18:37:16 +0200 Original-Received: from localhost ([::1]:35468 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jei0R-0006lX-9c for ged-emacs-devel@m.gmane-mx.org; Fri, 29 May 2020 12:37:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60640) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jehwc-000753-6a for emacs-devel@gnu.org; Fri, 29 May 2020 12:33:18 -0400 Original-Received: from mout.gmx.net ([212.227.17.20]:33133) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jehwY-0002XQ-Bg for emacs-devel@gnu.org; Fri, 29 May 2020 12:33:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1590769989; bh=CSuZRLRFkx4vIlc5R/2gHfd6cUS71JP3xRsBz+6M9kM=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=PSOxO7pj+OxTSnYrISDyT3/e7lqPYwBAHHtlGxplUK+XwN13CyaKtrWye5zK3YY0P 2yOdQ/wZgubnb30WSeX8NN8GtmS7vCiCCJuBY9fnI8qHoROuPy5wz2hQIqkjj45QxX mnRCkHYnsDOexb6cs8XCXOaAgzpHuZ+CapsimSZs= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from aceraspire5 ([46.176.158.134]) by mail.gmx.com (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1N4zAy-1ixzG43okG-010sZP; Fri, 29 May 2020 18:33:09 +0200 In-Reply-To: <87a71ryubz.fsf@gmx.de> (Michael Albinus's message of "Fri, 29 May 2020 11:16:32 +0200") X-Provags-ID: V03:K1:vtaYxailt2f6vIQLU7MchiBC35Aqd4RsUDCzUwVtP7W2FW+QSYW ENkR/m8qTC+1AlVm7RLZuxVh/Whx4U20xXOhOv0EGc/tCbxfKV8tG/SZS6CoEKwm3dSnVxP rB7ZB4T0WsYCoL8FmMwxnyuwDxLRfHyV8SDdzRc++XvASmI0/nYzYVZU0Pykpr7B9OXhfyK Ia5370NfTyo8pukPuOV0A== X-UI-Out-Filterresults: notjunk:1;V03:K0:9NXUQWLjEAo=:AJQky4T0t/HCGS9LR5vAPi bH9qzOkgudG9KMCuxPhizH2Mljmxgz1Ag3JMH0+ngJwKfEaMGjPzkiYlQro6qdinWvhgjGkJF Ih6JUANXnFcQnui3N1x2NGdF7y0f6lFKVs9C4a3o//sUGDLmyWtJRWa758i7uwLNYhl9ap/6J rsbZN7qX3gXPB4XUzB65kb0oUAEfB58inshDopm58F2g1jxUj629CLnFa4j8fqs7MDvOAry0l GElkHSkvvQMrEqdxNA8fveXv6xRZ/Z/I2T4ODowcLGRhiipnB6sVQGg3BKoNNr3NSRpk/4DGX BsCkNA8asI/yi+hSq47WAo7+ZogmUJaAsVJD6PS1yfQHY1JgHet6NFLOZPHTZN+qUXK7Zk8pF /rHq2McuY6T1BWs1Ba7nMdRM6VHZ9kjgRq0FW5KTSBBR4ydtbz9dRtFKofSFoj4m7pqESo0pK Xvgdyj7LE/fCTG8+ZiMISUtp5uppaBnY+Bc+X8XnFPdEa+f+0zeTeCeR3NYt/FwcQ+awIPGMr 0NJmbwnmQ+/pvSCLXkVlDOmQ+egG3YFd+awdrUg2TLPm3zibMfHWNMKd9nOc74V0wYOFQe27V Goe715sv9DECnsVoqOYwE6iXCRFN/S+wrIynQGKZ0c/vMqCNjPZRMYmMufkV0kkya9Fz1VLEr jgd69fHeivairV6KTWvNj82kWMye5nxrbVEwNjhJKZG7Xu3jYEtpfb+s3XJuOGo0Us+vl/vg3 VMxvDASxatiabqdvBi5BA368IuCIcuRATlVeMi3GvW7rFHu3U/xRyRd5We+7gO3qWlE1vaA5 Received-SPF: pass client-ip=212.227.17.20; envelope-from=deusmax@gmx.com; helo=mout.gmx.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/29 12:33:10 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:251625 Archived-At: On Fri, May 29 2020, Michael Albinus wrote: > Deus Max writes: > >> EncFs adds file name encryption and obsfucation, making in hard to gues= s >> the encrypted file, even if you know the file name. So you have to >> temporarily mount somewhere, in order to see the decrypted filenames. > > No. The new tramp-crypt file name handler makes this transparent to > you. Given, you have declared "/nextcloud:host:/crypted/" as crypted > remote directory. If you call for example > > (directory-file "/nextcloud:host:/crypted/subdir") > > this file name handler will transform "/nextcloud:host:/crypted/subdir" > to "/nextcloud:host:/crypted/XXX", in case you have created a > subdirectory "subdir" and it has the name "XXX" on the nextcloud > server. Then the vanilla Tramp command is called as > > (directory-file "/nextcloud:host:/crypted/XXX") > > using the encrypted file name. It returns the list ("." ".." "YYY" "ZZZ"= ), > with "YYY" and "ZZZ" being encrypted file names on the server. This > result is received by the file name handler, and it transforms this list > to ("." ".." "foo" "bar"), with "foo" and "bar" being the plain text > file names of "YYY" and "ZZZ". So, finally you see > > (directory-file "/nextcloud:host:/crypted/subdir") > =3D> ("." ".." "foo" "bar") > > without even thinking about that this is a crypted remote > directory. Same scenario for all other magic primitives, which are > implemented by Tramp. > Great! I need to reed up on the new tramp-crypt handler. >> Yes, the .encfs6.xml is very importantf for EncFS. >> I think encfs needs a temprorary mount point, to function. This can be = a >> weakness in a network situation, as any interruption could leave the >> files open or in a strange state, inviting the case to be compromised. > > No. An encfs mount point is needed only in case you create a new > .encfs6.xml file. Tramp would do this transparently by calling "encfs > tmpdir1 tmpdir2". Then it saves tmpdir1/.encfs6.xml, unmounts the encfs > mountpoint, and removes the temporary directories. > True. Thanks for correcting that. DeusM