summaryrefslogtreecommitdiff
path: root/sys/miscfs/procfs
AgeCommit message (Collapse)Author
2003-04-28call lockmgr a bit earlier to avoid a race.Ted Unangst
2003-04-07sprintf elimination from rohee.Ted Unangst
2003-03-09Disallow ptrace if P_SUGIDEXEC flag is set (we already disallow if P_SUGIDTodd C. Miller
is set). deraadt@ and tholo@ OK.
2003-02-24use M_MISCFSMNT instead of M_UFSMNT for mount dataTed Unangst
ok art@
2003-01-31Sigh. I comitted the wrong diff in the last vfs changes.Artur Grabowski
These are the files that were ok:ed and tested.
2003-01-31File system locking fixups, mostly from NetBSD:Artur Grabowski
- 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
2002-04-06Do not hide Pfpregs from a switch() if PT_[GS]ETFPREGS are not defined,Miod Vallat
so that this compiles with option DIAGNOSTIC; fixes PR #2528 ok fgsch@
2002-03-14First round of __P removal in sysTodd C. Miller
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-03-11Since all archs implement PT_GETREGS and PT_SETREGS, make then unoptional.Artur Grabowski
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.
2002-01-30Move SET/CLR/ISSET macros to param.h. fgsch@ and millert@ okThomas Nordin
2002-01-30Add proc0 to the PIDHASH table. art@ okThomas Nordin
2002-01-20When a process is exec:ing mark it with a flag. Check that flag in ptraceArtur Grabowski
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.
2001-12-04Readd VOP_MMAP, will be used soon. Right now it's just a question toArtur Grabowski
the filesystem if we're allowed to mmap the file.
2001-11-15uvm_vnp_setsizeArtur Grabowski
2001-11-15lockmgr instead of rolling our own.Artur Grabowski
2001-11-06Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.Miod Vallat
(Look ma, I might have broken the tree)
2001-11-06redundant includes.Artur Grabowski
2001-09-19No need to PHOLD/PRELE here, really.Artur Grabowski
2001-09-11Don't include <vm/vm_kern.h> if you don't need foo_map.Miod Vallat
2001-06-27Remove old vm.Artur Grabowski
2001-06-23Get rid of several unused vnode operationsConstantine Sapuntzakis
2001-05-24Garbage collect procfs_findtextvp().Aaron Campbell
2001-05-24Initialize p to NULL in lookup.Artur Grabowski
How this could have ever worked without this is beyond me.
2001-05-16No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)Hakan Olsson
2001-04-13Make PROCFS compile again on non-UVM systems, deraadt@ okMiod Vallat
2001-04-09Add emulation of Linux features to procfs; mostly from NetBSD. ok deraadt@Thorsten Lockert
2001-02-20use void * consistently in vfs_mount and sys_mount. ok @artassar
2000-12-18calculate length and allocate buffer for status. work by deraadt@ and meNiels Provos
2000-08-15NUL not NULL; noted by Theo.jasoni
2000-08-15make procfs compile on non-uvm systemsEric Jackson
2000-08-12update sample directory listing.jasoni
2000-08-12document cmdline.jasoni
2000-08-12Add procfs/cmdline; to help with linux emulation.jasoni
From NetBSD.
2000-02-07update to use new checkexp vfs operationassar
1999-08-13Better fix for fdesc/procfs panic.Constantine Sapuntzakis
1999-08-13in *_readdir(), constrain uio_offset to make sure it is right; cstone@pobox.comTheo de Raadt
1999-05-31New struct statfs with mount options. NOTE: this replaces statfs(2),Todd C. Miller
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.
1999-02-26vmtotal -> uvm_total for uvmArtur Grabowski
1999-02-26memory reads from other vmspace are different under uvmArtur Grabowski
1998-08-30OK, this is another fix for the infamous i386 "PTDI panic". This fix is thePer Fogelstrom
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.
1998-08-06Rename vop_revoke, vn_bwrite, vop_noislocked, vop_nolock, vop_nounlockConstantine Sapuntzakis
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).
1998-06-27securelevels do NOT protect running binaries; only filesystem activityTheo de Raadt
1998-06-09do not permit ptrace attach to immutable executableTheo de Raadt
1998-02-08Updates to match type changes in syscall tablesThorsten Lockert
1997-12-30fix a nasty code typo; rotel@indigo.ieTheo de Raadt
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-09-11Fix {KERNFS,NULLFS,UMAPFS,UNION}_DIAGNOSTIC kernel compilation errors.Todd C. Miller
From Alan Barrett <apb@iafrica.com> with some changes.