freebsd-dev/sys/fs/pseudofs
Kelly Yancey c9ad8a67af Restore the ability to mount procfs and fdescfs filesystems via the
mount(2) system call:

  * Add cmount hook to fdescfs and pseudofs (and, by extension, procfs and
    linprocfs).  This (mostly) restores the ability to mount these
    filesystems using the old mount(2) system call (see below for the
    rest of the fix).

  * Remove not-NULL check for the data argument from the mount(2) entry
    point.  Per the mount(2) man page, it is up to the individual
    filesystem being mounted to verify data.  Or, in the case of procfs,
    etc. the filesystem is free to ignore the data parameter if it does
    not use it.  Enforcing data to be not-NULL in the mount(2) system call
    entry point prevented passing NULL to filesystems which ignored the
    data pointer value.  Apparently, passing NULL was common practice
    in such cases, as even our own mount_std(8) used to do it in the
    pre-nmount(2) world.

All userland programs in the tree were converted to nmount(2) long ago,
but I've found at least one external program which broke due to this
(presumably unintentional) mount(2) API change.  One could argue that
external programs should also be converted to nmount(2), but then there
isn't much point in keeping the mount(2) interface for backward
compatibility if it isn't backward compatible.
2006-05-15 19:42:10 +00:00
..
pseudofs_fileno.c Use subr_unit 2005-03-19 08:22:36 +00:00
pseudofs_internal.h Use subr_unit 2005-03-19 08:22:36 +00:00
pseudofs_vncache.c - Since we don't hold a usecount in pfs_exit we have to get a holdcnt 2005-07-07 07:33:10 +00:00
pseudofs_vnops.c Close some races between procfs/ptrace and exit(2): 2006-02-22 18:57:50 +00:00
pseudofs.c Restore the ability to mount procfs and fdescfs filesystems via the 2006-05-15 19:42:10 +00:00
pseudofs.h Restore the ability to mount procfs and fdescfs filesystems via the 2006-05-15 19:42:10 +00:00