Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2778477ybk; Mon, 18 May 2020 07:44:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx674MLBVZOV0bVJaznz473ZvL2YBQaMKAGJmy3hboN0tpQ3XEgX+zNLeGsYPfCQH28ItDk X-Received: by 2002:a17:906:3095:: with SMTP id 21mr14775386ejv.32.1589813051218; Mon, 18 May 2020 07:44:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589813051; cv=none; d=google.com; s=arc-20160816; b=AxMztzRSn6dJypmDBPS8SrX62Iw17JuLSoanyZxNt7yNACaHeGHiHKMrQVa72e6480 bJqVD0xY9uCD1e7jodch6WNXtF62OvgrO6YQhiFOLX5lXfL71C3MraXs8Nq+9tTvgX5z oCa5kCV6yVrYDdy5ztPtLCswuv5jspeOrriU/duoAWmnSHid0Vj54ZcvaxmKxHiQLx3U Z8mdVUFrj8EUNhiR1iKU1ueu7q93TFAyjVncTtQ1hueU4njDOCa46zs9jYf2OuyE2nfb DdAdn/PHtJkMFwcKcj4QKJYhdtiY+YyxJVlf8gvwGR3rqADp6rF4miD3lqvWAAvVKMkQ zRSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=WQKOzeN71eRHBrZcKhSGH2UpCKos++lPOa3x7m42cmc=; b=i0qqUWOZK620lvfxpd0G7tkRRzKDkDOOWOchGCtL5EotJHt1LDVNJ5XZ6xKyXI783E EwqF3yGwLjAqPtFA9YkqCpQFqM1LTW1aFTf/RkjR+wnOMB7UDBPsVJSEUAFaDwh0hLRC CTdLAzLgNlr1EFASCunpvS6bFPM4+8i3RGlV/FjYELFWw6v3WdG0GRQD2uTO/mrF7j7x 7XBhEG10TEQPSHXV10fGgod8lDQpNBhnvopuY790BIW1T8pQzLC85yPlD60io4YnC0Qt DzZk01OahBfP+FMvpXl2H9e8u/Yy4wgTOyZSg7PMMfFFmar58evcWYYrUxMRgSYMv7bU qKpg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 63si4674733edn.276.2020.05.18.07.43.47; Mon, 18 May 2020 07:44:11 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727063AbgEROmS (ORCPT + 99 others); Mon, 18 May 2020 10:42:18 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:35909 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726918AbgEROmR (ORCPT ); Mon, 18 May 2020 10:42:17 -0400 Received: from ip5f5af183.dynamic.kabel-deutschland.de ([95.90.241.131] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jagy5-0006pE-JF; Mon, 18 May 2020 14:42:14 +0000 Date: Mon, 18 May 2020 16:42:12 +0200 From: Christian Brauner To: David Howells Cc: mtk.manpages@gmail.com, Miklos Szeredi , lkml , "linux-fsdevel@vger.kernel.org" , Petr Vorel , linux-man Subject: Re: Setting mount propagation type in new mount API Message-ID: <20200518144212.xpfjlajgwzwhlq7r@wittgenstein> References: <909768.1589812234@warthog.procyon.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <909768.1589812234@warthog.procyon.org.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 18, 2020 at 03:30:34PM +0100, David Howells wrote: > Michael Kerrisk (man-pages) wrote: > > > I've been looking at the new mount API (fsopen(), fsconfig(), > > fsmount(), move_mount(), etc.) and among the details that remain > > mysterious to me is this: how does one set the propagation type > > (private/shared/slave/unbindable) of a new mount and change the > > propagation type of an existing mount? > > Christian said he was going to have a go at writing mount_setattr(). It's not > trivial as it has to be able to handle AT_RECURSIVE. Right, I've put this on my roadmap now. It's becoming more urgent for us too since I've already switched over a few bits to the new mount api to make use of detached/anonymous mounts. I've planned to start working on a version early next week. Christian