Re: [RFC] mount(8) can figure out fstype




On Jan 18, 2007, at 9:14 , Andrew Pantyukhin wrote:

On 1/18/07, Craig Rodrigues <rodrigc@xxxxxxxxxxxxxx> wrote:
In this patch, I only modified the userland mount program.
If the user does not specify "-t vfstype" to mount,
the mount program gets a list of local filesystems from the vfs.conflist
sysctl. It then tries to mount the filesystem, always
starting with "ufs", and then iterating through the list if
the nmount() fails with EINVAL.

I would love to have this usability enhancement around!

1. Are there any (what are the) security implications?
2. "mount -t auto" might be closer to POLA

ISTR from back when Linux added this that the bigger problem is that the msdos filesystem may sometimes accept filesystems it shouldn't, because the only way to catch an invalid filesystem is heuristics.

--
brandon s. allbery [linux,solaris,freebsd,perl] allbery@xxxxxxxxx
system administrator [openafs,heimdal,too many hats] allbery@xxxxxxxxxxx
electrical and computer engineering, carnegie mellon university KF8NH



_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: mount() function problem !
    ... mount() attaches the filesystem specified by source (which is often a device name, ... point within a file system. ... details of the options available for each filesystem type. ... Specifies the journalling mode for file data. ...
    (comp.lang.c)
  • Re: [autofs] [RFC] Towards a Modern Autofs
    ... >entangling autofs with that work. ... >filesystem it's willing to export. ... >>map is mounted. ... The result is that some users will see mount points ...
    (Linux-Kernel)
  • Re: UFS Bug: FreeBSD 6.1/6.2/7.0: MOKB-08-11-2006, CVE-2006-5824, MOKB-03
    ... They can simply mount a filesystem with any number of SUID ... root binaries on it and have their way with the box. ... They have physical access to the machine. ...
    (FreeBSD-Security)
  • Re: Xenix Filesystem
    ... > how do I mount a new filesystem in SCO Open Server 5.0.5? ... There is probably at least 2 or 3 divvy partitions within that fdisk ...
    (comp.unix.sco.misc)
  • cannot boot-up linux, unable to read superblock
    ... mount: error 22 mounting ext3 ... enable lvm and tried fsck for the volumes (one is empty volume? ... Attempt to read block from filesystem resulted in short read while trying to open /dev/VolGroup00/LogVol00 ...
    (RedHat)