devfs
[Top] [All Lists]

[RFC] Removal of devfs multi-mount feature

To: devfs@xxxxxxxxxxx, linux-fsdevel@xxxxxxxxxxxxxxxx
Subject: [RFC] Removal of devfs multi-mount feature
From: Richard Gooch <rgooch@xxxxxxxxxxxxxxx>
Date: Sat, 3 Jun 2000 10:13:41 -0600
Cc: linux-kernel@xxxxxxxxxxxxxxxx
Sender: owner-devfs@xxxxxxxxxxx
  Hi, all. The recent work by Al Viro on VFS bindings opens up the
possibility of removing the built-in multi-mount facility in devfs.
I'd like to discuss the pros and cons and get some feedback.

As some of you are aware, devfs may be mounted multiple times, with
the option of *not* exposing device entries in a mounted devfs until
the sysadmin does mknod(2). Permissions and ownerships are maintained
separately for each mounted devfs.

This multi-mount feature is designed with chroot gaols in mind, where
you may want to expose a very limited number of device nodes in a
gaol.

With VFS bindings, it is possible to bind individual files (the
original design only bound directories, IIRC), thus providing a
similar feature that the devfs multi-mount facility does. What would
be lost is the ability to independently change permissions on device
nodes in each chroot gaol; permissions would be shared. At some point
in the future VFS bindings may allow us to inherit permissions from
the VFS mount, which would mean all devices in a gaol would have the
same permissions. But such a development may never happen, so bear
that in mind.

My inclination is to just rely on VFS bindings, as it should be
sufficiently flexible (I hope) and it simplifies the devfs code.

I'd like to get feedback from people who set up chroot gaols (or at
least those people who think and care about them:-) on whether
changing from the current built-in devfs multi-mount feature to just
relying on VFS bindings (and thus less flexibilty with controlling
permissions) is a problem or not.

                                Regards,

                                        Richard....
Permanent: rgooch@xxxxxxxxxxxxx
Current:   rgooch@xxxxxxxxxxxxxxx

<Prev in Thread] Current Thread [Next in Thread>
  • [RFC] Removal of devfs multi-mount feature, Richard Gooch <=