#
01137630 |
| 03-Dec-2001 |
Robert Watson <rwatson@FreeBSD.org> |
o Introduce pr_mtx into struct prison, providing protection for the mutable contents of struct prison (hostname, securelevel, refcount, pr_linux, ...) o Generally introduce mtx_lock()/mtx_unlock(
o Introduce pr_mtx into struct prison, providing protection for the mutable contents of struct prison (hostname, securelevel, refcount, pr_linux, ...) o Generally introduce mtx_lock()/mtx_unlock() calls throughout kern/ so as to enforce these protections, in particular, in kern_mib.c protection sysctl access to the hostname and securelevel, as well as kern_prot.c access to the securelevel for access control purposes. o Rewrite linux emulator abstractions for accessing per-jail linux mib entries (osname, osrelease, osversion) so that they don't return a pointer to the text in the struct linux_prison, rather, a copy to an array passed into the calls. Likewise, update linprocfs to use these primitives. o Update in_pcb.c to always use prison_getip() rather than directly accessing struct prison.
Reviewed by: jhb
show more ...
|
#
59ea8469 |
| 29-Oct-2001 |
Matthew Dillon <dillon@FreeBSD.org> |
promote tv_sec in printf to make it type agnostic
|
#
71ab1fa5 |
| 26-Oct-2001 |
Poul-Henning Kamp <phk@FreeBSD.org> |
Reporting device drivers by traversing cdevsw[] is at best a hack which may or may not return something which is partially right.
Disable the "devices" file until we find out what this is needed for
Reporting device drivers by traversing cdevsw[] is at best a hack which may or may not return something which is partially right.
Disable the "devices" file until we find out what this is needed for, and what exactly those apps need.
This will allow cdevsw to become static again.
Approved by: DES
show more ...
|
#
7936569b |
| 21-Oct-2001 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Add proc/mtab which simulates a Linux system's /etc/mtab.
|
#
a55f7148 |
| 19-Oct-2001 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
#if 0 out some code that depends on other uncommitted patches.
|
#
1c0bfd6e |
| 19-Oct-2001 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Adapt to pseudofs changes (dynamic initialization, not static). Use the new linux_ifname() function from the linuxulator rather than roll our own interface name translation.
|
#
e4fea9d1 |
| 01-Oct-2001 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Catch up with the visibility callback stuff, and give up trying to keep the file definitions on single lines.
|
#
a73a153a |
| 30-Sep-2001 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Specify readability and / or writeability for all nodes that need it.
|
#
2bb3ce0c |
| 30-Sep-2001 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Adapt to pseudofs version 2. Sorry about the breakage - I had this ready to commit along with the pseudofs patches, but just plain forgot.
|
#
68936485 |
| 25-Sep-2001 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Clean up my source tree to avoid getting hit too badly by the next KSE or whatever mega-commit. No real functional changes, just some experiments / work in progress.
|
#
b40ce416 |
| 12-Sep-2001 |
Julian Elischer <julian@FreeBSD.org> |
KSE Milestone 2 Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is fu
KSE Milestone 2 Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process.
Sorry john! (your next MFC will be a doosie!)
Reviewed by: peter@freebsd.org, dillon@freebsd.org
X-MFC after: ha ha ha ha
show more ...
|
#
a0f75161 |
| 05-Jul-2001 |
Robert Watson <rwatson@FreeBSD.org> |
o Replace calls to p_can(..., P_CAN_xxx) with calls to p_canxxx(). The p_can(...) construct was a premature (and, it turns out, awkward) abstraction. The individual calls to p_canxxx() better
o Replace calls to p_can(..., P_CAN_xxx) with calls to p_canxxx(). The p_can(...) construct was a premature (and, it turns out, awkward) abstraction. The individual calls to p_canxxx() better reflect differences between the inter-process authorization checks, such as differing checks based on the type of signal. This has a side effect of improving code readability. o Replace direct credential authorization checks in ktrace() with invocation of p_candebug(), while maintaining the special case check of KTR_ROOT. This allows ktrace() to "play more nicely" with new mandatory access control schemes, as well as making its authorization checks consistent with other "debugging class" checks. o Eliminate "privused" construct for p_can*() calls which allowed the caller to determine if privilege was required for successful evaluation of the access control check. This primitive is currently unused, and as such, serves only to complicate the API.
Approved by: ({procfs,linprocfs} changes) des Obtained from: TrustedBSD Project
show more ...
|
#
336d3d2a |
| 12-Jun-2001 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Say one thing, do the other... nextpid -> lastpid
|
#
4c178576 |
| 11-Jun-2001 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Implement proc/cpuinfo for the Alpha (thanks to gallatin). Implement proc/pid/cmdline.
|
#
da6d379c |
| 11-Jun-2001 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Minor whitespace changes.
|
#
f08adc10 |
| 11-Jun-2001 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
New pseudofs-based linprocfs (repo-copied from linprocfs_misc.c).
|
#
b1fc0ec1 |
| 25-May-2001 |
Robert Watson <rwatson@FreeBSD.org> |
o Merge contents of struct pcred into struct ucred. Specifically, add the real uid, saved uid, real gid, and saved gid to ucred, as well as the pcred->pc_uidinfo, which was associated with the r
o Merge contents of struct pcred into struct ucred. Specifically, add the real uid, saved uid, real gid, and saved gid to ucred, as well as the pcred->pc_uidinfo, which was associated with the real uid, only rename it to cr_ruidinfo so as not to conflict with cr_uidinfo, which corresponds to the effective uid. o Remove p_cred from struct proc; add p_ucred to struct proc, replacing original macro that pointed. p->p_ucred to p->p_cred->pc_ucred. o Universally update code so that it makes use of ucred instead of pcred, p->p_ucred instead of p->p_pcred, cr_ruidinfo instead of p_uidinfo, cr_{r,sv}{u,g}id instead of p_*, etc. o Remove pcred0 and its initialization from init_main.c; initialize cr_ruidinfo there. o Restruction many credential modification chunks to always crdup while we figure out locking and optimizations; generally speaking, this means moving to a structure like this: newcred = crdup(oldcred); ... p->p_ucred = newcred; crfree(oldcred); It's not race-free, but better than nothing. There are also races in sys_process.c, all inter-process authorization, fork, exec, and exit. o Remove sigio->sio_ruid since sigio->sio_ucred now contains the ruid; remove comments indicating that the old arrangement was a problem. o Restructure exec1() a little to use newcred/oldcred arrangement, and use improved uid management primitives. o Clean up exit1() so as to do less work in credential cleanup due to pcred removal. o Clean up fork1() so as to do less work in credential cleanup and allocation. o Clean up ktrcanset() to take into account changes, and move to using suser_xxx() instead of performing a direct uid==0 comparision. o Improve commenting in various kern_prot.c credential modification calls to better document current behavior. In a couple of places, current behavior is a little questionable and we need to check POSIX.1 to make sure it's "right". More commenting work still remains to be done. o Update credential management calls, such as crfree(), to take into account new ruidinfo reference. o Modify or add the following uid and gid helper routines: change_euid() change_egid() change_ruid() change_rgid() change_svuid() change_svgid() In each case, the call now acts on a credential not a process, and as such no longer requires more complicated process locking/etc. They now assume the caller will do any necessary allocation of an exclusive credential reference. Each is commented to document its reference requirements. o CANSIGIO() is simplified to require only credentials, not processes and pcreds. o Remove lots of (p_pcred==NULL) checks. o Add an XXX to authorization code in nfs_lock.c, since it's questionable, and needs to be considered carefully. o Simplify posix4 authorization code to require only credentials, not processes and pcreds. Note that this authorization, as well as CANSIGIO(), needs to be updated to use the p_cansignal() and p_cansched() centralized authorization routines, as they currently do not take into account some desirable restrictions that are handled by the centralized routines, as well as being inconsistent with other similar authorization instances. o Update libkvm to take these changes into account.
Obtained from: TrustedBSD Project Reviewed by: green, bde, jhb, freebsd-arch, freebsd-audit
show more ...
|
#
d9b610a0 |
| 19-May-2001 |
Jonathan Lemon <jlemon@FreeBSD.org> |
Add new 'loadavg' entry, fix overflow with meminfo.
PR: 27253, 27350 Submitted by: Jim Pirzyk
|
#
23955314 |
| 19-May-2001 |
Alfred Perlstein <alfred@FreeBSD.org> |
Introduce a global lock for the vm subsystem (vm_mtx).
vm_mtx does not recurse and is required for most low level vm operations.
faults can not be taken without holding Giant.
Memory subsystems ca
Introduce a global lock for the vm subsystem (vm_mtx).
vm_mtx does not recurse and is required for most low level vm operations.
faults can not be taken without holding Giant.
Memory subsystems can now call the base page allocators safely.
Almost all atomic ops were removed as they are covered under the vm mutex.
Alpha and ia64 now need to catch up to i386's trap handlers.
FFS and NFS have been tested, other filesystems will need minor changes (grabbing the vm lock when twiddling page properties).
Reviewed (partially) by: jake, jhb
show more ...
|
#
ee72cb74 |
| 09-May-2001 |
Dag-Erling Smørgrav <des@FreeBSD.org> |
Avoid overflow when converting ticks to jiffies.
PR: 27215 Submitted by: Jim Pirzyk <Jim.Pirzyk@disney.com>
|
#
fb919e4d |
| 01-May-2001 |
Mark Murray <markm@FreeBSD.org> |
Undo part of the tangle of having sys/lock.h and sys/mutex.h included in other "system" header files.
Also help the deprecation of lockmgr.h by making it a sub-include of sys/lock.h and removing sys
Undo part of the tangle of having sys/lock.h and sys/mutex.h included in other "system" header files.
Also help the deprecation of lockmgr.h by making it a sub-include of sys/lock.h and removing sys/lockmgr.h form kernel .c files.
Sort sys/*.h includes where possible in affected files.
OK'ed by: bde (with reservations)
show more ...
|
#
33a9ed9d |
| 24-Apr-2001 |
John Baldwin <jhb@FreeBSD.org> |
Change the pfind() and zpfind() functions to lock the process that they find before releasing the allproc lock and returning.
Reviewed by: -smp, dfr, jake
|
Revision tags: release/4.3.0_cvs, release/4.3.0 |
|
#
b47ed6cb |
| 12-Mar-2001 |
Jonathan Lemon <jlemon@FreeBSD.org> |
Eliminate global node types and instead use an operations vector for each node in order to make it easier to add new entries.
Rewrite the internal directory structure so that it is possible to have
Eliminate global node types and instead use an operations vector for each node in order to make it easier to add new entries.
Rewrite the internal directory structure so that it is possible to have independent subdirectories. Utilize this to add /proc/net/dev.
Reviewed by: DES
show more ...
|
#
f553c179 |
| 07-Mar-2001 |
John Baldwin <jhb@FreeBSD.org> |
Just hold the proc lock while getting the parent's PID rather than a proctree lock.
|
#
91421ba2 |
| 21-Feb-2001 |
Robert Watson <rwatson@FreeBSD.org> |
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
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
show more ...
|