summaryrefslogtreecommitdiff
path: root/sys/miscfs/procfs/procfs_subr.c
AgeCommit message (Collapse)Author
2004-05-05make sure uio_offset is a safe value, with suggestions from millert@Ted Unangst
ok deraadt@ millert@ problem noticed by deprotect.com
2003-08-11constify constant namesMichael Shalayeff
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-04-28call lockmgr a bit earlier to avoid a race.Ted Unangst
2002-03-14Turn the ptrace(2) syscall into a kernel compile option, option PTRACE inMiod Vallat
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.
2002-01-30Add proc0 to the PIDHASH table. art@ okThomas Nordin
2001-11-15uvm_vnp_setsizeArtur Grabowski
2001-11-15lockmgr instead of rolling our own.Artur Grabowski
2001-04-09Add emulation of Linux features to procfs; mostly from NetBSD. ok deraadt@Thorsten Lockert
2000-08-12Add procfs/cmdline; to help with linux emulation.jasoni
From NetBSD.
1997-11-06Updates for VFS Lite 2 + soft update.Constantine Sapuntzakis
1997-10-06back out vfs lite2 till after 2.2Theo de Raadt
1997-10-06VFS Lite2 ChangesConstantine Sapuntzakis
1997-08-161) pfs_mode should be mode_t, not u_shortTodd C. Miller
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.
1997-08-01From NetBSD (mycroft):Todd C. Miller
Eliminate bogus uses of V{READ,WRITE,EXEC}. Use S_I[RWX]{USR,GRP,OTH} where appropriate.
1997-06-21block all write ops to init in securelevel modes; nash@mcs.comTheo de Raadt
1997-04-06Fix improper cast (compiler warning).Todd C. Miller
1996-07-02-Wall & -Wstrict-prototype fixesNiklas Hallqvist
1996-06-21use <sys/queue.h> for pfsnode list.Michael Shalayeff
$OpenBSD$ additions.
1996-02-27From NetBSD: update to 960217 sourcesNiklas Hallqvist
1995-10-18initial import of NetBSD treeTheo de Raadt