summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/procfs/procfs_subr.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Actually remove the procfs filesguenther2014-09-081-284/+0
|
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-2/+2
| | | | after discussions with beck deraadt kettenis.
* Remove the ability to ptrace via procfs, as no one is using it, so fixingguenther2011-12-241-9/+2
| | | | | | | | and extending it to support rthreads would be a waste of time. Also, don't show rthreads in the process listing in procfs. Reassurances that compat_linux doesn't need this from ajacoutot@ ok kettenis@
* Bring back the "End the VOP experiment." diff, naddy's issues wherethib2010-12-211-2/+2
| | | | | | unrelated, and his alpha is much happier now. OK deraadt@
* Backout the VOP diff until the issues naddy was seeing on alpha (gcc3)thib2010-09-101-2/+2
| | | | have been resolved.
* End the VOP experiment. Instead of the ridicolusly complicated operationthib2010-09-061-2/+2
| | | | | | | | | | | | | | | | | | | vector setup that has questionable features (that have, as far as I can tell never been used in practice, atleast not in OpenBSD), remove all the gunk and favor a simple struct full of function pointers that get set directly by each of the filesystems. Removes gobs of ugly code and makes things simpler by a magnitude. The only downside of this is that we loose the vnoperate feature so the spec/fifo operations of the filesystems need to be kept in sync with specfs and fifofs, this is no big deal as the API it self is pretty static. Many thanks to armani@ who pulled an earlier version of this diff to current after c2k10 and Gabriel Kihlman on tech@ for testing. Liked by many. "come on, find your balls" deraadt@.
* lockmgr -> rwlockoga2009-08-101-8/+6
| | | | | | same diff as before, with the uninitalized variable fixed. ok toby@
* this rwlock conversion breaks procfs (in linux compat), as found outderaadt2009-04-221-5/+7
| | | | | by Antoine Jacoutot. back out for oga to look at when he gets back in touch with earth.
* Convert lockmgr to rwlock. Been in snaps for a while.oga2009-04-021-7/+5
| | | | ok deraadt@
* MALLOC/FREE -> malloc/freehshoexer2007-12-091-3/+3
| | | | ok gilles
* declare "pid" as pid_t instead of long, and remove unneeded cast to pid_tjasper2007-06-221-3/+3
| | | | ok pedro@ thib@
* ansify/de-register.jasper2007-06-181-22/+7
| | | | no binary change
* Use more queue macros rather than doing it by hand; ok otto@ krw@miod2006-03-051-2/+2
|
* Replace procfs_domem() with a similar interface, process_domem(), which livesmiod2005-12-111-2/+3
| | | | | | | out of procfs and gets a ptrace request PT_{READ,WRITE}_{I,D} as argument; also procfs_checkioperm() becomes process_checkioperm(). From art@ some time ago; ok kettenis@ pedro@
* Remove unnecessary lockmgr() archaism that was costing too much in termspedro2005-11-191-3/+3
| | | | | | of panics and bugfixes. Access curproc directly, do not expect a process pointer as an argument. Should fix many "process context required" bugs. Incentive and okay millert@, okay marc@. Various testing, thanks.
* Remove regs and fpregs pseudo-files from procfs.kettenis2005-04-161-9/+1
| | | | ok deraadt@, miod@
* make sure uio_offset is a safe value, with suggestions from millert@tedu2004-05-051-1/+3
| | | | | ok deraadt@ millert@ problem noticed by deprotect.com
* constify constant namesmickey2003-08-111-5/+4
|
* Remove the advertising clause in the UCB license which Berkeleymillert2003-06-021-6/+2
| | | | rescinded 22 July 1999. Proofed by myself and Theo.
* call lockmgr a bit earlier to avoid a race.tedu2003-04-281-7/+8
|
* Turn the ptrace(2) syscall into a kernel compile option, option PTRACE inmiod2002-03-141-1/+3
| | | | | | | | | | | | | 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.
* Add proc0 to the PIDHASH table. art@ oknordin2002-01-301-2/+2
|
* uvm_vnp_setsizeart2001-11-151-2/+2
|
* lockmgr instead of rolling our own.art2001-11-151-16/+6
|
* Add emulation of Linux features to procfs; mostly from NetBSD. ok deraadt@tholo2001-04-091-2/+11
|
* Add procfs/cmdline; to help with linux emulation.jasoni2000-08-121-1/+5
| | | | From NetBSD.
* Updates for VFS Lite 2 + soft update.csapuntz1997-11-061-4/+9
|
* back out vfs lite2 till after 2.2deraadt1997-10-061-9/+4
|
* VFS Lite2 Changescsapuntz1997-10-061-4/+9
|
* 1) pfs_mode should be mode_t, not u_shortmillert1997-08-161-2/+2
| | | | | | | | | | | 2) Fix procfs security hole. This is basically the NetBSD fix (which is based in part on Sean Eric Fagan's FreeBSD fix) with a few minor changes. The change creates as function, procfs_checkioperm(), that has check numbers 3 and 4 from sys_ptrace(). 3) Make procfs_control() use procfs_checkioperm() as well (it already had the same basic checks but some of them were incorrect). 4) Minor stylistic cleanups, including the use of the SET/CLR/ISSET macros to aid general grokability.
* From NetBSD (mycroft):millert1997-08-011-24/+18
| | | | | Eliminate bogus uses of V{READ,WRITE,EXEC}. Use S_I[RWX]{USR,GRP,OTH} where appropriate.
* block all write ops to init in securelevel modes; nash@mcs.comderaadt1997-06-211-1/+4
|
* Fix improper cast (compiler warning).millert1997-04-061-2/+3
|
* -Wall & -Wstrict-prototype fixesniklas1996-07-021-3/+1
|
* use <sys/queue.h> for pfsnode list.mickey1996-06-211-14/+11
| | | | $OpenBSD$ additions.
* From NetBSD: update to 960217 sourcesniklas1996-02-271-5/+7
|
* initial import of NetBSD treederaadt1995-10-181-0/+312