summaryrefslogtreecommitdiffstats
path: root/sys/fs
Commit message (Collapse)AuthorAgeFilesLines
* smbfs_advlock: simplify overflow checks (copy from kern_lockf.c)ache2001-08-291-7/+10
| | | | minor formatting issues to minimize differences
* Cosmetique & style fixes from bdeache2001-08-261-5/+2
|
* Copy from kern_lockf.c: remove extra checkache2001-08-241-2/+0
|
* Copy yet one check for SEEK_END overflowache2001-08-231-1/+2
|
* Copy my newly introduced l_len<0 'oops' fix from kern_lockf.cache2001-08-231-2/+4
|
* Copy POSIX l_len<0 handling from kern_lockf.cache2001-08-231-3/+6
|
* Cosmetique: correct English in commentsache2001-08-231-2/+3
| | | | non-cosmetique: add missing break; - original code was broken here
* Move <machine/*> after <sys/*>ache2001-08-231-1/+2
| | | | Pointed by: bde
* adv. lock:ache2001-08-231-2/+14
| | | | | copy EOVERFLOW handling code from main variant fix type of 'size' arg
* Use proper endian conversion.bp2001-08-211-1/+1
| | | | | Obtained from: Mac OS X MFC after: 1 week
* Return proper length of _PC_NAME_MAX value if long names support is enabled.bp2001-08-211-1/+1
| | | | | Obtained from: Mac OS X MFC after: 1 week
* linux ls fails on DEVFS /dev because linux_getdents fails becausephk2001-08-141-4/+22
| | | | | | | | | | linux_getdents uses VOP_READDIR( ..., &ncookies, &cookies ) instead of VOP_READDIR( ..., NULL, NULL ) because it seems to need the offsets for linux_dirent and sizeof(dirent) != sizeof(linux_dirent)... PR: 29467 Submitted by: Michael Reifenberger <root@nihil.plaut.de> Reviewed by: phk
* Remove dangling prototype for the now defunct procfs_kmemaccess()rwatson2001-08-031-3/+0
| | | | | | call. Obtained from: TrustedBSD Project
* Collapse a Pmem case in with the other debugging files case for procfs,rwatson2001-08-031-5/+2
| | | | | | | | as there are now "unusual" protection properties to Pmem that differ from the other files. While I'm at it, introduce proc locking for the other files, which was previously present only in the Pmem case. Obtained from: TrustedBSD Project
* Remove read permission for group on the /proc/*/mem file, since kmemrwatson2001-08-031-2/+1
| | | | | | | no longer requires access. Reviewed by: tmm Obtained from: TrustedBSD Project
* Prior to support for almost all ps activity via sysctl, ps used procfs,rwatson2001-08-033-42/+9
| | | | | | | | | | | | | | | | | | | | and so special-casing was introduced to provide extra procfs privilege to the kmem group. With the advent of non-setgid kmem ps, this code is no longer required, and in fact, can is potentially harmful as it allocates privilege to a gid that is increasingly less meaningful. Knowledge of specific gid's in kernel is also generally bad precedent, as the kernel security policy doesn't distinguish gid's specifically, only uid 0. This commit removes reference to kmem in procfs, both in terms of access control decisions, and the applying of gid kmem to the /proc/*/mem file, simplifying the associated code considerably. Processes are still permitted to access the mem file based on the debugging policy, so ps -e still works fine for normal processes and use. Reviewed by: tmm Obtained from: TrustedBSD Project
* remove support for creating files and directories from msdosfs_mknodassar2001-07-191-14/+1
|
* Grab the process lock around psignal().jhb2001-07-181-0/+2
| | | | Noticed by: tanimura
* o Replace calls to p_can(..., P_CAN_xxx) with calls to p_canxxx().rwatson2001-07-057-15/+15
| | | | | | | | | | | | | | | | | | | | | 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
* - Update the vmmeter statistics for vnode pageins and pageouts injhb2001-07-041-2/+7
| | | | | | getpages/putpages. - Use vm_page_undirty() instead of messing with pages' dirty fields directly.
* With Alfred's permission, remove vm_mtx in favor of a fine-grained approachdillon2001-07-043-17/+7
| | | | | | | | | (this commit is just the first stage). Also add various GIANT_ macros to formalize the removal of Giant, making it easy to test in a more piecemeal fashion. These macros will allow us to test fine-grained locks to a degree before removing Giant, and also after, and to remove Giant in a piecemeal fashion via sysctl's on those subsystems which the authors believe can operate without Giant.
* Fix a mntvnode and vnode interlock reversal.jhb2001-06-281-2/+3
|
* Protect the mnt_vnode list with the mntvnode lock.jhb2001-06-282-4/+19
|
* #if 0 out pfs_null() to silence the warning about it not being referenced.des2001-06-151-0/+2
|
* Fix warning: 568: warning: `portal_badop' defined but not usedpeter2001-06-151-13/+0
|
* Fix warning (exposed NetBSD code):peter2001-06-151-1/+1
| | | | 94: warning: `ntfs_bmap' declared `static' but never defined
* Fix warnings (mostly harmless, due to struct bio being embedded in buf):peter2001-06-151-2/+2
| | | | | 738: warning: passing arg 1 of `biodone' from incompatible pointer type 745: warning: passing arg 1 of `biodone' from incompatible pointer type
* Fix warning: 552: warning: `fdesc_badop' defined but not usedpeter2001-06-151-12/+0
|
* Warning fix: coda_fbsd.c:113: warning: unused variable `ret'peter2001-06-151-1/+0
|
* Coda do not call vop_defaultop(), so add nesessary calls for VM objects.bp2001-06-141-0/+3
| | | | | Submitted by: Greg Troxel <gdt@ir.bbn.com> MFC after: 2 days
* the last argument to copyinstr is of t ype size_t, not u_intmjacob2001-06-131-3/+3
|
* With this commit, I hereby pronounce gensetdefs past its use-by date.peter2001-06-134-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace the a.out emulation of 'struct linker_set' with something a little more flexible. <sys/linker_set.h> now provides macros for accessing elements and completely hides the implementation. The linker_set.h macros have been on the back burner in various forms since 1998 and has ideas and code from Mike Smith (SET_FOREACH()), John Polstra (ELF clue) and myself (cleaned up API and the conversion of the rest of the kernel to use it). The macros declare a strongly typed set. They return elements with the type that you declare the set with, rather than a generic void *. For ELF, we use the magic ld symbols (__start_<setname> and __stop_<setname>). Thanks to Richard Henderson <rth@redhat.com> for the trick about how to force ld to provide them for kld's. For a.out, we use the old linker_set struct. NOTE: the item lists are no longer null terminated. This is why the code impact is high in certain areas. The runtime linker has a new method to find the linker set boundaries depending on which backend format is in use. linker sets are still module/kld unfriendly and should never be used for anything that may be modular one day. Reviewed by: eivind
* For some reason, though the module builds just fine without <sys/lock.h>,des2001-06-113-0/+3
| | | | LINT fails to build without it.
* Bail out if the fill function failed.des2001-06-101-0/+10
|
* Whoops, some of my test code snuck in here.des2001-06-101-1/+1
|
* Argh. Fix braino in previous commit.des2001-06-101-1/+1
|
* Add a 'flags' argument to the PFS_PROCDIR macro.des2001-06-101-2/+2
|
* Add support for process-dependent directories. This means that save fordes2001-06-106-147/+195
| | | | the lack of a man page, pseudofs is mostly complete now.
* Blah, not my day. This file needs <sys/mutex.h> now.des2001-06-101-0/+1
|
* Remember to unlock the process pfind() returns.des2001-06-101-1/+5
|
* Add missing #include of <sys/mutex.h>.des2001-06-103-0/+3
|
* Catch up with the change in sbuf_new's prototype.des2001-06-101-8/+8
|
* The kq write filter was hooked up to the wrong socket, and thus wasjlemon2001-06-061-4/+11
| | | | | | | not behaving correctly. Fix by attaching to the correct socket. Also call so{rw}wakeup in addition to the fifo wakeup, so that any kqfilters attached to the socket buffer get poked.
* Lock VM Giant prior to locking a vm map.tanimura2001-06-061-0/+7
| | | | | | Spotted by: Daniel Rock <D.Rock@t-online.de> Tested by: David Wolfskill <david@catwhisker.org>, Sean Eric Fagan <sef@kithrup.com>
* Now works again and as a module and with devfs.shafeeq2001-06-053-9/+73
| | | | Used the bpf & tun drivers as examples as to what is necessary for devfs.
* Support /dev/tun cloning. Ansify if_tun.c while I'm there.brian2001-06-011-1/+2
| | | | | | | | | | | | | | Only tun0 -> tun32767 may now be opened as struct ifnet's if_unit is a short. It's now possible to open /dev/tun and get a handle back for an available tun device (use devname to find out what you got). The implementation uses rman by popular demand (and against my judgement) to track opened devices and uses the new dev_depends() to ensure that all make_dev()d devices go away before the module is unloaded. Reviewed by: phk
* - VFS_SET(msdos) -> VFS_SET(msdosfs)ru2001-06-011-1/+1
| | | | | | - msdos.ko -> msdosfs.ko - mount_msdos(8) -> mount_msdosfs(8) - "msdos" -> "msdosfs" compatibility glue in mount(8)
* Don't copy the trailing zero in readlink, it confuses namei().phk2001-05-261-1/+1
| | | | PR: 27656
* - sys/n[tw]fs moved to sys/fs/n[tw]fsru2001-05-2612-41/+41
| | | | - /usr/include/n[tw]fs moved to /usr/include/fs/n[tw]fs
* Create a general facility for making dev_t's depend on anotherphk2001-05-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | dev_t. The dev_depends(dev_t, dev_t) function is for tying them to each other. When destroy_dev() is called on a dev_t, all dev_t's depending on it will also be destroyed (depth first order). Rewrite the make_dev_alias() to use this dependency facility. kern/subr_disk.c: Make the disk mini-layer use dependencies to make sure all relevant dev_t's are removed when the disk disappears. Make the disk mini-layer precreate some magic sub devices which the disk/slice/label code expects to be there. kern/subr_disklabel.c: Remove some now unneeded variables. kern/subr_diskmbr.c: Remove some ancient, commented out code. kern/subr_diskslice.c: Minor cleanup. Use name from dev_t instead of dsname()
OpenPOWER on IntegriCloud