#
75c13541 |
| 28-Apr-1999 |
Poul-Henning Kamp <phk@FreeBSD.org> |
This Implements the mumbled about "Jail" feature.
This is a seriously beefed up chroot kind of thing. The process is jailed along the same lines as a chroot does it, but with additional tough restr
This Implements the mumbled about "Jail" feature.
This is a seriously beefed up chroot kind of thing. The process is jailed along the same lines as a chroot does it, but with additional tough restrictions imposed on what the superuser can do.
For all I know, it is safe to hand over the root bit inside a prison to the customer living in that prison, this is what it was developed for in fact: "real virtual servers".
Each prison has an ip number associated with it, which all IP communications will be coerced to use and each prison has its own hostname.
Needless to say, you need more RAM this way, but the advantage is that each customer can run their own particular version of apache and not stomp on the toes of their neighbors.
It generally does what one would expect, but setting up a jail still takes a little knowledge.
A few notes:
I have no scripts for setting up a jail, don't ask me for them.
The IP number should be an alias on one of the interfaces.
mount a /proc in each jail, it will make ps more useable.
/proc/<pid>/status tells the hostname of the prison for jailed processes.
Quotas are only sensible if you have a mountpoint per prison.
There are no privisions for stopping resource-hogging.
Some "#ifdef INET" and similar may be missing (send patches!)
If somebody wants to take it from here and develop it into more of a "virtual machine" they should be most welcome!
Tools, comments, patches & documentation most welcome.
Have fun...
Sponsored by: http://www.rndassociates.com/ Run for almost a year by: http://www.servetheweb.com/
show more ...
|
#
f711d546 |
| 27-Apr-1999 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Suser() simplification:
1: s/suser/suser_xxx/
2: Add new function: suser(struct proc *), prototyped in <sys/proc.h>.
3: s/suser_xxx(\([a-zA-Z0-9_]*\)->p_ucred, \&\1->p_acflag)/suser(\1)/
Th
Suser() simplification:
1: s/suser/suser_xxx/
2: Add new function: suser(struct proc *), prototyped in <sys/proc.h>.
3: s/suser_xxx(\([a-zA-Z0-9_]*\)->p_ucred, \&\1->p_acflag)/suser(\1)/
The remaining suser_xxx() calls will be scrutinized and dealt with later.
There may be some unneeded #include <sys/cred.h>, but they are left as an exercise for Bruce.
More changes to the suser() API will come along with the "jail" code.
show more ...
|
Revision tags: release/3.1.0 |
|
#
831a80b0 |
| 27-Jan-1999 |
Matthew Dillon <dillon@FreeBSD.org> |
Fix warnings in preparation for adding -Wall -Wcast-qual to the kernel compile
|
Revision tags: release/3.0.0, release/2.2.8 |
|
#
f1d19042 |
| 07-Dec-1998 |
Archie Cobbs <archie@FreeBSD.org> |
The "easy" fixes for compiling the kernel -Wunused: remove unreferenced static and local variables, goto labels, and functions declared but not defined.
|
#
5c592627 |
| 29-Nov-1998 |
Dmitrij Tejblum <dt@FreeBSD.org> |
Honor MNT_NOATIME.
PR: 8383 Submitted by: Carl Mascott <cmascott@world.std.com>
|
#
bad3d41d |
| 21-Nov-1998 |
Dmitrij Tejblum <dt@FreeBSD.org> |
Support NT VFAT lower case flags.
PR: 8383 (Mostly) Submitted by: Carl Mascott <cmascott@world.std.com>
|
#
40c8cfe5 |
| 31-Oct-1998 |
Peter Wemm <peter@FreeBSD.org> |
Use TAILQ macros for clean/dirty block list processing. Set b_xflags rather than abusing the list next pointer with a magic number.
|
#
e27b047c |
| 13-Sep-1998 |
Dmitrij Tejblum <dt@FreeBSD.org> |
Fix a bug related to renaming in root directory. This bug reported by Cejka Rudolf <cejkar@dcse.fee.vutbr.cz> on freebsd-current in Messaage-Id <199807141023.MAA09803@kazi.dcse.fee.vutbr.cz>.
Review
Fix a bug related to renaming in root directory. This bug reported by Cejka Rudolf <cejkar@dcse.fee.vutbr.cz> on freebsd-current in Messaage-Id <199807141023.MAA09803@kazi.dcse.fee.vutbr.cz>.
Reviewed by: bde
show more ...
|
Revision tags: release/2.2.7 |
|
#
ac1e407b |
| 11-Jul-1998 |
Bruce Evans <bde@FreeBSD.org> |
Fixed printf format errors.
|
#
fd5d1124 |
| 04-Jul-1998 |
Julian Elischer <julian@FreeBSD.org> |
VOP_STRATEGY grows an (struct vnode *) argument as the value in b_vp is often not really what you want. (and needs to be frobbed). more cleanups will follow this. Reviewed by: Bruce Evans <bde@freebs
VOP_STRATEGY grows an (struct vnode *) argument as the value in b_vp is often not really what you want. (and needs to be frobbed). more cleanups will follow this. Reviewed by: Bruce Evans <bde@freebsd.org>
show more ...
|
#
40b0939a |
| 10-Jun-1998 |
Dmitrij Tejblum <dt@FreeBSD.org> |
Back out previous change. This behavior is at least completely "susv2"-compliant.
|
#
75065d2c |
| 10-Jun-1998 |
Dmitrij Tejblum <dt@FreeBSD.org> |
Also return EOPNOTSUPP rather than EINVAL for not supported owner and group changes.
|
#
c3a24f69 |
| 10-Jun-1998 |
Peter Wemm <peter@FreeBSD.org> |
Return EOPNOTSUPP rather than EINVAL for flags that are not supported.
|
#
ffbdd68e |
| 09-Jun-1998 |
Dmitrij Tejblum <dt@FreeBSD.org> |
Fix typo in a comment.
|
#
058ef246 |
| 17-May-1998 |
Dmitrij Tejblum <dt@FreeBSD.org> |
Remove bogus LK_RETRY.
Submitted by: bde
|
#
7be2d300 |
| 07-May-1998 |
Mike Smith <msmith@FreeBSD.org> |
In the words of the submitter:
--------- Make callers of namei() responsible for releasing references or locks instead of having the underlying filesystems do it. This eliminates redundancy in all
In the words of the submitter:
--------- Make callers of namei() responsible for releasing references or locks instead of having the underlying filesystems do it. This eliminates redundancy in all terminal filesystems and makes it possible for stacked transport layers such as umapfs or nullfs to operate correctly.
Quality testing was done with testvn, and lat_fs from the lmbench suite.
Some NFS client testing courtesy of Patrik Kudo.
vop_mknod and vop_symlink still release the returned vpp. vop_rename still releases 4 vnode arguments before it returns. These remaining cases will be corrected in the next set of patches. ---------
Submitted by: Michael Hancock <michaelh@cet.co.jp>
show more ...
|
#
a0502b19 |
| 26-Mar-1998 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Add two new functions, get{micro|nano}time.
They are atomic, but return in essence what is in the "time" variable. gettime() is now a macro front for getmicrotime().
Various patches to use the two
Add two new functions, get{micro|nano}time.
They are atomic, but return in essence what is in the "time" variable. gettime() is now a macro front for getmicrotime().
Various patches to use the two new functions instead of the various hacks used in their absence.
Some puntuation and grammer patches from Bruce.
A couple of XXX comments.
show more ...
|
Revision tags: release/2.2.6 |
|
#
a8e44116 |
| 20-Mar-1998 |
KATO Takenori <kato@FreeBSD.org> |
Deleted 1024bytes/sector floppy code for PC-98 arch. The 1024bytes/sector code has not worked for long time and it should be re-implemented.
|
#
651ae11e |
| 06-Mar-1998 |
Mike Smith <msmith@FreeBSD.org> |
Trivial filesystem getpages/putpages implementations, set the second. These should be considered the first steps in a work-in-progress. Submitted by: Terry Lambert <terry@freebsd.org>
|
#
3f75478c |
| 03-Mar-1998 |
Mike Smith <msmith@FreeBSD.org> |
Patch to the last commit; attempt to unspam stuff from NetBSD. Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
|
#
ea0665cd |
| 01-Mar-1998 |
Mike Smith <msmith@FreeBSD.org> |
Fix mmap() on msdosfs. In the words of the submitter:
|In the process of evaluating the getpages/putpages issues I discovered |that mmap on MSDOSFS does not work. This is because I blindly merged |
Fix mmap() on msdosfs. In the words of the submitter:
|In the process of evaluating the getpages/putpages issues I discovered |that mmap on MSDOSFS does not work. This is because I blindly merged |NetBSD changes in msdosfs_bmap and msdosfs_strategy. Apparently, their |blocksize is always DEV_BSIZE (even in files), while in FreeBSD |blocksize in files is v_mount->mnt_stat.f_iosize (i.e. clustersize in |MSDOSFS case). The patch is below.
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
show more ...
|
#
69a36f24 |
| 26-Feb-1998 |
Mike Smith <msmith@FreeBSD.org> |
Fixes for some bugs in the VFAT/FAT32 support:
- 'mv longnamedfile1 longnamedfile2' would cause longnamedfile2 to lose its long name. - Long names have trailing spaces/dots stripped for lookup
Fixes for some bugs in the VFAT/FAT32 support:
- 'mv longnamedfile1 longnamedfile2' would cause longnamedfile2 to lose its long name. - Long names have trailing spaces/dots stripped for lookup as well as assignment. - A lockup when the mdsosfs was accessed from within the Linux emulator is fixed. - A bug whereby long filenames were recognised by Microsoft operating systems but not FreeBSD is fixed.
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
show more ...
|
#
5114f1d7 |
| 24-Feb-1998 |
Andrey A. Chernov <ache@FreeBSD.org> |
Back out "always view in lowercase" part Return to previous variant "comparing in lowercase" in winChkName
|
#
7391f611 |
| 23-Feb-1998 |
Andrey A. Chernov <ache@FreeBSD.org> |
Implement loadable DOS<->local conversion tables for DOS names Always create DOS name in uppercase Always view DOS name in lowercase
|
#
b998efa9 |
| 23-Feb-1998 |
Andrey A. Chernov <ache@FreeBSD.org> |
Implement loadable upper->lower local conversion table
|