Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp809928imm; Wed, 17 Oct 2018 08:39:12 -0700 (PDT) X-Google-Smtp-Source: ACcGV61rqGFU18GMT8Y1DOesmSwd0DVETgQRA0d9vNENa/zHde7ztp8lvz97XaPwxb1LGhpb3WZn X-Received: by 2002:a65:62d5:: with SMTP id m21-v6mr25290775pgv.243.1539790752938; Wed, 17 Oct 2018 08:39:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539790752; cv=none; d=google.com; s=arc-20160816; b=LeWPBxhjNk28/LP2MdMeG9RhnF1v/XJ5O2gQhqYHshrQqgosw0o7+NcH5Uk0xUjG6D 6+bbQex0osAAnOG+5eZ5wJZrLZVXdmxe+8z2BeA1wjpnR6tQWUTkxsELm5xcoybomHN2 wtOBSkQNcyBtLrww5ewH7DK7TeCcjxky5RvOOyv6PJm251X61zZCW0eGLoWSHQ5gAWTS LdmJC2ndTLGKUVps7mhyg3C1+cPmwKKbj0ueVHB60XbIjYBEg4wtzaXZsG/g1d9tbULz LcoErdG48RYKYHdeRiZIz86KwLDvOLvo/NI9589mS9QzAf+Y/1Uzhw9z9Bi1/BJZyuiu faRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:subject:mime-version:user-agent :message-id:in-reply-to:date:references:cc:to:from; bh=i8spcsO/xmx3+44X67ROjXylm4eyBOkN3UjMWw/101A=; b=BipqQaXXwbo+oLR5LPahbngjFrDSv2ToUVxdW8cpSbIf8jT3VDhPVC6u6RuYESrFpE +813+rzuf9ZdtMpGGGuK/Y3qbzL9qFhP7vxE590NhdgMw+Q+SLBWVGCLKjX3vjetOeHB uG0o/+33uNw33w93Y3+WYGrxJLKzw4ucKzcVz2YUvr9OtCvzFIz1C5ZGMMW8A1yaJA95 KT4/NHTfXB7x/ykUebCK6kiMBphr3tuPE2DJvh8WiweVJgro2icJP7bGKTTbj8CXAeZd C6BUazcT+PlDI9ZV7U/5nDUxE+hU1uA0Tyo/yOoE1/+Furpxp+3Zsan0GbVkmRluEB2N QTTA== ARC-Authentication-Results: i=1; mx.google.com; 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 k6-v6si17543196pls.174.2018.10.17.08.38.57; Wed, 17 Oct 2018 08:39:12 -0700 (PDT) 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; 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 S1727734AbeJQXei (ORCPT + 99 others); Wed, 17 Oct 2018 19:34:38 -0400 Received: from out02.mta.xmission.com ([166.70.13.232]:35502 "EHLO out02.mta.xmission.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727048AbeJQXeh (ORCPT ); Wed, 17 Oct 2018 19:34:37 -0400 Received: from in02.mta.xmission.com ([166.70.13.52]) by out02.mta.xmission.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1gCntt-0000bf-2d; Wed, 17 Oct 2018 09:38:21 -0600 Received: from 67-3-154-154.omah.qwest.net ([67.3.154.154] helo=x220.xmission.com) by in02.mta.xmission.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.87) (envelope-from ) id 1gCnts-00030R-HY; Wed, 17 Oct 2018 09:38:20 -0600 From: ebiederm@xmission.com (Eric W. Biederman) To: David Howells Cc: Alan Jenkins , Al Viro , linux-api@vger.kernel.org, torvalds@linux-foundation.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, mszeredi@redhat.com References: <87woqgiqta.fsf@xmission.com> <19866.1539782101@warthog.procyon.org.uk> <68a2107f-bf70-055b-86cf-1ba2ba9422bf@gmail.com> <153754740781.17872.7869536526927736855.stgit@warthog.procyon.org.uk> <153754766004.17872.9829232103614083565.stgit@warthog.procyon.org.uk> <9b8bf436-65de-13b9-0002-0479d11c18ca@gmail.com> <20181013061141.GR32577@ZenIV.linux.org.uk> <28710.1539782412@warthog.procyon.org.uk> <13800.1539789863@warthog.procyon.org.uk> Date: Wed, 17 Oct 2018 10:38:04 -0500 In-Reply-To: <13800.1539789863@warthog.procyon.org.uk> (David Howells's message of "Wed, 17 Oct 2018 16:24:23 +0100") Message-ID: <87murcinxf.fsf@xmission.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-XM-SPF: eid=1gCnts-00030R-HY;;;mid=<87murcinxf.fsf@xmission.com>;;;hst=in02.mta.xmission.com;;;ip=67.3.154.154;;;frm=ebiederm@xmission.com;;;spf=neutral X-XM-AID: U2FsdGVkX1+BsNEAfi8xRgbj6O2Fenp4z0bOenntuZA= X-SA-Exim-Connect-IP: 67.3.154.154 X-SA-Exim-Mail-From: ebiederm@xmission.com X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on sa07.xmission.com X-Spam-Level: ** X-Spam-Status: No, score=2.0 required=8.0 tests=ALL_TRUSTED,BAYES_50, DCC_CHECK_NEGATIVE,TVD_RCVD_IP,T_TM2_M_HEADER_IN_MSG,T_TooManySym_01, T_TooManySym_02,XMNoVowels,XMSubLong autolearn=disabled version=3.4.1 X-Spam-Report: * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% * [score: 0.5000] * 1.5 XMNoVowels Alpha-numberic number with no vowels * 0.7 XMSubLong Long Subject * 0.0 TVD_RCVD_IP Message was received from an IP address * 0.0 T_TM2_M_HEADER_IN_MSG BODY: No description available. * -0.0 DCC_CHECK_NEGATIVE Not listed in DCC * [sa07 1397; Body=1 Fuz1=1 Fuz2=1] * 0.0 T_TooManySym_02 5+ unique symbols in subject * 0.0 T_TooManySym_01 4+ unique symbols in subject X-Spam-DCC: XMission; sa07 1397; Body=1 Fuz1=1 Fuz2=1 X-Spam-Combo: **;David Howells X-Spam-Relay-Country: X-Spam-Timing: total 177 ms - load_scoreonly_sql: 0.03 (0.0%), signal_user_changed: 2.4 (1.4%), b_tie_ro: 1.65 (0.9%), parse: 0.78 (0.4%), extract_message_metadata: 9 (5.2%), get_uri_detail_list: 0.71 (0.4%), tests_pri_-1000: 6 (3.5%), tests_pri_-950: 1.21 (0.7%), tests_pri_-900: 1.00 (0.6%), tests_pri_-400: 19 (10.9%), check_bayes: 18 (10.1%), b_tokenize: 6 (3.4%), b_tok_get_all: 5.0 (2.8%), b_comp_prob: 1.87 (1.1%), b_tok_touch_all: 3.1 (1.7%), b_finish: 0.63 (0.4%), tests_pri_0: 123 (69.6%), check_dkim_signature: 0.44 (0.3%), check_dkim_adsp: 2.6 (1.4%), tests_pri_10: 2.1 (1.2%), tests_pri_500: 9 (5.0%), rewrite_mail: 0.00 (0.0%) Subject: Re: [PATCH 31/34] vfs: syscall: Add fspick() to select a superblock for reconfiguration [ver #12] X-Spam-Flag: No X-SA-Exim-Version: 4.2.1 (built Thu, 05 May 2016 13:38:54 -0600) X-SA-Exim-Scanned: Yes (on in02.mta.xmission.com) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org David Howells writes: > Eric W. Biederman wrote: > >> Davids check will work for bind mounts as well. It just won't work it >> just won't work for files or subdirectories of some mountpoint. > > Bind mounts have to be done with open_tree() and move_mount(). You can't now > do fsmount() on something fspick()'d. But a bind mount will have mnt_root set to the the dentry that was bound. Therefore fspick as you are proposing modifying will work for the root of bind mounts, as well as the root of regular mounts. My apologies for not being clear. Eric