Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp110622ybv; Wed, 19 Feb 2020 17:23:06 -0800 (PST) X-Google-Smtp-Source: APXvYqw55NiroXhp7Uc0F362bun3XYqIYxMTkhsfXYyqGgC5jP+WhRiTlZA34yP8QJnAI7QCTulR X-Received: by 2002:a9d:7607:: with SMTP id k7mr21502887otl.205.1582161786831; Wed, 19 Feb 2020 17:23:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582161786; cv=none; d=google.com; s=arc-20160816; b=ZuH+gbVIWaZ3wnGEHNb6oV2mZVJzT1YNfGCdEI2MBmHzRbHd/bT5YiQ8dgWWTeqAfO TCRDpVZrF9zilfHTUhjkYJQ1HevTquQvrkHXVklnpPInm58Yinm48rYMvbIVpAnBjYiX R/97HcpC9DAcpmqBNndTJdQWCAiJyVQ+QRaVrLfZwXbUD3t8WELjE/cR7YvekgUk5XNk R+o37SS6fGy8hngSJ8ThOvJ0VWSJjssWNCpM59de6UE1u26e4+t48E8misAfFyePq6KM YgD7Eer3iH/uSfvWeZ2k9MQlbNfWvxXS6bdTyF3MmSrLvSbY7CB/+kdVgsrUR4H1KkCt aB1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=LbQuf+GtIv5ENkR5EOBV/0SjhBAjvOXcFmXLUjHR2lU=; b=YNWYz0sAmHnwQCxdxEQ22XomTon+SpR7alH4RBz4W19bgODN5ToLfCScbcTb9G01i9 Qjdhz6WzNcC6G8Xf79X6Vko3yD9l6o5F5UMOSvKp4piP5Fz6eEGP6VIchevzzeJybDdY REJTyIFgaRMMHnfcjr09IqltBIKlrUKu7gdd8OIEn8d6i1PmYj5zxqBYooYaPB2K3vl0 CFt9L9gRN/wtdjW6tGjjtfyhi6abf+odkfzNDzrGl+t8GaeLWP5Oz/N836usyD+3OqAH bGamk921UyJYgiR46wPp13y7AztNbSBs5iQbosUdd+VEFBJAx230uHxvNSYojqrqN938 yBjQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=XnycSrB0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2si817113ote.9.2020.02.19.17.22.30; Wed, 19 Feb 2020 17:23:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=XnycSrB0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727370AbgBTBVx (ORCPT + 99 others); Wed, 19 Feb 2020 20:21:53 -0500 Received: from mail-lf1-f67.google.com ([209.85.167.67]:36848 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726962AbgBTBVx (ORCPT ); Wed, 19 Feb 2020 20:21:53 -0500 Received: by mail-lf1-f67.google.com with SMTP id f24so1701420lfh.3 for ; Wed, 19 Feb 2020 17:21:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=LbQuf+GtIv5ENkR5EOBV/0SjhBAjvOXcFmXLUjHR2lU=; b=XnycSrB0jCwOgjAd3Tk6WrvlvVoT7sGo/6hbjO/h17hHZbwSad2xHVSEurbThdfKcw IjbcEMvts9odqDAPeKQrOB+po4yNFk6ZQwUgiYxvXDRHn/9ZXwwMjrof8oZcnJ1NLe3F 1a4LZIPhqkrmhgz/lVmfbuWYq8UagFoajp4YI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=LbQuf+GtIv5ENkR5EOBV/0SjhBAjvOXcFmXLUjHR2lU=; b=W652yYKfImmJq0Pa4Pq/ua/1kEh/G5dEiZcu95qYbgOq9tYlzARChvhOg5U84cNm+s UDUHobPyrroRcdK24yPe8LTLFASKolYbEBn0Kq4R1NtOW2zVFJzAEsBndgxVxWdx8m3K vF5f5ijH9wg78YsV3/TtjH53qRlnyhMYoViEDiEAj0lfWjQnj9/BLzzZ+vN3O1uO3Nxx TPDOE1d+oyBEtjJSDJqyxZz+hOoiPbqThzpChbTgkT5dqSthc9k7N+cKjAELCh5ngNdY cQ2yscdi27YLiZCADY9VcC81mEjyJ6XaYW3Pug7LXJ33TFMBF1ijTayxtWL9R6+CWNMr Clmg== X-Gm-Message-State: APjAAAUTHsXG7Gi0i2qhlm4AAaChyBjCXiz1h59Ws8BLcrnTtSchuBVg 73XJg52q00v6fep8xxWidbiDksWkSq8= X-Received: by 2002:ac2:55a8:: with SMTP id y8mr15181167lfg.117.1582161711140; Wed, 19 Feb 2020 17:21:51 -0800 (PST) Received: from mail-lj1-f173.google.com (mail-lj1-f173.google.com. [209.85.208.173]) by smtp.gmail.com with ESMTPSA id e5sm696678lfn.66.2020.02.19.17.21.49 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 19 Feb 2020 17:21:50 -0800 (PST) Received: by mail-lj1-f173.google.com with SMTP id o15so2415890ljg.6 for ; Wed, 19 Feb 2020 17:21:49 -0800 (PST) X-Received: by 2002:a2e:461a:: with SMTP id t26mr17213618lja.204.1582161709449; Wed, 19 Feb 2020 17:21:49 -0800 (PST) MIME-Version: 1.0 References: <158215745745.386537.12978619503606431141.stgit@warthog.procyon.org.uk> In-Reply-To: <158215745745.386537.12978619503606431141.stgit@warthog.procyon.org.uk> From: Linus Torvalds Date: Wed, 19 Feb 2020 17:21:33 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH] afs: Create a mountpoint through symlink() and remove through rmdir() To: David Howells Cc: Al Viro , linux-afs@lists.infradead.org, Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 19, 2020 at 4:11 PM David Howells wrote: > > If symlink() is given a magic prefix in the target string, turn it into a > mountpoint instead. > > The prefix is "//_afs3_mount:". That sounds sane. Your argument that if the prefix is made really long it couldn't be a valid symlink at all on AFS is fair, but seems somewhat excessive. The only issue I see with this interface is that you can now create these kinds of things by untarring a tar-ball etc. I can see that being both very convenient and a possible security pain. But I'm assuming that the real security is on the server side anyway and not just anybody can create arbitrary things like these? Linus