freebsd-nq/sys/compat/linux
Robert Watson 91421ba234 o Move per-process jail pointer (p->pr_prison) to inside of the subject
credential structure, ucred (cr->cr_prison).
o Allow jail inheritence to be a function of credential inheritence.
o Abstract prison structure reference counting behind pr_hold() and
  pr_free(), invoked by the similarly named credential reference
  management functions, removing this code from per-ABI fork/exit code.
o Modify various jail() functions to use struct ucred arguments instead
  of struct proc arguments.
o Introduce jailed() function to determine if a credential is jailed,
  rather than directly checking pointers all over the place.
o Convert PRISON_CHECK() macro to prison_check() function.
o Move jail() function prototypes to jail.h.
o Emulate the P_JAILED flag in fill_kinfo_proc() and no longer set the
  flag in the process flags field itself.
o Eliminate that "const" qualifier from suser/p_can/etc to reflect
  mutex use.

Notes:

o Some further cleanup of the linux/jail code is still required.
o It's now possible to consider resolving some of the process vs
  credential based permission checking confusion in the socket code.
o Mutex protection of struct prison is still not present, and is
  required to protect the reference count plus some fields in the
  structure.

Reviewed by:	freebsd-arch
Obtained from:	TrustedBSD Project
2001-02-21 06:39:57 +00:00
..
linux_file.c Allow debugging output to be controlled on a per-syscall granularity. 2001-02-16 16:40:43 +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