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: <20120120162220.GN8797@codelibre.net>
Date:	Fri, 20 Jan 2012 16:22:20 +0000
From:	Roger Leigh <rleigh@...elibre.net>
To:	Kay Sievers <kay.sievers@...y.org>
Cc:	Karel Zak <kzak@...hat.com>, linux-kernel@...r.kernel.org,
	linux-fsdevel@...r.kernel.org, util-linux@...r.kernel.org
Subject: Re: /etc/fstab.d yes or not

On Fri, Jan 20, 2012 at 05:13:12PM +0100, Kay Sievers wrote:
> On Fri, Jan 20, 2012 at 16:49, Roger Leigh <rleigh@...elibre.net> wrote:
> > On Fri, Jan 20, 2012 at 03:04:44PM +0100, Karel Zak wrote:
> >>  I'd like to add support for /etc/fstab.d to libmount. The library is
> >>  currently used by mount, umount and mount.nfs. The goal is to use it
> >>  on more places.
> >>
> >>  The /etc/fstab.d directory has been requested by people who maintains
> >>  large number of mountpoints etc.
> >>
> >>  The directory is not replacement for /etc/fstab, it's additional place
> >>  where you can describe your filesystems.
> >
> > As a general comment, I would like to use fstab.d for replacing
> > the initscripts which mount kernel filesystems in Debian initscripts
> > (sysvinit).  We currently hardcode the logic to mount each filesystem
> > and additionally hardcode the defaults, and permit the defaults to
> > be overridden by the user via /etc/default/* or via entries in
> > /etc/fstab.  This could be done much more straightforwardly using
> > entries such as /etc/fstab.d/kernfs and /etc/fstab.d/tmpfs etc.
> 
> It is just very wrong to expose kernel filesystems to system mounts.
> Please invent your own config if you want that for packaging. The
> kernel filesystems do not belong in fstab, and for the same reason not
> in fstab.d/.

To be fair, these can be split into two categories: kernel filesystems
such as procfs, sysfs etc., and special-purpose tmpfs mounts.  The
former could be kept in the init scripts, but the latter are commonly
required to be customised (or disabled) by admins, and the fstab format
is the natural way to express this.  This would include tmpfs mounts
for e.g. /run, /run/lock, /run/shm, potentially /tmp] and others, each
of which has separate limits.

Inventing custom file formats for these (as is the current situation)
is both opaque to the admin and less amenable to preservation/upgrading
of the admins customisations and the defaults.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
--
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