mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thayne Harbaugh <tharbaugh@lnxi.com>
To: Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua>
Cc: lkml <linux-kernel@vger.kernel.org>,
	Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
Subject: Re: MS_NOUSER and rootfs
Date: Fri, 07 Jan 2005 13:53:32 -0700	[thread overview]
Message-ID: <1105131212.18437.15.camel@tubarao> (raw)
In-Reply-To: <200501071932.35184.vda@port.imtp.ilyichevsk.odessa.ua>

[-- Attachment #1: Type: text/plain, Size: 1464 bytes --]

On Fri, 2005-01-07 at 19:32 +0200, Denis Vlasenko wrote:
> On Thursday 06 January 2005 17:08, Thayne Harbaugh wrote:
> > What is the purpose of the MS_NOUSER flag serve and why is it set on
> > rootfs?
> 
> Was grep helpful?

No, it wasn't.  There are (realling from memory) about six places that
MS_NOUSER appears in the entire tree.

One is in fs.h file where it is defined.

One is in in ramfs/inode.c (?) where MS_NOUSER is set on rootfs for
rootfs_get_sb()

One is in namespace.c in the graft_tree() function that prevents MS_BIND

Thrice in shmem.c - I have to admit I haven't read this very closely

One in libfs.c where there's a template for file systems that aren't
supposed to be mountable

One in Documentation/filesystems/porting where it describes that it can
be used in place of FS_NOMOUNT

There isn't a description as to what the intention is for MS_NOUSER and
why it should be applied to rootfs.  I'm looking for some education as
to what it does so I can work out the details as to why it's used in
graft_tree(), rootfs_get_sb() and shmem.c.

It appears that Al Viro wrote some of that and I'm hoping that he can
find some time to reply (I'm sure he gets millions of emails about
little details and it's hard to cut through them).  Maybe there's
someone else that understands that can give me an education or point me
in the right direction.

Thanks for your response.

-- 
Thayne Harbaugh
Linux Networx

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  parent reply	other threads:[~2005-01-07 21:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-06 15:08 Thayne Harbaugh
     [not found] ` <200501071932.35184.vda@port.imtp.ilyichevsk.odessa.ua>
2005-01-07 20:53   ` Thayne Harbaugh [this message]
2005-01-07 21:45     ` Andries Brouwer
2005-01-07 22:54       ` Thayne Harbaugh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1105131212.18437.15.camel@tubarao \
    --to=tharbaugh@lnxi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=vda@port.imtp.ilyichevsk.odessa.ua \
    --cc=viro@parcelfarce.linux.theplanet.co.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®