opnsense-src/sys/compat/linux
Adrian Chadd f3a90da995 Reviewed by: jlemon
An initial tidyup of the mount() syscall and VFS mount code.

This code replaces the earlier work done by jlemon in an attempt to
make linux_mount() work.

* the guts of the mount work has been moved into vfs_mount().

* move `type', `path' and `flags' from being userland variables into being
  kernel variables in vfs_mount(). `data' remains a pointer into
  userspace.

* Attempt to verify the `type' and `path' strings passed to vfs_mount()
  aren't too long.

* rework mount() and linux_mount() to take the userland parameters
  (besides data, as mentioned) and pass kernel variables to vfs_mount().
  (linux_mount() already did this, I've just tidied it up a little more.)

* remove the copyin*() stuff for `path'. `data' still requires copyin*()
  since its a pointer into userland.

* set `mount->mnt_statf_mntonname' in vfs_mount() rather than in each
  filesystem.  This variable is generally initialised with `path', and
  each filesystem can override it if they want to.

* NOTE: f_mntonname is intiailised with "/" in the case of a root mount.
2001-03-01 21:00:17 +00:00
..
linux_file.c Reviewed by: jlemon 2001-03-01 21:00:17 +00:00
linux_ioctl.c Allow debugging output to be controlled on a per-syscall granularity. 2001-02-16 16:40:43 +00:00
linux_ioctl.h Fix typo in license. 2000-08-25 07:32:24 +00:00
linux_ipc.c Don't auto-generate the syscalls. 2000-12-03 01:30:31 +00:00
linux_ipc.h fix a comment that was inadvertantly changed by a cvs merge 2000-11-02 15:04:19 +00:00
linux_mib.c o Move per-process jail pointer (p->pr_prison) to inside of the subject 2001-02-21 06:39:57 +00:00
linux_mib.h Fix typo in license. 2000-08-25 07:32:24 +00:00
linux_misc.c Allow debugging output to be controlled on a per-syscall granularity. 2001-02-16 16:40:43 +00:00
linux_signal.c Allow debugging output to be controlled on a per-syscall granularity. 2001-02-16 16:40:43 +00:00
linux_signal.h The MI/MD split wasn't perfect and the MI files need hacks for the 2000-11-01 19:48:35 +00:00
linux_socket.c translate the flags in recvfrom and recvmsg from linux to bsd ones 2000-12-19 00:24:25 +00:00
linux_socket.h translate the flags in recvfrom and recvmsg from linux to bsd ones 2000-12-19 00:24:25 +00:00
linux_stats.c Allow debugging output to be controlled on a per-syscall granularity. 2001-02-16 16:40:43 +00:00
linux_util.c Fix typo: seperate -> separate. 2001-02-06 11:21:58 +00:00
linux_util.h The MI/MD split wasn't perfect and the MI files need hacks for the 2000-11-01 19:48:35 +00:00