summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/procfs (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Replace select backends with poll backends. selscan() and pollscan()millert2003-09-232-4/+17
| | | | | | | now call the poll backend. With this change we implement greater poll(2) functionality instead of emulating it via the select backend. Adapted from NetBSD and including some changes from FreeBSD. Tested by many, deraadt@ OK
* change arguments to suser. suser now takes the process, and a flagstedu2003-08-151-2/+2
| | | | | | | | | argument. old cred only calls user suser_ucred. this will allow future work to more flexibly implement the idea of a root process. looks like something i saw in freebsd, but a little different. use of suser_ucred vs suser in file system code should be looked at again, for the moment semantics remain unchanged. review and input from art@ testing and further review miod@
* constify vfsops; tedu@ okmickey2003-08-142-4/+4
|
* constify constant namesmickey2003-08-113-11/+10
|
* make procfs support statfs args. lossage noticed and patch tested by jolantedu2003-08-052-11/+5
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-0210-60/+20
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* call lockmgr a bit earlier to avoid a race.tedu2003-04-281-7/+8
|
* sprintf elimination from rohee.tedu2003-04-071-6/+6
|
* Disallow ptrace if P_SUGIDEXEC flag is set (we already disallow if P_SUGIDmillert2003-03-091-1/+2
| | | | is set). deraadt@ and tholo@ OK.
* use M_MISCFSMNT instead of M_UFSMNT for mount datatedu2003-02-241-3/+3
| | | | ok art@
* Sigh. I comitted the wrong diff in the last vfs changes.art2003-01-312-22/+8
| | | | These are the files that were ok:ed and tested.
* File system locking fixups, mostly from NetBSD:art2003-01-313-18/+65
| | | | | | | | | | | | | | | - cache_lookup move common code from various fs's here always return with vnode and parent locked adjust return codes - PDIRUNLOCK - new flag set if lookup couldn't lock parent vnode - kernfs and procfs lock vnode in get_root don't unlock (again) in kernfs_freevp fix memory leak in procfs From tedu@stanford.edu deraadt@ and various other ok
* Do not hide Pfpregs from a switch() if PT_[GS]ETFPREGS are not defined,miod2002-04-061-3/+3
| | | | | so that this compiles with option DIAGNOSTIC; fixes PR #2528 ok fgsch@
* First round of __P removal in sysmillert2002-03-144-69/+69
|
* Turn the ptrace(2) syscall into a kernel compile option, option PTRACE inmiod2002-03-144-6/+39
| | | | | | | | | | | | | your kernel configuration file. By default, GENERIC will enable this. When PTRACE is not enabled, several ptrace-like features of the procfs filesystem will be disabled as well (namely, the ability to read and write any process' registers, as well as attching, single stepping and detaching to/from processes). This should help paranoid people build better sandboxens, and us to build smaller ramdisks.
* Since all archs implement PT_GETREGS and PT_SETREGS, make then unoptional.art2002-03-112-12/+2
| | | | | | | | They still stay in MD code for backwards compatibility, but a check in ptrace.h checks if they are defined. Note - the same thing will be done with PT_{GET,SET}FPREGS once vax implements them and with PT_STEP when it's implemented by sparc, sparc64 and alpha.
* Move SET/CLR/ISSET macros to param.h. fgsch@ and millert@ oknordin2002-01-302-9/+2
|
* Add proc0 to the PIDHASH table. art@ oknordin2002-01-303-12/+11
|
* When a process is exec:ing mark it with a flag. Check that flag in ptraceart2002-01-201-1/+6
| | | | | | and procfs (and possibly more places in the future) and simply refuse to fiddle with the execing process. This is an ugly hack, but this far we haven't been successful in creating a race-free exec.
* Readd VOP_MMAP, will be used soon. Right now it's just a question toart2001-12-041-2/+2
| | | | the filesystem if we're allowed to mmap the file.
* uvm_vnp_setsizeart2001-11-151-2/+2
|
* lockmgr instead of rolling our own.art2001-11-151-16/+6
|
* Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.miod2001-11-064-10/+5
| | | | (Look ma, I might have broken the tree)
* redundant includes.art2001-11-061-3/+1
|
* No need to PHOLD/PRELE here, really.art2001-09-191-3/+1
|
* Don't include <vm/vm_kern.h> if you don't need foo_map.miod2001-09-111-2/+1
|
* Remove old vm.art2001-06-275-211/+5
|
* Get rid of several unused vnode operationscsapuntz2001-06-231-15/+1
|
* Garbage collect procfs_findtextvp().aaron2001-05-243-91/+5
|
* Initialize p to NULL in lookup.art2001-05-241-2/+2
| | | | How this could have ever worked without this is beyond me.
* No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)ho2001-05-161-3/+1
|
* Make PROCFS compile again on non-UVM systems, deraadt@ okmiod2001-04-131-1/+22
|
* Add emulation of Linux features to procfs; mostly from NetBSD. ok deraadt@tholo2001-04-097-27/+345
|
* use void * consistently in vfs_mount and sys_mount. ok @artassar2001-02-201-3/+3
|
* calculate length and allocate buffer for status. work by deraadt@ and meprovos2000-12-181-53/+92
|
* NUL not NULL; noted by Theo.jasoni2000-08-151-2/+2
|
* make procfs compile on non-uvm systemsericj2000-08-152-5/+7
|
* update sample directory listing.jasoni2000-08-121-9/+11
|
* document cmdline.jasoni2000-08-121-1/+4
|
* Add procfs/cmdline; to help with linux emulation.jasoni2000-08-124-4/+230
| | | | From NetBSD.
* update to use new checkexp vfs operationassar2000-02-071-3/+6
|
* Better fix for fdesc/procfs panic.csapuntz1999-08-131-5/+4
|
* in *_readdir(), constrain uio_offset to make sure it is right; cstone@pobox.comderaadt1999-08-131-4/+5
|
* New struct statfs with mount options. NOTE: this replaces statfs(2),millert1999-05-311-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fstatfs(2), and getfsstat(2) so you will need to build a new kernel before doing a "make build" or you will get "unimplemented syscall" errors. The new struct statfs has the following featuires: o Has a u_int32_t flags field--now softdep can have a real flag. o Uses u_int32_t instead of longs (nicer on the alpha). Note: the man page used to lie about setting invalid/unused fields to -1. SunOS does that but our code never has. o Gets rid of f_type completely. It hasn't been used since NetBSD 0.9 and having it there but always 0 is confusing. It is conceivable that this may cause some old code to not compile but that is better than silently breaking. o Adds a mount_info union that contains the FSTYPE_args struct. This means that "mount" can now tell you all the options a filesystem was mounted with. This is especially nice for NFS. Other changes: o The linux statfs emulation didn't convert between BSD fs names and linux f_type numbers. Now it does, since the BSD f_type number is useless to linux apps (and has been removed anyway) o FreeBSD's struct statfs is different from our (both old and new) and thus needs conversion. Previously, the OpenBSD syscalls were used without any real translation. o mount(8) will now show extra info when invoked with no arguments. However, to see *everything* you need to use the -v (verbose) flag.
* vmtotal -> uvm_total for uvmart1999-02-261-1/+9
|
* memory reads from other vmspace are different under uvmart1999-02-261-2/+22
|
* OK, this is another fix for the infamous i386 "PTDI panic". This fix is thepefo1998-08-301-2/+6
| | | | | | | | | | same as is used in 'vslock()'. The situation when this occurs is when a process tries to read or write to another process vm space and the _segment_ referenced have not yet been mapped. A certain way of crashing a system is to debug a program larger than 4 Mb (yes, those critters exist!). Set a break in an address above 4 Mb and pmap_enter panics because it can't fault in a new ptd page since it is not the process itself that calls pmap_enter. This is a fix, not a solution, but at least a user can't crash the kernel.
* Rename vop_revoke, vn_bwrite, vop_noislocked, vop_nolock, vop_nounlockcsapuntz1998-08-061-22/+2
| | | | | | | | | | | | to be vop_generic_revoke, vop_generic_bwrite, vop_generic_islocked, vop_generic_lock and vop_generic_unlock. Create vop_generic_abortop and propogate change to all file systems. Fix PR/371. Get rid of locking in NULLFS (should be mostly unnecessary now except for forced unmounts).
* securelevels do NOT protect running binaries; only filesystem activityderaadt1998-06-271-8/+1
|
* do not permit ptrace attach to immutable executablederaadt1998-06-091-1/+8
|