lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <30811.1279802187@redhat.com>
Date:	Thu, 22 Jul 2010 13:36:27 +0100
From:	David Howells <dhowells@...hat.com>
To:	Nick Piggin <npiggin@...e.de>
Cc:	dhowells@...hat.com, viro@...IV.linux.org.uk,
	linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [RFC][PATCH] Add a dentry op to handle automounting rather than abusing follow_link

Nick Piggin <npiggin@...e.de> wrote:

> > AFS is made to use this facility so that it can be tested.  Other
> > filesystems abusing the follow_mount() inode operation will also need to
> > be modified.

I meant follow_link() here of course...  Too many followy things:-)

> How about having a .follow_mount op, and using that instead of
> default follow_mount in case mounted is incremented?

But what if d_mounted is not incremented, though?  That's usually the point
you'd want to call the automount code.  Why would you want to call into the
filesystem just to skip over possibly mounted dentries?  A dentry may have an
elevated d_mount on it, but nothing mounted at that {vfsmount,dentry} point I
suppose, but still jumping into the filesystem just so it can skip an already
mounted point would seem a waste of time.

> Also I would prefer the patch to add this call

Meaning i_op->follow_mount()?

> keep basically the same API as follow_mount, so if you are going to change
> that to return an error and do the NOFOLLOW handling in there, then could
> you do that first, as a more trivial patch?

Ummm...  I'm not sure I follow you.  I changed __follow_mount() not
follow_mount().  I don't think changing the latter is necessary.

> Then your addition of the d_op should not touch outside *follow_mount.

But calling i_op->follow_mount() would, so what does this gain you?  And why
not touch the inside of __follow_mount()?

Are you suggesting doing i_op->follow_mount() instead of or as well as
d_op->d_automount()?  I'm not entirely sure.

David
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ