Received: by 10.223.176.5 with SMTP id f5csp17779wra; Thu, 1 Feb 2018 14:47:09 -0800 (PST) X-Google-Smtp-Source: AH8x225o+Q1I/UeMW6Boyc8sE3NxexRfGBj+XCicbLtxcIeBbB7Ke1jmzNCwydYd0JdOFTFLpkg4 X-Received: by 2002:a17:902:34a:: with SMTP id 68-v6mr33714077pld.276.1517525229476; Thu, 01 Feb 2018 14:47:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517525229; cv=none; d=google.com; s=arc-20160816; b=iKQWG3Z4sxVBlIPmsUAK5uXG4iO2CDRDltLwNs6cfJJXPWm8SlGuz6q4XNnR95knfa Ci9DU51kEjiz44E0656A69lLiu/1r2yXRdVF/KISZFZ5s914ZD8nq+RZdAeTUFZ0Kz9/ p7RUACf+kskhjBREnXfGAvXV/4qN8Q/CM7++SJvJxFVZiuFMEw2K+B8ePixdCbcof138 ytXvStEBZNellNZ5+EbdKKLUHi+uIO1zAaNhZmFV+Ykv9bceJI4gxeRSzl2LZg2nWyAt 4gHB/YO0UaPE+tE/PwhNISvKc44fZFQFp0iVPDG8bd0UsxQR7kygmyN4FtZ0wqAWhzB7 pNDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=EhmkdiV9F5KdvA+rvaEhA2Y0KqUjvJzAPh+0MPhVoMw=; b=elMK7utkzoQWLqojieUhqoqZhhdAsnohOPg4xukF1duGvObfkmUeqPEHKCNYCdSZs/ 9+6BnC/Wd1AqdK8ENDuOLsYyHRcW0X5rfyY0/eAv02xC5lETFt/GdyCLQQc7KDF42eGf oX5TvmwBhXji2ZhGqCkhhLQlbVMGOcUZDqMoxsfojvC/friVmsD0fl6VHIJjtApwaavC FXXHQl0VrMlGcCmkyHCxpii7UflqgsSXHlqXGhx4/wwKokG6bhhwgNXvPD+Q8HFdAET5 HYHRTwuLQR04wjal4/3BYKRAds4/4l4jYnAO3a+VKXyfAmbIMyhB4vbWaBSrnDkobENp xRhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@landley-net.20150623.gappssmtp.com header.s=20150623 header.b=l2tevXz2; 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 g16si493016pfh.4.2018.02.01.14.46.55; Thu, 01 Feb 2018 14:47:09 -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=@landley-net.20150623.gappssmtp.com header.s=20150623 header.b=l2tevXz2; 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 S1752162AbeBAWqP (ORCPT + 99 others); Thu, 1 Feb 2018 17:46:15 -0500 Received: from mail-vk0-f65.google.com ([209.85.213.65]:44260 "EHLO mail-vk0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751976AbeBAWqK (ORCPT ); Thu, 1 Feb 2018 17:46:10 -0500 Received: by mail-vk0-f65.google.com with SMTP id q62so12337445vkb.11 for ; Thu, 01 Feb 2018 14:46:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landley-net.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=EhmkdiV9F5KdvA+rvaEhA2Y0KqUjvJzAPh+0MPhVoMw=; b=l2tevXz2u0UEQr2LGTAtfoLW4m6g1+vUWTuHbLbh58PqCsLHuyQ+pjSQaeFxbmZMHU E5hT9ZVlaVphPh9307s2zeg1cR4HffK6ZRulUlDARiOP3S0es/LfSDwczhNAcelSuhR9 SFkfjScjCsq19mvDMkRNXONN1cUnNANHSlKidzktrhZXrgMey9PQQaQRasG1XslFKXP8 eWXKIFVjPg5vsn79MXAoYDiC4obWJxC1DOHP9MOFd9keN4/1vE3sOx0xf1TAD2WCCfTT w4OL3e7U+KzOD12X4zctYyKilDgvKaZfDwAB9C1eLU4jODmYsxpQRII3czp9JOKOTugA k11w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=EhmkdiV9F5KdvA+rvaEhA2Y0KqUjvJzAPh+0MPhVoMw=; b=ashKkG3vrokxUrMRq1x0W0cwrFWCS5jCQa8dGPH6lnAC97KnL3FeIqCHHbCjypDt5x TPoaGg7Mbe7YSp3ATzPooyQ5QlUMjyv3QrO5s796yneyoQy7VlP+gYSWE4CtFsyTit0e IIBxaQGinkPLNEPWMXom31PGw5LWYNelUlZPkJ9gV3i+XOFhqBjLEXuRLa4QjzduNLY8 AL9IrceTCit3YinnwcWgF6k1JXz2YYLOBK4zvjwpwsi1rK6IB62Txt7kkmz0BCCHtBC1 9j50HWHOxwpv/sPzxTevUKcSYL4/oRNis8t7FAhxaekqn80DXfIG03eDk+rGnNlQpFMm mG3w== X-Gm-Message-State: AKwxyte+NOowTv9kyBuKhb9i05yQx8WhRMoBlKNcvrEFg/kFZXX6qyx2 eZoA+5dFGgIul4HF9oguLYhWOTWl4ZA= X-Received: by 10.31.216.70 with SMTP id p67mr30287654vkg.72.1517525170182; Thu, 01 Feb 2018 14:46:10 -0800 (PST) Received: from [192.168.42.11] ([172.58.139.23]) by smtp.googlemail.com with ESMTPSA id x14sm469190uab.23.2018.02.01.14.46.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Feb 2018 14:46:09 -0800 (PST) Subject: Re: [RFC PATCH] rootfs: force mounting rootfs as tmpfs To: Mimi Zohar , Arvind Sankar Cc: initramfs , Taras Kondratiuk , Victor Kamensky , linux-security-module , Al Viro , linux-kernel References: <1517348777.3469.5.camel@linux.vnet.ibm.com> <1814af5c-170d-39c0-58fd-02eb7216e008@landley.net> <1517436423.3469.237.camel@linux.vnet.ibm.com> <20180201020331.GA3774@rani.riverdale> <1517458921.3329.2.camel@linux.vnet.ibm.com> From: Rob Landley Message-ID: Date: Thu, 1 Feb 2018 16:46:07 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <1517458921.3329.2.camel@linux.vnet.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/31/2018 10:22 PM, Mimi Zohar wrote: > On Wed, 2018-01-31 at 21:03 -0500, Arvind Sankar wrote: >> On Wed, Jan 31, 2018 at 05:48:20PM -0600, Rob Landley wrote: >>> On 01/31/2018 04:07 PM, Mimi Zohar wrote: >>>> On Wed, 2018-01-31 at 13:32 -0600, Rob Landley wrote:>> (The old "I configured in tmpfs and am using rootfs but I want that >>> rootfs >>>>> to be ramfs, not tmpfs" code doesn't seem to be a real-world concern, does >>>>> it?) >>>> >>>> I must be missing something.  Which systems don't specify "root=" on >>>> the boot command line. >>> >>> Any system using initrd or initramfs? >>> >> >> Don't a lot of initramfs setups use root= to tell the initramfs which >> actual root file system to switch to after early boot? > > With your patch and specifying "root=tmpfs", dracut is complaining: > > dracut: FATAL: Don't know how to handle 'root=tmpfs' > dracut: refusing to continue "The kernel can't break this buggy userspace package." "The kernel must give access to a new feature to this buggy userspace package". I think kernel policy asks you to pick one, but I could be wrong... Rob