Up to [cvs.NetBSD.org] / src / sys / kern
Request diff between arbitrary revisions
Default branch: MAIN
Current tag: MAIN
Revision 1.463 / (download) - annotate - [select for diffs], Sun Jan 13 08:15:03 2013 UTC (4 months, 1 week ago) by dholland
Branch: MAIN
CVS Tags: yamt-pagecache-base8,
tls-maxphys-nbase,
tls-maxphys-base,
khorben-n900,
agc-symver-base,
agc-symver,
HEAD
Changes since 1.462: +10 -30
lines
Diff to previous 1.462 (colored)
Revert defective O_SEARCH implementation committed by manu@ along with
the *at system calls on November 18th of last year. Reasons to revert
it include:
- it is incorrect in a whole variety of ways (but fortunately, one
of them is that the missing and improper permission checks have
no net effect);
- it was committed without review or discussion;
- core ruled that all the new O_* flags pertaining to the *at calls
needed to wait until their semantics could be clarified.
manu was asked to revert it on these grounds but has ignored the request.
I have left O_SEARCH defined and visible and made open() explicitly
ignore it. This way, most code that tries to use it will continue to
build and run. I've also arranged lib/libc/c063/t_o_search.c so that
the tests that make use of the O_SEARCH semantics will disappear until
O_SEARCH comes back, and fixed some mistakes and/or incorrect hacks
that were causing some of these to succeed despite the broken O_SEARCH
implementation.
Revision 1.462 / (download) - annotate - [select for diffs], Fri Nov 30 13:26:37 2012 UTC (5 months, 3 weeks ago) by njoly
Branch: MAIN
CVS Tags: yamt-pagecache-base7
Changes since 1.461: +8 -2
lines
Diff to previous 1.461 (colored)
Apply fix from hannken to ensure that VOP_ACCESS() is called on a locked vnode for fd_nameiat(), fd_nameiat_simple() and do_sys_openat(). Fix both PR/47226 and PR/47255.
Revision 1.461 / (download) - annotate - [select for diffs], Mon Nov 19 15:01:17 2012 UTC (6 months ago) by martin
Branch: MAIN
Changes since 1.460: +9 -4
lines
Diff to previous 1.460 (colored)
Use copyout to copy data from kernel out to userland! Fixes PR kern/47217.
Revision 1.460 / (download) - annotate - [select for diffs], Sun Nov 18 17:41:53 2012 UTC (6 months ago) by manu
Branch: MAIN
Changes since 1.459: +449 -186
lines
Diff to previous 1.459 (colored)
Add most system calls for POSIX extended API set, part 2, with test cases: faccessat(2), fchmodat(2), fchownat(2), fstatat(2), mkdirat(2), mkfifoat(2), mknodat(2), linkat(2), readlinkat(2), symlinkat(2), renameat(2), unlinkat(2), utimensat(2), openat(2). Also implement O_SEARCH for openat(2) Still missing: - some flags for openat(2) - fexecve(2) implementation
Revision 1.459 / (download) - annotate - [select for diffs], Fri Oct 19 02:07:22 2012 UTC (7 months ago) by riastradh
Branch: MAIN
CVS Tags: yamt-pagecache-base6
Changes since 1.458: +7 -11
lines
Diff to previous 1.458 (colored)
No, we can't elide the fs-wide rename lock for same-directory rename.
rename("a/b", "a/c") and rename("a/c/x", "a/b/y") will deadlock.
Darn.
Revision 1.458 / (download) - annotate - [select for diffs], Fri Oct 12 02:37:20 2012 UTC (7 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.457: +288 -124
lines
Diff to previous 1.457 (colored)
Disentangle do_sys_rename. Elide the fs-wide rename lock for single-directory renames. This required changing the order of lookups, so that we know what the directories are before we lock the nodes. Clean up error branches, explain why various nonsense happens and what it does and doesn't do, and note some of what needs to change.
Revision 1.457 / (download) - annotate - [select for diffs], Wed Jun 27 12:28:28 2012 UTC (10 months, 3 weeks ago) by cheusov
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.456: +15 -2
lines
Diff to previous 1.456 (colored)
Add new action KAUTH_CRED_CHROOT for kauth(9)'s credential scope. Reviewed and approved by elad@.
Revision 1.456 / (download) - annotate - [select for diffs], Tue May 8 08:44:49 2012 UTC (12 months, 2 weeks ago) by gson
Branch: MAIN
CVS Tags: yamt-pagecache-base5,
jmcneill-usbmp-base10
Changes since 1.455: +2 -21
lines
Diff to previous 1.455 (colored)
Move VFS_EXTATTRCTL to mount_domount(). This makes the fs/puffs/t_fuzz:mountfuzz7, fs/puffs/t_fuzz:mountfuzz8, and fs/zfs/t_zpool:create tests pass again. Patch from manu, discussed on tech-kern and committed at his request.
Revision 1.455 / (download) - annotate - [select for diffs], Wed May 2 20:48:29 2012 UTC (12 months, 3 weeks ago) by rmind
Branch: MAIN
Changes since 1.454: +12 -13
lines
Diff to previous 1.454 (colored)
do_open: move pathbuf destruction to the callers, thus simplify and fix a memory leak on error path.
Revision 1.454 / (download) - annotate - [select for diffs], Mon Apr 30 10:05:12 2012 UTC (12 months, 3 weeks ago) by manu
Branch: MAIN
Changes since 1.453: +13 -10
lines
Diff to previous 1.453 (colored)
Fix the extattr start fix. Looking up the filesystemroot vnode again does not seems to be reliable. Instead save it before mount_domount() sets it to NULL.
Revision 1.453 / (download) - annotate - [select for diffs], Mon Apr 30 03:51:10 2012 UTC (12 months, 3 weeks ago) by manu
Branch: MAIN
Changes since 1.452: +12 -6
lines
Diff to previous 1.452 (colored)
Fix mount -o extattr : previous patch fixed a panic but caused operation to happen on the mount point instead of the mounted filesystem.
Revision 1.452 / (download) - annotate - [select for diffs], Sat Apr 28 17:30:19 2012 UTC (12 months, 3 weeks ago) by manu
Branch: MAIN
CVS Tags: jmcneill-usbmp-base9
Changes since 1.451: +10 -8
lines
Diff to previous 1.451 (colored)
Do not use vp after mount_domount() call as it sets it to NULL on success. This fixes a panic when starting extended attributes.
Revision 1.451 / (download) - annotate - [select for diffs], Tue Apr 17 19:15:15 2012 UTC (13 months ago) by christos
Branch: MAIN
Changes since 1.450: +6 -8
lines
Diff to previous 1.450 (colored)
it is not an error if the kernel needs to clear the setuid/ setgid bit on write/chown/chgrp
Revision 1.450 / (download) - annotate - [select for diffs], Tue Mar 13 18:40:56 2012 UTC (14 months, 1 week ago) by elad
Branch: MAIN
CVS Tags: yamt-pagecache-base4,
jmcneill-usbmp-base8
Changes since 1.449: +21 -22
lines
Diff to previous 1.449 (colored)
Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with
something meaningful. All relevant documentation has been updated or
written.
Most of these changes were brought up in the following messages:
http://mail-index.netbsd.org/tech-kern/2012/01/18/msg012490.html
http://mail-index.netbsd.org/tech-kern/2012/01/19/msg012502.html
http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012728.html
Thanks to christos, manu, njoly, and jmmv for input.
Huge thanks to pgoyette for spinning these changes through some build
cycles and ATF.
Revision 1.449 / (download) - annotate - [select for diffs], Sun Feb 12 13:12:45 2012 UTC (15 months, 1 week ago) by martin
Branch: MAIN
CVS Tags: netbsd-6-base,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2
Branch point for: netbsd-6
Changes since 1.448: +5 -3
lines
Diff to previous 1.448 (colored)
fd_open(): fix confusion between userland and kernel encoding of open flags
Revision 1.448 / (download) - annotate - [select for diffs], Sat Feb 11 23:16:17 2012 UTC (15 months, 1 week ago) by martin
Branch: MAIN
Changes since 1.447: +61 -24
lines
Diff to previous 1.447 (colored)
Add a posix_spawn syscall, as discussed on tech-kern. Based on the summer of code project by Charles Zhang, heavily reworked later by me - all bugs are likely mine. Ok: core, releng.
Revision 1.447 / (download) - annotate - [select for diffs], Wed Feb 1 05:46:45 2012 UTC (15 months, 3 weeks ago) by dholland
Branch: MAIN
Changes since 1.446: +4 -4
lines
Diff to previous 1.446 (colored)
Be consistent about whether idtype and objtype codes are signed or unsigned. They are signed. (While unsigned might have been a better choice, it doesn't really matter and the majority of preexisting uses were signed. And consistency is good.)
Revision 1.446 / (download) - annotate - [select for diffs], Wed Feb 1 05:43:54 2012 UTC (15 months, 3 weeks ago) by dholland
Branch: MAIN
Changes since 1.445: +4 -4
lines
Diff to previous 1.445 (colored)
Improve the names of some members of struct quotactl_args. These are effectively function parameter names, but since they need to be described with the same names in the man page the choices do matter. Some.
Revision 1.445 / (download) - annotate - [select for diffs], Wed Feb 1 05:39:28 2012 UTC (15 months, 3 weeks ago) by dholland
Branch: MAIN
Changes since 1.444: +50 -44
lines
Diff to previous 1.444 (colored)
Split out a do_sys_quotactl for compat_netbsd32.
Revision 1.444 / (download) - annotate - [select for diffs], Wed Feb 1 05:34:41 2012 UTC (15 months, 3 weeks ago) by dholland
Branch: MAIN
Changes since 1.443: +393 -21
lines
Diff to previous 1.443 (colored)
Change the syscall API for quotas over to the new non-proplib one.
- struct vfs_quotactl_args -> struct quotactl_args
- add sys/stdint.h to sys/quotactl.h for clean userland build
- install sys/quotactl.h in /usr/include
- update set lists for same
- add new marshalling code in libquota
- add new unmarshalling code in vfs_syscalls.c
- discard proplib interpreter code in vfs_quotactl.c
- add dispatching code for the 14 quotactl ops in vfs_quotactl.c
- mark the proplib quotactl syscall obsolete
- add a new syscall number for the new quotactl syscall
- change the name of the syscall to __quotactl()
- remove the decl of the old quotactl from quota/quotaprop.h
- add a decl of the new quotactl to sys/quotactl.h
- update the libc build
- update ktruss
- remove proplib marshalling code from libquota
- update copy of syscall table in gdb ppc sources
- hack rumphijack to accomodate new quotactl name (as I recall,
pooka wanted such a name change to simplify something, but I
don't really see what/how)
This change appears to require a kernel version bump for rumpish
reasons.
Revision 1.443 / (download) - annotate - [select for diffs], Sun Jan 29 06:29:05 2012 UTC (15 months, 3 weeks ago) by dholland
Branch: MAIN
Changes since 1.442: +3 -3
lines
Diff to previous 1.442 (colored)
Add vfs_quotactl() in between the syscall and VFS_QUOTACTL. Call it from the COMPAT_50 code as well as the current sys_quotactl instead of going directly to VFS_QUOTACTL. Doesn't actually do anything yet.
Revision 1.442 / (download) - annotate - [select for diffs], Fri Dec 2 12:30:14 2011 UTC (17 months, 3 weeks ago) by yamt
Branch: MAIN
CVS Tags: jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Changes since 1.441: +4 -5
lines
Diff to previous 1.441 (colored)
fix an indent an unwarp a short line.
Revision 1.441 / (download) - annotate - [select for diffs], Fri Nov 18 21:17:45 2011 UTC (18 months ago) by christos
Branch: MAIN
CVS Tags: jmcneill-audiomp3-base,
jmcneill-audiomp3
Changes since 1.440: +5 -14
lines
Diff to previous 1.440 (colored)
- collect the long (and sometimes incomplete) lists of basic flags into
the header file and use that.
- sort the list of basic flags
- add MNT_RELATIME, ST_RELATIME
- mask all the op flags, for symmetry.
The real bit difference is (which is harmless):
- mount was missing MNT_EXTATTR
- update sets MNT_RDONLY twice
- ops also could or in MNT_GETARGS, but this is impossible because the
code would have chosen to do getargs then.
Revision 1.440 / (download) - annotate - [select for diffs], Fri Oct 14 09:23:31 2011 UTC (19 months, 1 week ago) by hannken
Branch: MAIN
CVS Tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base
Branch point for: yamt-pagecache
Changes since 1.439: +8 -3
lines
Diff to previous 1.439 (colored)
Change the vnode locking protocol of VOP_GETATTR() to request at least a shared lock. Make all calls outside of file systems respect it. The calls from file systems need review. No objections from tech-kern.
Revision 1.439 / (download) - annotate - [select for diffs], Mon Aug 22 22:12:34 2011 UTC (21 months ago) by enami
Branch: MAIN
Changes since 1.438: +2 -4
lines
Diff to previous 1.438 (colored)
Remove return statement which can't be reached.
Revision 1.438 / (download) - annotate - [select for diffs], Mon Aug 22 22:09:07 2011 UTC (21 months ago) by enami
Branch: MAIN
Changes since 1.437: +8 -5
lines
Diff to previous 1.437 (colored)
When both nanoseconds fields of futimens/utimensat call are set to UTIMES_NOW, act as if NULL is passed to second argument, i.e., do same permission check and set exactly same value to both access and modification time.
Revision 1.437 / (download) - annotate - [select for diffs], Thu Aug 18 19:34:47 2011 UTC (21 months ago) by manu
Branch: MAIN
Changes since 1.436: +5 -2
lines
Diff to previous 1.436 (colored)
Fix utimes/futimes after utimensat/futimens addition
Revision 1.436 / (download) - annotate - [select for diffs], Wed Aug 17 09:29:59 2011 UTC (21 months, 1 week ago) by manu
Branch: MAIN
Changes since 1.435: +0 -2
lines
Diff to previous 1.435 (colored)
Missing bit in previous commit: do_sys_utimens prototype in the right place.
Revision 1.435 / (download) - annotate - [select for diffs], Wed Aug 17 08:31:27 2011 UTC (21 months, 1 week ago) by martin
Branch: MAIN
Changes since 1.434: +4 -2
lines
Diff to previous 1.434 (colored)
add missing prototype
Revision 1.434 / (download) - annotate - [select for diffs], Wed Aug 17 07:22:34 2011 UTC (21 months, 1 week ago) by manu
Branch: MAIN
Changes since 1.433: +91 -14
lines
Diff to previous 1.433 (colored)
Add futimens(2) and part of utimnsat(2)
Revision 1.433 / (download) - annotate - [select for diffs], Mon Aug 8 12:08:53 2011 UTC (21 months, 2 weeks ago) by manu
Branch: MAIN
Changes since 1.432: +232 -11
lines
Diff to previous 1.432 (colored)
First stage of support for Extended API set 2. Most of the think is unimplemented, except enough of linkat(2) to hardlink to a symlink. Everything new in headers is guarded #ifdef _INCOMPLETE_XOPEN_C063 since some software (e.g.: xcvs in our own tree) will assume they can use openat(2) when AT_FDCWD is defined. _INCOMPLETE_XOPEN_C063 will go away once support will be completed.
Revision 1.432 / (download) - annotate - [select for diffs], Sun Jul 24 09:40:10 2011 UTC (22 months ago) by martin
Branch: MAIN
Changes since 1.431: +4 -3
lines
Diff to previous 1.431 (colored)
Make sure to not overwrite error if it already is EEXISTS - hopefully will fix > 100 failing fs tests in my last test run.
Revision 1.431 / (download) - annotate - [select for diffs], Sun Jul 3 15:25:09 2011 UTC (22 months, 3 weeks ago) by hannken
Branch: MAIN
Changes since 1.430: +4 -2
lines
Diff to previous 1.430 (colored)
Return EINVAL when trying to create a device node with "rdev == VNOVAL". Fixes PR #45111 "tmpfs panic with mknod(2)".
Revision 1.430 / (download) - annotate - [select for diffs], Fri Jun 17 14:23:51 2011 UTC (23 months, 1 week ago) by manu
Branch: MAIN
Changes since 1.429: +32 -4
lines
Diff to previous 1.429 (colored)
Add mount -o extattr option to enable extended attributs (corrently only for UFS1). Remove kernel option for EA backing store autocreation and do it by default. Add a sysctl so that autocreated attriutr size can be modified.
Revision 1.429 / (download) - annotate - [select for diffs], Sun Jun 12 03:35:57 2011 UTC (23 months, 1 week ago) by rmind
Branch: MAIN
Changes since 1.428: +2 -2
lines
Diff to previous 1.428 (colored)
Welcome to 5.99.53! Merge rmind-uvmplock branch: - Reorganize locking in UVM and provide extra serialisation for pmap(9). New lock order: [vmpage-owner-lock] -> pmap-lock. - Simplify locking in some pmap(9) modules by removing P->V locking. - Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs). - Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner. Add TLBSTATS option for x86 to collect statistics about TLB shootdowns. - Unify /dev/mem et al in MI code and provide required locking (removes kernel-lock on some ports). Also, avoid cache-aliasing issues. Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches formed the core changes of this branch.
Revision 1.428 / (download) - annotate - [select for diffs], Sat Jun 11 03:00:19 2011 UTC (23 months, 2 weeks ago) by uebayasi
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase,
rmind-uvmplock-base
Changes since 1.427: +3 -3
lines
Diff to previous 1.427 (colored)
Fix build; p was not used, but l was passed to kauth. Use curlwp directly.
Revision 1.427 / (download) - annotate - [select for diffs], Fri Jun 10 21:02:46 2011 UTC (23 months, 2 weeks ago) by matt
Branch: MAIN
Changes since 1.426: +2 -3
lines
Diff to previous 1.426 (colored)
l isn't used. nuke it.
Revision 1.426 / (download) - annotate - [select for diffs], Fri Jun 10 13:07:14 2011 UTC (23 months, 2 weeks ago) by uebayasi
Branch: MAIN
Changes since 1.425: +2 -4
lines
Diff to previous 1.425 (colored)
do_sys_rename: Kill an unused variable.
Revision 1.425 / (download) - annotate - [select for diffs], Sun Jun 5 09:04:22 2011 UTC (23 months, 2 weeks ago) by dsl
Branch: MAIN
Changes since 1.424: +12 -8
lines
Diff to previous 1.424 (colored)
Don't directly call sys_sync() from random bits of code, instead add do_sys_sync() that takes an 'lwp' (for l_cred) as an argument. Explicitly pass &lwp0 rather than NULL and expecting sys_sync to substitute some random lwp.
Revision 1.424 / (download) - annotate - [select for diffs], Thu Jun 2 18:54:43 2011 UTC (23 months, 3 weeks ago) by dsl
Branch: MAIN
Changes since 1.423: +3 -3
lines
Diff to previous 1.423 (colored)
Fix type in comment (before I replace the 'l' with 'curlwp')
Revision 1.423 / (download) - annotate - [select for diffs], Sun Apr 24 21:35:29 2011 UTC (2 years, 1 month ago) by rmind
Branch: MAIN
CVS Tags: cherry-xenmp-base
Branch point for: cherry-xenmp
Changes since 1.422: +8 -5
lines
Diff to previous 1.422 (colored)
sys_link: prevent hard links on directories (cross-mount operations are already prevented). File systems are no longer responsible to check this. Clean up and add asserts (note that dvp == vp cannot happen in vop_link). OK dholland@
Revision 1.422 / (download) - annotate - [select for diffs], Sun Apr 10 15:45:33 2011 UTC (2 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.421: +48 -56
lines
Diff to previous 1.421 (colored)
- Add O_CLOEXEC to open(2)
- Add fd_set_exclose() to encapsulate uses of FIO{,N}CLEX, O_CLOEXEC, F{G,S}ETFD
- Add a pipe1() function to allow passing flags to the fd's that pipe(2)
opens to ease implementation of linux pipe2(2)
- Factor out fp handling code from open(2) and fhopen(2)
Revision 1.421 / (download) - annotate - [select for diffs], Sat Apr 2 04:57:35 2011 UTC (2 years, 1 month ago) by rmind
Branch: MAIN
Changes since 1.420: +2 -4
lines
Diff to previous 1.420 (colored)
Remove unused M_MOUNT.
Revision 1.420 / (download) - annotate - [select for diffs], Sat Apr 2 04:28:56 2011 UTC (2 years, 1 month ago) by rmind
Branch: MAIN
Changes since 1.419: +8 -319
lines
Diff to previous 1.419 (colored)
Split off parts of vfs_subr.c into vfs_vnode.c and vfs_mount.c modules. No functional change. Discussed on tech-kern@.
Revision 1.419 / (download) - annotate - [select for diffs], Sat Mar 12 07:16:50 2011 UTC (2 years, 2 months ago) by yamt
Branch: MAIN
Changes since 1.418: +27 -10
lines
Diff to previous 1.418 (colored)
prevent cross-mount operations.
Revision 1.418 / (download) - annotate - [select for diffs], Sun Mar 6 17:08:36 2011 UTC (2 years, 2 months ago) by bouyer
Branch: MAIN
Changes since 1.417: +19 -8
lines
Diff to previous 1.417 (colored)
merge the bouyer-quota2 branch. This adds a new on-disk format to store disk quota usage and limits, integrated with ffs metadata. Usage is checked by fsck_ffs (no more quotacheck) and is covered by the WAPBL journal. Enabled with kernel option QUOTA2 (added where QUOTA was enabled in kernel config files), turned on with tunefs(8) on a per-filesystem basis. mount_mfs(8) can also turn quotas on. See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html for details.
Revision 1.417 / (download) - annotate - [select for diffs], Mon Feb 28 03:23:44 2011 UTC (2 years, 2 months ago) by dholland
Branch: MAIN
CVS Tags: bouyer-quota2-nbase
Changes since 1.416: +4 -3
lines
Diff to previous 1.416 (colored)
Revert previous, which doesn't cover all the cases if F_OK isn't 0, and just CTASSERT that it is, as that's not remotely likely to change. Per source-changes-d; ok by Christos.
Revision 1.416 / (download) - annotate - [select for diffs], Mon Feb 28 00:12:15 2011 UTC (2 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.415: +3 -3
lines
Diff to previous 1.415 (colored)
don't depend on F_OK being 0.
Revision 1.415 / (download) - annotate - [select for diffs], Sun Feb 27 23:06:40 2011 UTC (2 years, 2 months ago) by dholland
Branch: MAIN
Changes since 1.414: +7 -2
lines
Diff to previous 1.414 (colored)
Check for bogus flags to access() up front. Otherwise we end up calling VOP_ACCESS with flags 0 and something asserts deep in the bowels of kauth. PR 44648 from Taylor Campbell. (I moved the check earlier relative to the suggested patch.) Pullup candidate.
Revision 1.414 / (download) - annotate - [select for diffs], Thu Jan 13 07:25:50 2011 UTC (2 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: uebayasi-xip-base7,
jruoho-x86intr-base,
bouyer-quota2-base
Branch point for: jruoho-x86intr,
bouyer-quota2
Changes since 1.413: +4 -3
lines
Diff to previous 1.413 (colored)
allow file system to decide if it can be downgraded from r/w to r/o
Revision 1.413 / (download) - annotate - [select for diffs], Sun Jan 2 05:12:33 2011 UTC (2 years, 4 months ago) by dholland
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231
Changes since 1.412: +4 -4
lines
Diff to previous 1.412 (colored)
Remove remaining references to SAVESTART.
Revision 1.412 / (download) - annotate - [select for diffs], Sun Jan 2 05:09:31 2011 UTC (2 years, 4 months ago) by dholland
Branch: MAIN
Changes since 1.411: +3 -10
lines
Diff to previous 1.411 (colored)
Remove the special refcount behavior (adding an extra reference to the parent dir) associated with SAVESTART in relookup(). Check all call sites to make sure that SAVESTART wasn't set while calling relookup(); if it was, adjust the refcount behavior. Remove related references to SAVESTART. The only code that was reaching the extra ref was msdosfs_rename, where the refcount behavior was already fairly broken and/or gross; repair it. Add a dummy 4th argument to relookup to make sure code that hasn't been inspected won't compile. (This will go away next time the relookup semantics change, which they will.)
Revision 1.411 / (download) - annotate - [select for diffs], Sun Jan 2 05:01:20 2011 UTC (2 years, 4 months ago) by dholland
Branch: MAIN
Changes since 1.410: +2 -5
lines
Diff to previous 1.410 (colored)
Remove unused nameidata field ni_startdir.
Revision 1.410 / (download) - annotate - [select for diffs], Tue Nov 30 10:30:02 2010 UTC (2 years, 5 months ago) by dholland
Branch: MAIN
Changes since 1.409: +2 -4
lines
Diff to previous 1.409 (colored)
Abolish struct componentname's cn_pnbuf. Use the path buffer in the pathbuf object passed to namei as work space instead. (For now a pnbuf pointer appears in struct nameidata, to support certain unclean things that haven't been fixed yet, but it will be going away in the future.) This removes the need for the SAVENAME and HASBUF namei flags.
Revision 1.409 / (download) - annotate - [select for diffs], Fri Nov 19 06:44:43 2010 UTC (2 years, 6 months ago) by dholland
Branch: MAIN
Changes since 1.408: +234 -74
lines
Diff to previous 1.408 (colored)
Introduce struct pathbuf. This is an abstraction to hold a pathname and the metadata required to interpret it. Callers of namei must now create a pathbuf and pass it to NDINIT (instead of a string and a uio_seg), then destroy the pathbuf after the namei session is complete. Update all namei call sites accordingly. Add a pathbuf(9) man page and update namei(9). The pathbuf interface also now appears in a couple of related additional places that were passing string/uio_seg pairs that were later fed into NDINIT. Update other call sites accordingly.
Revision 1.408 / (download) - annotate - [select for diffs], Sat Aug 21 13:19:39 2010 UTC (2 years, 9 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11,
uebayasi-xip-base6,
uebayasi-xip-base5,
uebayasi-xip-base4,
uebayasi-xip-base3
Changes since 1.407: +2 -4
lines
Diff to previous 1.407 (colored)
Update the rest of the kernel to conform to the module subsystem's new locking protocol.
Revision 1.407 / (download) - annotate - [select for diffs], Wed Jun 30 15:44:54 2010 UTC (2 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base10,
uebayasi-xip-base2
Changes since 1.406: +28 -17
lines
Diff to previous 1.406 (colored)
Enable kernel-internal symlink creation with do_sys_symlink(). I did this a while ago already, but can't remember why i didn't commit it then.
Revision 1.406 / (download) - annotate - [select for diffs], Thu Jun 24 13:03:12 2010 UTC (2 years, 11 months ago) by hannken
Branch: MAIN
Changes since 1.405: +23 -23
lines
Diff to previous 1.405 (colored)
Clean up vnode lock operations pass 2: VOP_UNLOCK(vp, flags) -> VOP_UNLOCK(vp): Remove the unneeded flags argument. Welcome to 5.99.32. Discussed on tech-kern.
Revision 1.405 / (download) - annotate - [select for diffs], Tue Jun 15 09:43:36 2010 UTC (2 years, 11 months ago) by hannken
Branch: MAIN
Changes since 1.404: +61 -45
lines
Diff to previous 1.404 (colored)
When mounting a file system re-lookup and lock the directory we mount on after the file system is setup by VFS_MOUNT(). This way recursive vnode locks are no longer needed here and mounts on null mounts no longer fail as described in PR #43439 (mount_null panic: lockdebug_wantlock: locking against myself). Based on a proposal from and Reviewed by: David A. Holland <dholland@netbsd.org>
Revision 1.404 / (download) - annotate - [select for diffs], Wed Mar 3 00:47:31 2010 UTC (3 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9,
uebayasi-xip-base1
Branch point for: rmind-uvmplock
Changes since 1.403: +2 -4
lines
Diff to previous 1.403 (colored)
remove redundant checks of PK_MARKER.
Revision 1.403 / (download) - annotate - [select for diffs], Fri Jan 15 01:00:46 2010 UTC (3 years, 4 months ago) by pooka
Branch: MAIN
CVS Tags: uebayasi-xip-base
Branch point for: uebayasi-xip
Changes since 1.402: +37 -10
lines
Diff to previous 1.402 (colored)
Fix reference counting for vfsops in mount. Otherwise it's possible
(for an unprivileged user) to force vfs modules to remain loaded
forever. Also, it's possible for an admin with fat fingers to have
to curse out loud (a lot) and reboot.
.. or at least fix things as much as seems to be possible without
involving 1000 zorkmids. do_sys_mount() takes either struct vfsops
(which hopefully came properly referenced) or a userspace string
for file system type. The standard in-kernel calling convention
of "do_sys_mount(l, vfs_getopsbyname("nfs"), NULL," is not to be
considered healthy, kosher, or even tasty (although if vfs_getopsbyname()
fails the whole thing *currently* fails without the program counter
pointing to hyperspace).
Revision 1.402 / (download) - annotate - [select for diffs], Fri Jan 8 11:35:10 2010 UTC (3 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.401: +19 -19
lines
Diff to previous 1.401 (colored)
The VATTR_NULL/VREF/VHOLD/HOLDRELE() macros lost their will to live years ago when the kernel was modified to not alter ABI based on DIAGNOSTIC, and now just call the respective function interfaces (in lowercase). Plenty of mix'n match upper/lowercase has creeped into the tree since then. Nuke the macros and convert all callsites to lowercase. no functional change
Revision 1.401 / (download) - annotate - [select for diffs], Wed Dec 23 01:09:24 2009 UTC (3 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.400: +4 -4
lines
Diff to previous 1.400 (colored)
Define namei flag INRENAME and set it if a lookup operation is part of rename. This helps with building better asserts for rename in the DELETE lookup ... the RENAME lookup is quite obviously a part of rename.
Revision 1.400 / (download) - annotate - [select for diffs], Sat Dec 19 20:28:27 2009 UTC (3 years, 5 months ago) by martin
Branch: MAIN
Changes since 1.399: +3 -3
lines
Diff to previous 1.399 (colored)
Use the kernel space version of the vfs name, not the original userspace pointer. Avoids crashes on archs with completely separate userspace VA.
Revision 1.399 / (download) - annotate - [select for diffs], Sun Aug 9 22:49:00 2009 UTC (3 years, 9 months ago) by haad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8,
yamt-nfs-mp-base7,
matt-premerge-20091211,
jym-xensuspend-nbase
Changes since 1.398: +7 -8
lines
Diff to previous 1.398 (colored)
Add enum uio_seg argument to do_sys_mknod and do_sys_mkdir so these functions can be called from kernel, too. Change needed for zfs device node creation, until we have propoer devfs. Oked by ad@.
Revision 1.398 / (download) - annotate - [select for diffs], Sun Aug 2 20:44:55 2009 UTC (3 years, 9 months ago) by bad
Branch: MAIN
Changes since 1.397: +3 -2
lines
Diff to previous 1.397 (colored)
Add a note to change_root() that the callers need to authorize the operation. As requested by elad@.
Revision 1.397 / (download) - annotate - [select for diffs], Sat Aug 1 21:17:11 2009 UTC (3 years, 9 months ago) by bad
Branch: MAIN
Changes since 1.396: +34 -50
lines
Diff to previous 1.396 (colored)
As discussed on tech-kern: Factor out common code of chroot-like syscalls into change_root() and export that function for use in other parts of the kernel. Rename change_dir() to chdir_lookup() as the latter describes better what the function does. While there, move the namei_data initialisation into chdir_lookup(), too. And export chdir_lookup().
Revision 1.396 / (download) - annotate - [select for diffs], Thu Jul 2 12:53:47 2009 UTC (3 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6,
jymxensuspend-base
Changes since 1.395: +13 -7
lines
Diff to previous 1.395 (colored)
expose mkdir to in-kernel consumers
Revision 1.395 / (download) - annotate - [select for diffs], Mon Jun 29 05:08:18 2009 UTC (3 years, 10 months ago) by dholland
Branch: MAIN
Changes since 1.394: +87 -86
lines
Diff to previous 1.394 (colored)
Convert 67 namei call sites to use namei_simple, in these functions: check_console, veriexecclose, veriexec_delete, veriexec_file_add, emul_find_root, coff_load_shlib (sh3 version), coff_load_shlib, compat_20_sys_statfs, compat_20_netbsd32_statfs, ELFNAME2(netbsd32,probe_noteless), darwin_sys_statfs, ibcs2_sys_statfs, ibcs2_sys_statvfs, linux_sys_uselib, osf1_sys_statfs, sunos_sys_statfs, sunos32_sys_statfs, ultrix_sys_statfs, do_sys_mount, fss_create_files (3 of 4), adosfs_mount, cd9660_mount, coda_ioctl, coda_mount, ext2fs_mount, ffs_mount, filecore_mount, hfs_mount, lfs_mount, msdosfs_mount, ntfs_mount, sysvbfs_mount, udf_mount, union_mount, sys_chflags, sys_lchflags, sys_chmod, sys_lchmod, sys_chown, sys_lchown, sys___posix_chown, sys___posix_lchown, sys_link, do_sys_pstatvfs, sys_quotactl, sys_revoke, sys_truncate, do_sys_utimes, sys_extattrctl, sys_extattr_set_file, sys_extattr_set_link, sys_extattr_get_file, sys_extattr_get_link, sys_extattr_delete_file, sys_extattr_delete_link, sys_extattr_list_file, sys_extattr_list_link, sys_setxattr, sys_lsetxattr, sys_getxattr, sys_lgetxattr, sys_listxattr, sys_llistxattr, sys_removexattr, sys_lremovexattr All have been scrutinized (several times, in fact) and compile-tested, but not all have been explicitly tested in action. XXX: While I haven't (intentionally) changed the use or nonuse of XXX: TRYEMULROOT in any of these places, I'm not convinced all the XXX: uses are correct; an audit might be desirable.
Revision 1.394 / (download) - annotate - [select for diffs], Sat May 2 14:13:28 2009 UTC (4 years ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
jym-xensuspend-base
Changes since 1.393: +2 -4
lines
Diff to previous 1.393 (colored)
Move dovfsusermount from vfs_syscalls.c to param.c: secmodel bsd44 depends on it and we can't isolate it in vfs. (no, it doesn't really belong in param.c, but I couldn't figure out a better place for it)
Revision 1.393 / (download) - annotate - [select for diffs], Wed Apr 29 01:03:43 2009 UTC (4 years ago) by dyoung
Branch: MAIN
CVS Tags: nick-hppapmap-base4
Changes since 1.392: +4 -17
lines
Diff to previous 1.392 (colored)
Extract common code from vfs_rootmountalloc(9) and mount_domount() into a new struct mount-allocation routine, vfs_mountalloc(9). Documentation updates will follow. Attention: Synchronization Oversight Committee! In mount_domount(), I postpone the call mutex_enter(&mp->mnt_updating) until right before the VFS_MOUNT(9) call because (1) that looks to me like the earliest possible opportunity for mp to become visible to any other LWP, because it was just kmem_zalloc(9)'d and (2) it made extracting the common code much easier. Tell me if my reasoning is faulty.
Revision 1.392 / (download) - annotate - [select for diffs], Tue Apr 28 03:01:15 2009 UTC (4 years ago) by yamt
Branch: MAIN
Changes since 1.391: +3 -3
lines
Diff to previous 1.391 (colored)
do_sys_utimes: fix a bug introduced by rev.1.367. VA_UTIMES_NULL is in va_vaflags, not va_flags.
Revision 1.391 / (download) - annotate - [select for diffs], Fri Mar 13 11:05:26 2009 UTC (4 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: nick-hppapmap-base3,
nick-hppapmap-base
Changes since 1.390: +2 -4
lines
Diff to previous 1.390 (colored)
do_sys_unlink: remove an unused credential.
Revision 1.390 / (download) - annotate - [select for diffs], Mon Feb 23 20:33:30 2009 UTC (4 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Changes since 1.389: +8 -7
lines
Diff to previous 1.389 (colored)
Fix some comments.
Revision 1.389 / (download) - annotate - [select for diffs], Sun Feb 22 20:28:06 2009 UTC (4 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.388: +2 -10
lines
Diff to previous 1.388 (colored)
PR kern/26878 FFSv2 + softdep = livelock (no free ram) PR kern/16942 panic with softdep and quotas PR kern/19565 panic: softdep_write_inodeblock: indirect pointer #1 mismatch PR kern/26274 softdep panic: allocdirect_merge: ... PR kern/26374 Long delay before non-root users can write to softdep partitions PR kern/28621 1.6.x "vp != NULL" panic in ffs_softdep.c:4653 while unmounting a softdep (+quota) filesystem PR kern/29513 FFS+Softdep panic with unfsck-able file-corruption PR kern/31544 The ffs softdep code appears to fail to write dirty bits to disk PR kern/31981 stopping scsi disk can cause panic (softdep) PR kern/32116 kernel panic in softdep (assertion failure) PR kern/32532 softdep_trackbufs deadlock PR kern/37191 softdep: locking against myself PR kern/40474 Kernel panic after remounting raid root with softdep Retire softdep, pass 2. As discussed and later formally announced on the mailing lists.
Revision 1.388 / (download) - annotate - [select for diffs], Sun Feb 15 03:52:49 2009 UTC (4 years, 3 months ago) by enami
Branch: MAIN
Changes since 1.387: +3 -7
lines
Diff to previous 1.387 (colored)
Simplify the code; we already have a hint to decide which string to copy. (And at least gcc generates better code.)
Revision 1.387 / (download) - annotate - [select for diffs], Sat Feb 14 17:06:35 2009 UTC (4 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.386: +24 -20
lines
Diff to previous 1.386 (colored)
from enami: Only apply rootdir changes if the chroot dir != /
Revision 1.386 / (download) - annotate - [select for diffs], Sat Feb 14 16:55:25 2009 UTC (4 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.385: +4 -4
lines
Diff to previous 1.385 (colored)
PR/40634: Christoph Badura: "chroot / /sbin/mount" shows only / as mounted
Revision 1.385 / (download) - annotate - [select for diffs], Thu Feb 5 13:37:24 2009 UTC (4 years, 3 months ago) by enami
Branch: MAIN
Branch point for: jym-xensuspend
Changes since 1.384: +3 -3
lines
Diff to previous 1.384 (colored)
Make revoke(2) works as before: - vfs_syscalls.c rev. 1.342 fails to invert condition correcly when then-clause and else-clause is swapped. Since then, revoke(2) fails if it is issued by file owner. - Probably since rev. 1.160 of genfs_vnops.c, revoke(2) fails if it is applied to non-device file and drops kernel into ddb.
Revision 1.384 / (download) - annotate - [select for diffs], Sat Jan 17 07:02:35 2009 UTC (4 years, 4 months ago) by yamt
Branch: MAIN
CVS Tags: mjf-devfs2-base
Changes since 1.383: +15 -12
lines
Diff to previous 1.383 (colored)
malloc -> kmem_alloc.
Revision 1.383 / (download) - annotate - [select for diffs], Sun Jan 11 02:45:53 2009 UTC (4 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.382: +28 -17
lines
Diff to previous 1.382 (colored)
merge christos-time_t
Revision 1.382 / (download) - annotate - [select for diffs], Sun Dec 14 23:12:58 2008 UTC (4 years, 5 months ago) by elad
Branch: MAIN
CVS Tags: christos-time_t-nbase,
christos-time_t-base
Changes since 1.381: +4 -4
lines
Diff to previous 1.381 (colored)
Fix length passed to strlcpy(): we used to get names one character shorter than reality. Should be pulled up to netbsd-5.
Revision 1.381 / (download) - annotate - [select for diffs], Wed Nov 19 18:36:07 2008 UTC (4 years, 6 months ago) by ad
Branch: MAIN
CVS Tags: haad-nbase2,
haad-dm-base2,
haad-dm-base,
ad-audiomp2-base,
ad-audiomp2
Changes since 1.380: +8 -8
lines
Diff to previous 1.380 (colored)
Make the emulations, exec formats, coredump, NFS, and the NFS server into modules. By and large this commit: - shuffles header files and ifdefs - splits code out where necessary to be modular - adds module glue for each of the components - adds/replaces hooks for things that can be installed at runtime
Revision 1.380 / (download) - annotate - [select for diffs], Sun Nov 16 18:44:07 2008 UTC (4 years, 6 months ago) by pooka
Branch: MAIN
Changes since 1.379: +3 -2
lines
Diff to previous 1.379 (colored)
<sys/buf.h> police
Revision 1.379 / (download) - annotate - [select for diffs], Fri Nov 14 23:13:02 2008 UTC (4 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.378: +3 -3
lines
Diff to previous 1.378 (colored)
Fix a comment.
Revision 1.378 / (download) - annotate - [select for diffs], Fri Nov 14 23:10:57 2008 UTC (4 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.377: +17 -43
lines
Diff to previous 1.377 (colored)
- Move some more compat code into sys/compat. - Split 4.3BSD ifioctl stuff into its own file. - Remove some ifdefs that include small fragments of vfs compat code which are difficult to relocate elsewhere.
Revision 1.377 / (download) - annotate - [select for diffs], Wed Nov 12 12:36:16 2008 UTC (4 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.376: +2 -3
lines
Diff to previous 1.376 (colored)
Remove LKMs and switch to the module framework, pass 1. Proposed on tech-kern@.
Revision 1.376 / (download) - annotate - [select for diffs], Wed Oct 22 11:16:29 2008 UTC (4 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: netbsd-5-base,
matt-mips64-base2
Branch point for: nick-hppapmap,
netbsd-5
Changes since 1.375: +5 -3
lines
Diff to previous 1.375 (colored)
- Be clear about whether module load is explicit or system initiated (auto). - Require that module_lock is held to autoload, so that any preconditions can be safely checked.
Revision 1.375 / (download) - annotate - [select for diffs], Thu Sep 25 14:37:30 2008 UTC (4 years, 7 months ago) by wiz
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4,
haad-dm-base1
Changes since 1.374: +3 -3
lines
Diff to previous 1.374 (colored)
Fix typo in comment.
Revision 1.374 / (download) - annotate - [select for diffs], Thu Sep 25 14:17:29 2008 UTC (4 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.373: +5 -7
lines
Diff to previous 1.373 (colored)
PR kern/39307 (mfs will sometimes panic at umount time) Change dounmount() so that it never drops the caller provided reference. Garbage collecting 'struct mount' is up to the caller.
Revision 1.373 / (download) - annotate - [select for diffs], Wed Sep 24 10:07:19 2008 UTC (4 years, 8 months ago) by ad
Branch: MAIN
Changes since 1.372: +6 -4
lines
Diff to previous 1.372 (colored)
PR kern/30525 remounting ffs read-only (mount -ur) does not sync metadata Prevent r/w to r/o downgrade until such time as someone has verified all the relevant file system code.
Revision 1.372 / (download) - annotate - [select for diffs], Wed Sep 24 09:44:09 2008 UTC (4 years, 8 months ago) by ad
Branch: MAIN
Changes since 1.371: +3 -5
lines
Diff to previous 1.371 (colored)
PR kern/39307 mfs will sometimes panic at umount time Don't drop reference to the mount if VFS_START() fails - that's for unmount to do.
Revision 1.371 / (download) - annotate - [select for diffs], Wed Sep 17 14:49:25 2008 UTC (4 years, 8 months ago) by hannken
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3
Changes since 1.370: +3 -12
lines
Diff to previous 1.370 (colored)
Replace the fss unmount hook with a vfs_hook.
fssvar.h: struct device * -> device_t.
fss.c: establish unmount hook on first attach, remove on last detach.
vfs_syscalls.c: remove the call of fss_umount_hook().
vfs_trans.c: destroy cow handlers on unmount as fstrans_unmount() will be
called before vfs_hooks.
Revision 1.370 / (download) - annotate - [select for diffs], Thu Jul 31 05:38:05 2008 UTC (4 years, 9 months ago) by simonb
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-2
Changes since 1.369: +6 -5
lines
Diff to previous 1.369 (colored)
Merge the simonb-wapbl branch. From the original branch commit: Add Wasabi System's WAPBL (Write Ahead Physical Block Logging) journaling code. Originally written by Darrin B. Jewell while at Wasabi and updated to -current by Antti Kantee, Andy Doran, Greg Oster and Simon Burge. OK'd by core@, releng@.
Revision 1.369 / (download) - annotate - [select for diffs], Tue Jun 24 11:21:46 2008 UTC (4 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: simonb-wapbl-nbase,
simonb-wapbl-base
Branch point for: haad-dm
Changes since 1.368: +2 -29
lines
Diff to previous 1.368 (colored)
Nothing uses getsock/getvnode any more.
Revision 1.368 / (download) - annotate - [select for diffs], Tue Jun 17 21:02:08 2008 UTC (4 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-1,
wrstuden-revivesa-base
Changes since 1.367: +4 -4
lines
Diff to previous 1.367 (colored)
set mtime/atime properly, not backwards.
Revision 1.367 / (download) - annotate - [select for diffs], Tue Jun 17 16:18:01 2008 UTC (4 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.366: +21 -10
lines
Diff to previous 1.366 (colored)
PR/38942: Pedro F. Giffuni: no support for birthtime in utimes(2).
Revision 1.366 / (download) - annotate - [select for diffs], Tue Jun 10 14:14:01 2008 UTC (4 years, 11 months ago) by simonb
Branch: MAIN
CVS Tags: yamt-pf42-base4
Changes since 1.365: +3 -3
lines
Diff to previous 1.365 (colored)
In mount_domount() there is no need to initialise "mp" if the first time we use it we set it.
Revision 1.365 / (download) - annotate - [select for diffs], Mon May 26 18:20:36 2008 UTC (4 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pf42-base3
Branch point for: simonb-wapbl
Changes since 1.364: +7 -3
lines
Diff to previous 1.364 (colored)
More fixes needed in the error paths for the chroot code to work.
Revision 1.364 / (download) - annotate - [select for diffs], Mon May 26 02:29:13 2008 UTC (5 years ago) by christos
Branch: MAIN
Changes since 1.363: +6 -4
lines
Diff to previous 1.363 (colored)
PR/38745: Kouichirou Hiratsuka: chroot(8) can leak information of outside of chrooted directory
Revision 1.363 / (download) - annotate - [select for diffs], Tue May 20 19:30:03 2008 UTC (5 years ago) by ad
Branch: MAIN
Changes since 1.362: +3 -4
lines
Diff to previous 1.362 (colored)
Ignore return from module_load() and just try vfsop lookup again.
Revision 1.362 / (download) - annotate - [select for diffs], Tue May 20 19:20:38 2008 UTC (5 years ago) by ad
Branch: MAIN
Changes since 1.361: +3 -3
lines
Diff to previous 1.361 (colored)
If autoloading a module, don't consider the current working directory.
Revision 1.361 / (download) - annotate - [select for diffs], Tue May 20 17:28:59 2008 UTC (5 years ago) by ad
Branch: MAIN
Changes since 1.360: +11 -7
lines
Diff to previous 1.360 (colored)
Don't try to load a module while holding a vnode lock.
Revision 1.360 / (download) - annotate - [select for diffs], Tue May 20 17:25:49 2008 UTC (5 years ago) by ad
Branch: MAIN
Changes since 1.359: +13 -4
lines
Diff to previous 1.359 (colored)
If mount fails because the needed file system code isn't in kernel, try to autoload with the needed vfsops.
Revision 1.359 / (download) - annotate - [select for diffs], Tue May 6 19:14:32 2008 UTC (5 years ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base2,
yamt-nfs-mp-base2,
hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.358: +3 -3
lines
Diff to previous 1.358 (colored)
sys_unmount: drop ref to root dir before dounmount(), otherwise we'll always get EBUSY.
Revision 1.358 / (download) - annotate - [select for diffs], Tue May 6 18:43:44 2008 UTC (5 years ago) by ad
Branch: MAIN
Changes since 1.357: +57 -69
lines
Diff to previous 1.357 (colored)
PR kern/38141 lookup/vfs_busy acquire rwlock recursively Simplify the mount locking. Remove all the crud to deal with recursion on the mount lock, and crud to deal with unmount as another weirdo lock. Hopefully this will once and for all fix the deadlocks with this. With this commit there are two locks on each mount: - krwlock_t mnt_unmounting. This is used to prevent unmount across critical sections like getnewvnode(). It's only ever read locked with rw_tryenter(), and is only ever write locked in dounmount(). A write hold can't be taken on this lock if the current LWP could hold a vnode lock. - kmutex_t mnt_updating. This is taken by threads updating the mount, for example when going r/o -> r/w, and is only present to serialize updates. In order to take this lock, a read hold must first be taken on mnt_unmounting, and the two need to be held across the operation. One effect of this change: previously if an unmount failed, we would make a half hearted attempt to back out of it gracefully, but that was unlikely to work in a lot of cases. Now while an unmount that will be aborted is in progress, new file operations within the mount will fail instead of being delayed. That is unlikely to be a problem though, because if the admin requests unmount of a file system then s(he) has made a decision to deny access to the resource.
Revision 1.357 / (download) - annotate - [select for diffs], Tue May 6 13:31:02 2008 UTC (5 years ago) by xtraeme
Branch: MAIN
Changes since 1.356: +3 -3
lines
Diff to previous 1.356 (colored)
Make this build again.
Revision 1.356 / (download) - annotate - [select for diffs], Tue May 6 12:54:25 2008 UTC (5 years ago) by ad
Branch: MAIN
Changes since 1.355: +6 -5
lines
Diff to previous 1.355 (colored)
PR kern/38141 lookup/vfs_busy acquire rwlock recursively - sys_sync: acquire a write lock on the mount since the operation modifies the mount structure. - sys_fchdir: use vfs_trybusy(). If an unmount is in progress, just fail it.
Revision 1.355 / (download) - annotate - [select for diffs], Tue May 6 12:51:22 2008 UTC (5 years ago) by ad
Branch: MAIN
Changes since 1.354: +48 -24
lines
Diff to previous 1.354 (colored)
Fix a couple of problems with checkdirs(): - vnode and cwd locks were being taken with proc_lock held, which is bad because proc_lock can only be held for a short period of time. - Processes could have continually forked and escaped notice, keeping a reference to the old directory on top of which a new mount exists.
Revision 1.354 / (download) - annotate - [select for diffs], Wed Apr 30 12:49:17 2008 UTC (5 years ago) by ad
Branch: MAIN
Changes since 1.353: +20 -24
lines
Diff to previous 1.353 (colored)
PR kern/38135 vfs_busy/vfs_trybusy confusion The previous fix worked, but it opened a window where mounts could have disappeared from mountlist while the caller was traversing it using vfs_trybusy(). Fix that.
Revision 1.353 / (download) - annotate - [select for diffs], Tue Apr 29 23:51:04 2008 UTC (5 years ago) by ad
Branch: MAIN
Changes since 1.352: +43 -15
lines
Diff to previous 1.352 (colored)
kern/38135 vfs_busy/vfs_trybusy confusion The symptom was that sometimes file systems would occasionally not appear in output from 'df' or 'mount' if the system was busy. Resolution: - Make mount locks work somewhat like vm_map locks. - vfs_trybusy() now only fails if the mount is gone, or if someone is unmounting the file system. Simple contention on mnt_lock doesn't cause it to fail. - vfs_busy() will wait even if the file system is being unmounted.
Revision 1.352 / (download) - annotate - [select for diffs], Tue Apr 29 15:51:23 2008 UTC (5 years ago) by ad
Branch: MAIN
Changes since 1.351: +4 -2
lines
Diff to previous 1.351 (colored)
Ignore processes with PK_MARKER set.
Revision 1.351 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:05 2008 UTC (5 years ago) by martin
Branch: MAIN
Changes since 1.350: +2 -9
lines
Diff to previous 1.350 (colored)
Remove clause 3 and 4 from TNF licenses
Revision 1.350 / (download) - annotate - [select for diffs], Fri Apr 25 13:40:55 2008 UTC (5 years, 1 month ago) by joerg
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.349: +3 -3
lines
Diff to previous 1.349 (colored)
Before allowing rmdir to progess into the netherhells called VFS, check if no filesystem is mounted on this node. This can happen for null mounts on top of null mounts.
Revision 1.349 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:30 2008 UTC (5 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.348: +5 -4
lines
Diff to previous 1.348 (colored)
Network protocol interrupts can now block on locks, so merge the globals proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock). Implications: - Inspecting process state requires thread context, so signals can no longer be sent from a hardware interrupt handler. Signal activity must be deferred to a soft interrupt or kthread. - As the proc state locking is simplified, it's now safe to take exit() and wait() out from under kernel_lock. - The system spends less time at IPL_SCHED, and there is less lock activity.
Revision 1.348 / (download) - annotate - [select for diffs], Fri Mar 28 05:02:08 2008 UTC (5 years, 1 month ago) by dholland
Branch: MAIN
CVS Tags: yamt-pf42-baseX,
yamt-pf42-base
Branch point for: yamt-pf42,
christos-time_t
Changes since 1.347: +13 -2
lines
Diff to previous 1.347 (colored)
Yet another rename workaround - this time check for . and .. early because relookup() objects to being asked to handle them.
Revision 1.347 / (download) - annotate - [select for diffs], Tue Mar 25 22:13:32 2008 UTC (5 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: ad-socklock-base1
Changes since 1.346: +6 -3
lines
Diff to previous 1.346 (colored)
mount_domount: hold an additional reference to the mountpoint across the call to VFS_START. The file system can be unmounted before VFS_START returns. Partially addresses PR kern/38291.
Revision 1.346 / (download) - annotate - [select for diffs], Fri Mar 21 21:55:00 2008 UTC (5 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15,
yamt-lazymbuf-base14
Changes since 1.345: +127 -172
lines
Diff to previous 1.345 (colored)
Catch up with descriptor handling changes. See kern_descrip.c revision 1.173 for details.
Revision 1.345 / (download) - annotate - [select for diffs], Wed Jan 30 11:47:01 2008 UTC (5 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
keiichi-mipv6,
hpcarm-cleanup-base
Branch point for: mjf-devfs2
Changes since 1.344: +74 -57
lines
Diff to previous 1.344 (colored)
PR kern/37706 (forced unmount of file systems is unsafe): - Do reference counting for 'struct mount'. Each vnode associated with a mount takes a reference, and in turn the mount takes a reference to the vfsops. - Now that mounts are reference counted, replace the overcomplicated mount locking inherited from 4.4BSD with a recursable rwlock.
Revision 1.344 / (download) - annotate - [select for diffs], Mon Jan 28 14:31:18 2008 UTC (5 years, 3 months ago) by dholland
Branch: MAIN
Changes since 1.343: +53 -2
lines
Diff to previous 1.343 (colored)
Fix some race conditions in rename. Introduce a per-FS rename lock and new vfsops to manipulate it. Get this lock while renaming. Also add another relookup() in do_sys_rename, which is a hack to kludge around some of the worst deficiencies of ufs_rename. reviewed-by: pooka (and an earlier rev by ad) posted on tech-kern with no objections.
Revision 1.343 / (download) - annotate - [select for diffs], Fri Jan 25 14:32:15 2008 UTC (5 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.342: +2 -26
lines
Diff to previous 1.342 (colored)
Remove VOP_LEASE. Discussed on tech-kern.
Revision 1.342 / (download) - annotate - [select for diffs], Thu Jan 24 17:32:55 2008 UTC (5 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.341: +6 -12
lines
Diff to previous 1.341 (colored)
specfs changes for PR kern/37717 (raidclose() is no longer called on shutdown). There are still problems with device access and a PR will be filed. - Kill checkalias(). Allow multiple vnodes to reference a single device. - Don't play dangerous tricks with block vnodes to ensure that only one vnode can describe a block device. Instead, prohibit concurrent opens of block devices. As a bonus remove the unreliable code that prevents multiple file system mounts on the same device. It's no longer needed. - Track opens by vnode and by device. Issue cdev_close() when the last open goes away, instead of abusing vnode::v_usecount to tell if the device is open.
Revision 1.341 / (download) - annotate - [select for diffs], Thu Jan 10 19:04:23 2008 UTC (5 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: bouyer-xeni386-nbase,
bouyer-xeni386-base
Changes since 1.340: +2 -9
lines
Diff to previous 1.340 (colored)
Remove hack that's no longer needed.
Revision 1.340 / (download) - annotate - [select for diffs], Wed Jan 9 08:18:12 2008 UTC (5 years, 4 months ago) by elad
Branch: MAIN
Changes since 1.339: +26 -16
lines
Diff to previous 1.339 (colored)
Refactor part of the sys_revoke() code so that it can be used in the compat code. Allows for the removal of two redundant kauth(9) calls. okay christos@.
Revision 1.339 / (download) - annotate - [select for diffs], Sat Jan 5 19:08:49 2008 UTC (5 years, 4 months ago) by dsl
Branch: MAIN
CVS Tags: matt-armv6-base
Changes since 1.338: +8 -8
lines
Diff to previous 1.338 (colored)
Use FILE_LOCK() and FILE_UNLOCK()
Revision 1.338 / (download) - annotate - [select for diffs], Wed Jan 2 11:48:56 2008 UTC (5 years, 4 months ago) by ad
Branch: MAIN
Changes since 1.337: +17 -19
lines
Diff to previous 1.337 (colored)
Merge vmlocking2 to head.
Revision 1.337 / (download) - annotate - [select for diffs], Wed Dec 26 16:01:37 2007 UTC (5 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.336: +19 -7
lines
Diff to previous 1.336 (colored)
Merge more changes from vmlocking2, mainly: - Locking improvements. - Use pool_cache for more items.
Revision 1.336 / (download) - annotate - [select for diffs], Mon Dec 24 15:04:19 2007 UTC (5 years, 5 months ago) by ad
Branch: MAIN
Changes since 1.335: +22 -14
lines
Diff to previous 1.335 (colored)
Export do_sys_unlink, do_sys_rename to the rest of the kernel.
Revision 1.335 / (download) - annotate - [select for diffs], Thu Dec 20 23:03:13 2007 UTC (5 years, 5 months ago) by dsl
Branch: MAIN
Changes since 1.334: +182 -181
lines
Diff to previous 1.334 (colored)
Convert all the system call entry points from:
int foo(struct lwp *l, void *v, register_t *retval)
to:
int foo(struct lwp *l, const struct foo_args *uap, register_t *retval)
Fixup compat code to not write into 'uap' and (in some cases) to actually
pass a correctly formatted 'uap' structure with the right name to the
next routine.
A few 'compat' routines that just call standard ones have been deleted.
All the 'compat' code compiles (along with the kernels required to test
build it).
98% done by automated scripts.
Revision 1.334 / (download) - annotate - [select for diffs], Sat Dec 8 19:29:50 2007 UTC (5 years, 5 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base3,
yamt-kmem-base2,
yamt-kmem-base,
yamt-kmem,
jmcneill-pm-base,
cube-autoconf-base,
cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.333: +37 -36
lines
Diff to previous 1.333 (colored)
Remove cn_lwp from struct componentname. curlwp should be used from on. The NDINIT() macro no longer takes the lwp parameter and associates the credentials of the calling thread with the namei structure.
Revision 1.333 / (download) - annotate - [select for diffs], Fri Nov 30 16:52:20 2007 UTC (5 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: vmlocking2-base2,
vmlocking2-base1,
vmlocking-nbase,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base
Branch point for: vmlocking2
Changes since 1.332: +5 -15
lines
Diff to previous 1.332 (colored)
- reduce the number of VOP_ACCESS calls for O_RDWR. for nfs, it reduces the number of rpcs. - reduce code duplication.
Revision 1.332 / (download) - annotate - [select for diffs], Mon Nov 26 19:02:09 2007 UTC (5 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.331: +57 -57
lines
Diff to previous 1.331 (colored)
Remove the "struct lwp *" argument from all VFS and VOP interfaces. The general trend is to remove it from all kernel interfaces and this is a start. In case the calling lwp is desired, curlwp should be used. quick consensus on tech-kern
Revision 1.331 / (download) - annotate - [select for diffs], Wed Oct 24 15:28:55 2007 UTC (5 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: jmcneill-base,
bouyer-xenamd64-base2,
bouyer-xenamd64-base
Branch point for: mjf-devfs
Changes since 1.330: +47 -26
lines
Diff to previous 1.330 (colored)
80col & whitespace police. no functional change.
Revision 1.330 / (download) - annotate - [select for diffs], Tue Oct 23 16:16:26 2007 UTC (5 years, 7 months ago) by pooka
Branch: MAIN
Changes since 1.329: +2 -3
lines
Diff to previous 1.329 (colored)
Don't take a reference to the vfsops structure in mount_domount(). It is now taken when the vfs structure is received instead of having to randomly add references in random places. Fixes at least vfs lkm unload.
Revision 1.329 / (download) - annotate - [select for diffs], Wed Oct 10 20:42:27 2007 UTC (5 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4,
yamt-x86pmap-base3,
vmlocking-base
Branch point for: bouyer-xenamd64
Changes since 1.328: +52 -39
lines
Diff to previous 1.328 (colored)
Merge from vmlocking: - Split vnode::v_flag into three fields, depending on field locking. - simple_lock -> kmutex in a few places. - Fix some simple locking problems.
Revision 1.328 / (download) - annotate - [select for diffs], Mon Oct 8 15:12:09 2007 UTC (5 years, 7 months ago) by ad
Branch: MAIN
Changes since 1.327: +64 -23
lines
Diff to previous 1.327 (colored)
Merge file descriptor locking, cwdi locking and cross-call changes from the vmlocking branch.
Revision 1.327 / (download) - annotate - [select for diffs], Sat Sep 1 23:40:23 2007 UTC (5 years, 8 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-x86pmap-base2,
yamt-x86pmap-base,
nick-csl-alignment-base5
Branch point for: yamt-x86pmap
Changes since 1.326: +6 -6
lines
Diff to previous 1.326 (colored)
Make bioops a pointer and point it to the softdeps struct in softdep init. Decouples "options SOFTDEP" from the main kernel and ffs code.
Revision 1.326 / (download) - annotate - [select for diffs], Tue Aug 28 09:28:10 2007 UTC (5 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.325: +5 -4
lines
Diff to previous 1.325 (colored)
In quotactl, move vrele() to after the VFS call: protects the mountpoint from being wiped under us better. from David Holland
Revision 1.325 / (download) - annotate - [select for diffs], Wed Aug 15 12:07:35 2007 UTC (5 years, 9 months ago) by ad
Branch: MAIN
Branch point for: matt-armv6
Changes since 1.324: +3 -13
lines
Diff to previous 1.324 (colored)
Changes to make ktrace LKM friendly and reduce ifdef KTRACE. Proposed on tech-kern.
Revision 1.324 / (download) - annotate - [select for diffs], Tue Jul 31 21:14:21 2007 UTC (5 years, 9 months ago) by pooka
Branch: MAIN
CVS Tags: matt-mips64-base
Branch point for: matt-mips64,
jmcneill-pm
Changes since 1.323: +11 -14
lines
Diff to previous 1.323 (colored)
* nuke the nameidata parameter from VFS_MOUNT(). Nobody on tech-kern knew what it was supposed to be used for and wrstuden gave a go-ahead * while rototilling, convert file systems which went easily to use VFS_PROTOS() instead of manually prototyping the methods
Revision 1.323 / (download) - annotate - [select for diffs], Sun Jul 22 19:16:05 2007 UTC (5 years, 10 months ago) by pooka
Branch: MAIN
CVS Tags: hpcarm-cleanup
Changes since 1.322: +2 -7
lines
Diff to previous 1.322 (colored)
Retire uvn_attach() - it abuses VXLOCK and its functionality, setting vnode sizes, is handled elsewhere: file system vnode creation or spec_open() for regular files or block special files, respectively. Add a call to VOP_MMAP() to the pagedvn exec path, since the vnode is being memory mapped. reviewed by tech-kern & wrstuden
Revision 1.322 / (download) - annotate - [select for diffs], Tue Jul 17 21:15:41 2007 UTC (5 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: nick-csl-alignment-base
Branch point for: nick-csl-alignment
Changes since 1.321: +4 -4
lines
Diff to previous 1.321 (colored)
get rid of MFSNAMELEN
Revision 1.321 / (download) - annotate - [select for diffs], Sat Jul 14 15:41:31 2007 UTC (5 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.320: +22 -4
lines
Diff to previous 1.320 (colored)
Version mount(2) so that the length of the 'data' buffer is passed into the kernel.
Revision 1.320 / (download) - annotate - [select for diffs], Thu Jul 12 19:35:37 2007 UTC (5 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.319: +159 -129
lines
Diff to previous 1.319 (colored)
Change the VFS_MOUNT() interface so that the 'data' buffer passed to the fs code is a kernel buffer, pass though the length of the buffer as well. Since the length of the userspace buffer isn'it (yet) passed through the mount system call, add a field to the vfsops structure containing the default length. Split sys_mount() for calls from compat code. Ride one of the recent kernel version changes - old fs LKMs will load, but sys_mount() will reject any attempt to use them.
Revision 1.319 / (download) - annotate - [select for diffs], Sat Jun 16 20:48:04 2007 UTC (5 years, 11 months ago) by dsl
Branch: MAIN
CVS Tags: mjf-ufs-trans-base
Changes since 1.318: +6 -78
lines
Diff to previous 1.318 (colored)
Move the point at which sys_readv and sys_preadv (and writev) get merged so that the same common code can be used with a kernel-resident 'iov' array from the 32-bit compat code (which currently has its own copy of these routines.
Revision 1.318 / (download) - annotate - [select for diffs], Thu Jun 7 10:03:12 2007 UTC (5 years, 11 months ago) by hannken
Branch: MAIN
Changes since 1.317: +4 -3
lines
Diff to previous 1.317 (colored)
Dounmount(): rearrange mountlist_slock. vfs_allocate_syncvnode() may sleep getting a new vnode so it must not be called with this simple_lock taken. Fixes PR #36395
Revision 1.317 / (download) - annotate - [select for diffs], Tue May 22 10:39:10 2007 UTC (6 years ago) by tnn
Branch: MAIN
Changes since 1.316: +3 -3
lines
Diff to previous 1.316 (colored)
When renaming, copy the new name into the designated memory area. Tested by martti@
Revision 1.316 / (download) - annotate - [select for diffs], Mon May 21 18:30:35 2007 UTC (6 years ago) by dsl
Branch: MAIN
Changes since 1.315: +3 -3
lines
Diff to previous 1.315 (colored)
Fix logic inversion - probably PR kern/36284
Revision 1.315 / (download) - annotate - [select for diffs], Sat May 19 22:11:23 2007 UTC (6 years ago) by christos
Branch: MAIN
Changes since 1.314: +18 -34
lines
Diff to previous 1.314 (colored)
- remove pathname_ interface. - use macros to deal with pathnames in userspace, when veriexec is used. - reorder the veriexec_ call arguments for consistency. With help from elad@ finding the last bug.
Revision 1.314 / (download) - annotate - [select for diffs], Thu May 17 00:46:30 2007 UTC (6 years ago) by christos
Branch: MAIN
CVS Tags: yamt-idlelwp-base8
Changes since 1.313: +15 -6
lines
Diff to previous 1.313 (colored)
- since mknod now can create regular files, make sure veriexec allows it. Done in a way to minimize ifdefs. Per discussions with elad.
Revision 1.313 / (download) - annotate - [select for diffs], Tue May 15 19:47:45 2007 UTC (6 years ago) by elad
Branch: MAIN
Changes since 1.312: +27 -26
lines
Diff to previous 1.312 (colored)
Some Veriexec stuff that's been rotting in my tree for months.
Bug fixes:
- Fix crash reported by Scott Ellis on current-users@.
- Fix race conditions in enforcing the Veriexec rename and remove
policies. These are NOT security issues.
- Fix memory leak in rename handling when overwriting a monitored
file.
- Fix table deletion logic.
- Don't prevent query requests if not in learning mode.
KPI updates:
- fileassoc_table_run() now takes a cookie to pass to the callback.
- veriexec_table_add() was removed, it is now done internally. As a
result, there's no longer a need for VERIEXEC_TABLESIZE.
- veriexec_report() was removed, it is now internal.
- Perform sanity checks on the entry type, and enforce default type
in veriexec_file_add() rather than in veriexecctl.
- Add veriexec_flush(), used to delete all Veriexec tables, and
veriexec_dump(), used to fill an array with all Veriexec entries.
New features:
- Add a '-k' flag to veriexecctl, to keep the filenames in the kernel
database. This allows Veriexec to produce slightly more accurate
logs under certain circumstances. In the future, this can be either
replaced by vnode->pathname translation, or combined with it.
- Add a VERIEXEC_DUMP ioctl, to dump the entire Veriexec database.
This can be used to recover a database if the file was lost.
Example usage:
# veriexecctl dump > /etc/signatures
Note that only entries with the filename kept (that is, were loaded
with the '-k' flag) will be dumped.
Idea from Brett Lymn.
- Add a VERIEXEC_FLUSH ioctl, to delete all Veriexec entries. Sample
usage:
# veriexecctl flush
- Add a 'veriexec_flags' rc(8) variable, and make its default have
the '-k' flag. On systems using the default signatures file
(generaetd from running 'veriexecgen' with no arguments), this will
use additional 32kb of kernel memory on average.
- Add a '-e' flag to veriexecctl, to evaluate the fingerprint during
load. This is done automatically for files marked as 'untrusted'.
Misc. stuff:
- The code for veriexecctl was massively simplified as a result of
eliminating the need for VERIEXEC_TABLESIZE, and now uses a single
pass of the signatures file, making the loading somewhat faster.
- Lots of minor fixes found using the (still under development)
Veriexec regression testsuite.
- Some of the messages Veriexec prints were improved.
- Various documentation fixes.
All relevant man-pages were updated to reflect the above changes.
Binary compatibility with existing veriexecctl binaries is maintained.
Revision 1.312 / (download) - annotate - [select for diffs], Sat May 12 17:28:20 2007 UTC (6 years ago) by dsl
Branch: MAIN
Changes since 1.311: +35 -36
lines
Diff to previous 1.311 (colored)
Change the compat sys_[fl]utime code to not use the stackgap.
Revision 1.311 / (download) - annotate - [select for diffs], Mon Apr 30 08:32:14 2007 UTC (6 years ago) by dsl
Branch: MAIN
Changes since 1.310: +65 -70
lines
Diff to previous 1.310 (colored)
Split the statvfs functions so that the 'work' is done to a kernel buffer which can either be copied directly to userspace, or converted then copied. Saves replicating a lot of code in the compat functions (esp. for getvfsstat) at a cast of an extra function call in the non-emulated case - which is unlikely to be measurable given the other costs of the actions involved (even on vax). Remove dofhstat() and dofhstatvfs() (and the last caller). Remove some redundant stackgap_init() calls.
Revision 1.310 / (download) - annotate - [select for diffs], Sun Apr 22 08:30:01 2007 UTC (6 years, 1 month ago) by dsl
Branch: MAIN
Changes since 1.309: +37 -37
lines
Diff to previous 1.309 (colored)
Change the way that emulations locate files within the emulation root to avoid having to allocate space in the 'stackgap' - which is very LWP unfriendly. The additional code for non-emulation namei() is trivial, the reduction for the emulations is massive. The vnode for a processes emulation root is saved in the cwdi structure during process exec. If the emulation root the TRYEMULROOT flag are set, namei() will do an initial search for absolute pathnames in the emulation root, if that fails it will retry from the normal root. ".." at the emulation root will always go to the real root, even in the middle of paths and when expanding symlinks. Absolute symlinks found using absolute paths in the emulation root will be relative to the emulation root (so /usr/lib/xxx.so -> /lib/xxx.so links inside the emulation root don't need changing). If the root of the emulation would be returned (for an emulation lookup), then the real root is returned instead (matching the behaviour of emul_lookup, but being a cheap comparison here) so that programs that scan "../.." looking for the root dircetory don't loop forever. The target for symbolic links is no longer mangled (it used to get the CHECK_ALT_xxx() treatment, so could get /emul/xxx prepended). CHECK_ALT_xxx() are no more. Most of the change is deleting them, and adding TRYEMULROOT to the flags to NDINIT(). A lot of the emulation system call stubs could now be deleted.
Revision 1.309 / (download) - annotate - [select for diffs], Mon Apr 9 21:11:03 2007 UTC (6 years, 1 month ago) by pooka
Branch: MAIN
CVS Tags: thorpej-atomic-base,
thorpej-atomic
Changes since 1.308: +3 -4
lines
Diff to previous 1.308 (colored)
If mount(MNT_UPDATE) is called for a non-VROOT directory, don't vput() the "mountpoint" vnode twice due to an error branch. thanks go to Gert Doering for reporting the problem and testing the fix and to Juergen Hannken-Illjes for much of the analysis work leading to the discovery of the problem cause
Revision 1.308 / (download) - annotate - [select for diffs], Sun Apr 8 11:20:43 2007 UTC (6 years, 1 month ago) by hannken
Branch: MAIN
Changes since 1.307: +2 -3
lines
Diff to previous 1.307 (colored)
Remove now obsolete vn_start_write() and vn_finished_write() and corresponding flags. Revert softdep_trackbufs() to its state before vn_start_write() was added. Remove from struct mount now unneeded flags IMNT_SUSPEND* and members mnt_writeopcountupper, mnt_writeopcountlower and mnt_leaf. Welcome to 4.99.17
Revision 1.307 / (download) - annotate - [select for diffs], Sun Apr 1 10:15:01 2007 UTC (6 years, 1 month ago) by hannken
Branch: MAIN
Changes since 1.306: +4 -175
lines
Diff to previous 1.306 (colored)
Remove calls to now obsolete vn_start_write() and vn_finished_write().
Revision 1.306 / (download) - annotate - [select for diffs], Sat Mar 10 16:50:01 2007 UTC (6 years, 2 months ago) by dsl
Branch: MAIN
CVS Tags: reinoud-bufcleanup
Branch point for: vmlocking,
mjf-ufs-trans
Changes since 1.305: +85 -57
lines
Diff to previous 1.305 (colored)
Split the work for sys_stat, sys_lstat, sys_fstat and sys_fhstat out into separate functions that don't do the copyout. This allows all the compat_xxx versions to convert the 'struct stat' to the correct format without using the 'stackgap'. The stackgap isn't at all LWP friendly, and needs to be removed from any compat functions that might involve threads (inc. clone()). The code is still binary compatible with existing LKMs.
Revision 1.305 / (download) - annotate - [select for diffs], Fri Mar 9 14:11:27 2007 UTC (6 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.304: +4 -4
lines
Diff to previous 1.304 (colored)
- Make the proclist_lock a mutex. The write:read ratio is unfavourable, and mutexes are cheaper use than RW locks. - LOCK_ASSERT -> KASSERT in some places. - Hold proclist_lock/kernel_lock longer in a couple of places.
Revision 1.304 / (download) - annotate - [select for diffs], Thu Mar 1 10:02:31 2007 UTC (6 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.303: +3 -3
lines
Diff to previous 1.303 (colored)
simplify previous a bit. no functional change.
Revision 1.303 / (download) - annotate - [select for diffs], Wed Feb 28 20:39:06 2007 UTC (6 years, 2 months ago) by pooka
Branch: MAIN
Changes since 1.302: +7 -6
lines
Diff to previous 1.302 (colored)
avoid lock leak in error branch of sys_fchdir() thanks to Tom Spindler and Greg Oster in helping find the cure
Revision 1.302 / (download) - annotate - [select for diffs], Sun Feb 18 20:36:36 2007 UTC (6 years, 3 months ago) by pooka
Branch: MAIN
CVS Tags: ad-audiomp-base,
ad-audiomp
Changes since 1.301: +3 -3
lines
Diff to previous 1.301 (colored)
if doing VOP_CREATE via sys_mknod, set va_rdev to VNOVAL instead of 0
Revision 1.301 / (download) - annotate - [select for diffs], Sun Feb 18 19:57:29 2007 UTC (6 years, 3 months ago) by pooka
Branch: MAIN
Changes since 1.300: +24 -8
lines
Diff to previous 1.300 (colored)
Support creating regular files with mknod(2) to match Linux/Solaris behaviour. This happens if mode contains S_IFREG. mknod(2) is still restricted to the superuser. no objections from tech-kern
Revision 1.300 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:32 2007 UTC (6 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Changes since 1.299: +12 -13
lines
Diff to previous 1.299 (colored)
Merge newlock2 to head.
Revision 1.299 / (download) - annotate - [select for diffs], Sun Feb 4 20:33:02 2007 UTC (6 years, 3 months ago) by elad
Branch: MAIN
CVS Tags: newlock2-nbase,
newlock2-base
Changes since 1.298: +4 -4
lines
Diff to previous 1.298 (colored)
Initialize pathname_t objects to NULL.
Revision 1.298 / (download) - annotate - [select for diffs], Sun Feb 4 15:03:20 2007 UTC (6 years, 3 months ago) by chs
Branch: MAIN
Changes since 1.297: +5 -5
lines
Diff to previous 1.297 (colored)
more fixes for the new vnode locking scheme: - don't use SAVESTART in calls to relookup() from unionfs, just vref() the desired vnode when we need to. - fix locking and refcounting in the unionfs EEXIST error cases. - release any vnode locks before calling VFS_ROOT(), vfs_busy() is enough. this allows us to simplify union_root() and fix PR 3006. - union_lock() doesn't handle shared lock requests correctly, so convert them to exclusive instead. fixes PR 34775. - in relookup(), avoid reusing "dp" for different purposes, the error handling wasn't right. (actually just get rid of dp.) also, change relookup() to ignore LOCKLEAF and always return the vnode locked since the callers already expect this.
Revision 1.297 / (download) - annotate - [select for diffs], Fri Jan 19 14:49:10 2007 UTC (6 years, 4 months ago) by hannken
Branch: MAIN
Changes since 1.296: +5 -5
lines
Diff to previous 1.296 (colored)
New file system suspension API to replace vn_start_write and vn_finished_write. The suspension helpers are now put into file system specific operations. This means every file system not supporting these helpers cannot be suspended and therefore snapshots are no longer possible. Implemented for file systems of type ffs. The new API is enabled on a kernel option NEWVNGATE. This option is not enabled by default in any kernel config. Presented and discussed on tech-kern with much input from Bill Studenmund <wrstuden@netbsd.org> and YAMAMOTO Takashi <yamt@netbsd.org>. Welcome to 4.99.9 (new vfs op vfs_suspendctl).
Revision 1.296 / (download) - annotate - [select for diffs], Mon Jan 15 19:13:30 2007 UTC (6 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.295: +3 -2
lines
Diff to previous 1.295 (colored)
TAILQ_INIT a mountpoint's vnode queue and always add vnodes to the tail instead of an explicit check to add to the head for an empty queue. Apparently TAILQ_INSERT_HEAD happens to work for a non-initialized head and does implicit initialization so that TAILQ_INSERT_TAIL works after that.
Revision 1.295 / (download) - annotate - [select for diffs], Fri Jan 5 13:34:17 2007 UTC (6 years, 4 months ago) by elad
Branch: MAIN
Changes since 1.294: +5 -9
lines
Diff to previous 1.294 (colored)
Use kauth(9).
Revision 1.294 / (download) - annotate - [select for diffs], Thu Jan 4 17:38:26 2007 UTC (6 years, 4 months ago) by elad
Branch: MAIN
Changes since 1.293: +5 -6
lines
Diff to previous 1.293 (colored)
Consistent usage of KAUTH_GENERIC_ISSUSER.
Revision 1.293 / (download) - annotate - [select for diffs], Wed Jan 3 23:20:58 2007 UTC (6 years, 4 months ago) by wrstuden
Branch: MAIN
Changes since 1.292: +9 -7
lines
Diff to previous 1.292 (colored)
Fix issue noted by Ilja van Sprundel and disclosed at 23C3. Make sure we always FILE_UNUSE the file. To make it easier, exit via a new "out:" exit path that does so, setting error beforehand. Fix suggested by Elad, hand-typed by me.
Revision 1.292 / (download) - annotate - [select for diffs], Tue Jan 2 10:47:29 2007 UTC (6 years, 4 months ago) by elad
Branch: MAIN
Changes since 1.291: +16 -53
lines
Diff to previous 1.291 (colored)
Make mount(2) and unmount(2) use kauth(9) for security policy. Okay yamt@.
Revision 1.291 / (download) - annotate - [select for diffs], Mon Jan 1 22:00:16 2007 UTC (6 years, 4 months ago) by pooka
Branch: MAIN
Changes since 1.290: +4 -3
lines
Diff to previous 1.290 (colored)
in rename_files(), match pre-1.280 locking behaviour by unlocking fromnd's dvp only in case the dvp != vp
Revision 1.290 / (download) - annotate - [select for diffs], Mon Jan 1 20:45:51 2007 UTC (6 years, 4 months ago) by elad
Branch: MAIN
Changes since 1.289: +5 -2
lines
Diff to previous 1.289 (colored)
Add back MNT_NOEXEC propagation on new mounts by non-root users. Mistakenly removed in revision 1.286.
Revision 1.289 / (download) - annotate - [select for diffs], Sun Dec 31 10:05:52 2006 UTC (6 years, 4 months ago) by elad
Branch: MAIN
Changes since 1.288: +9 -11
lines
Diff to previous 1.288 (colored)
Enforce exclusive MNT_GETARGS in mount_getargs().
Revision 1.288 / (download) - annotate - [select for diffs], Thu Dec 28 14:33:41 2006 UTC (6 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.287: +9 -2
lines
Diff to previous 1.287 (colored)
mount_domount: revive code to enforce MNT_NOSUID and MNT_NODEV for usermount, which was removed mistakenly by rev.1.286. pointed by elad.
Revision 1.287 / (download) - annotate - [select for diffs], Wed Dec 27 08:55:35 2006 UTC (6 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.286: +3 -3
lines
Diff to previous 1.286 (colored)
mount_domount: don't forget to handle MNT_RDONLY. PR/35327 from Christian Biere.
Revision 1.286 / (download) - annotate - [select for diffs], Tue Dec 26 12:39:01 2006 UTC (6 years, 4 months ago) by yamt
Branch: MAIN
Changes since 1.285: +22 -48
lines
Diff to previous 1.285 (colored)
- shorten the period to modify mnt_flag temporarily. - desupport MNT_EXPORTED without MNT_UPDATE explicitly. - fix a comment. - unwrap short lines.
Revision 1.285 / (download) - annotate - [select for diffs], Mon Dec 25 22:03:42 2006 UTC (6 years, 5 months ago) by elad
Branch: MAIN
Changes since 1.284: +11 -10
lines
Diff to previous 1.284 (colored)
Don't reference userspace pointers.
Revision 1.284 / (download) - annotate - [select for diffs], Mon Dec 25 08:11:52 2006 UTC (6 years, 5 months ago) by elad
Branch: MAIN
Changes since 1.283: +19 -2
lines
Diff to previous 1.283 (colored)
Properly handle flags in mount_domount().
Revision 1.283 / (download) - annotate - [select for diffs], Sun Dec 24 12:43:17 2006 UTC (6 years, 5 months ago) by elad
Branch: MAIN
Changes since 1.282: +283 -198
lines
Diff to previous 1.282 (colored)
Slash sys_mount() and add three helper functions: mount_update(), mount_getargs(), and mount_domount() to handle three main things it can do. This makes the code more readable and removes the horrible goto mess that was lurking there since forever... it also makes it easier to implement a security policy for that code.
Revision 1.282 / (download) - annotate - [select for diffs], Sun Dec 24 08:54:55 2006 UTC (6 years, 5 months ago) by elad
Branch: MAIN
Changes since 1.281: +28 -6
lines
Diff to previous 1.281 (colored)
PR/35278: YAMAMOTO Takashi: veriexec sometimes feeds user va to log(9) Introduce the (intentionally undocumented) pathname_get(), pathname_path(), and pathname_put(), to deal with allocating and copying of pathnames from either kernel- or user-space.
Revision 1.281 / (download) - annotate - [select for diffs], Thu Dec 14 09:24:54 2006 UTC (6 years, 5 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4
Changes since 1.280: +2 -6
lines
Diff to previous 1.280 (colored)
- just associate fileassoc "table" to struct mount. because the latter is always available during the lifetime of the former, there is little point to use another global list to keep track of them. it also allows to remove an #ifdef FILEASSOC. - avoid some operations (memory allocation and VOP) in fileassoc_file_lookup, when fileassoc table is not used. ok'ed by elad.
Revision 1.280 / (download) - annotate - [select for diffs], Sat Dec 9 16:11:51 2006 UTC (6 years, 5 months ago) by chs
Branch: MAIN
CVS Tags: yamt-splraiseipl-base3
Changes since 1.279: +5 -11
lines
Diff to previous 1.279 (colored)
a smorgasbord of improvements to vnode locking and path lookup: - LOCKPARENT is no longer relevant for lookup(), relookup() or VOP_LOOKUP(). these now always return the parent vnode locked. namei() works as before. lookup() and various other paths no longer acquire vnode locks in the wrong order via vrele(). fixes PR 32535. as a nice side effect, path lookup is also up to 25% faster. - the above allows us to get rid of PDIRUNLOCK. - also get rid of WANTPARENT (just use LOCKPARENT and unlock it). - remove an assumption in layer_node_find() that all file systems implement a recursive VOP_LOCK() (unionfs doesn't). - require that all file systems supply vfs_vptofh and vfs_fhtovp routines. fill in eopnotsupp() for file systems that don't support being exported and remove the checks for NULL. (layerfs calls these without checking.) - in union_lookup1(), don't change refcounts in the ISDOTDOT case, just adjust which vnode is locked. fixes PR 33374. - apply fixes for ufs_rename() from ufs_vnops.c rev. 1.61 to ext2fs_rename().
Revision 1.279 / (download) - annotate - [select for diffs], Thu Nov 30 01:09:48 2006 UTC (6 years, 5 months ago) by elad
Branch: MAIN
CVS Tags: netbsd-4-base
Branch point for: netbsd-4
Changes since 1.278: +5 -25
lines
Diff to previous 1.278 (colored)
Massive restructuring and cleanup of Veriexec, mainly in preparation
for work on some future functionality.
- Veriexec data-structures are no longer exposed.
- Thanks to using proplib for data passing now, the interface
changes further to accomodate that.
Introduce four new functions. First, veriexec_file_add(), to add
a new file to be monitored by Veriexec, to replace both
veriexec_load() and veriexec_hashadd(). veriexec_table_add(), to
replace veriexec_newtable(), will be used to optimize hash table
size (during preload), and finally, veriexec_convert(), to convert
an internal entry to one userland can read.
- Introduce veriexec_unmountchk(), to enforce Veriexec unmount
policy. This cleans up a bit of code in kern/vfs_syscalls.c.
- Rename veriexec_tblfind() with veriexec_table_lookup(), and make
it static. More functions that became static: veriexec_fp_cmp(),
veriexec_fp_calc().
- veriexec_verify() no longer returns the entry as well, but just
sets a boolean indicating whether an entry was found or not.
- veriexec_purge() now takes a struct vnode *.
- veriexec_add_fp_name() was merged into veriexec_add_fp_ops(), that
changed its name to veriexec_fpops_add(). veriexec_find_ops() was
also renamed to veriexec_fpops_lookup().
Also on the fp-ops front, the three function types used to initialize,
update, and finalize a hash context were renamed to
veriexec_fpop_init_t, veriexec_fpop_update_t, and veriexec_fpop_final_t
respectively.
- Introduce a new malloc(9) type, M_VERIEXEC, and use it instead of
M_TEMP, so we can tell exactly how much memory is used by Veriexec.
- And, most importantly, whitespace and indentation nits.
Built successfuly for amd64, i386, sparc, and sparc64. Tested on amd64.
Revision 1.278 / (download) - annotate - [select for diffs], Tue Nov 21 23:52:41 2006 UTC (6 years, 6 months ago) by elad
Branch: MAIN
Changes since 1.277: +9 -7
lines
Diff to previous 1.277 (colored)
printf() -> log() for Veriexec messages.
Revision 1.277 / (download) - annotate - [select for diffs], Fri Nov 17 17:05:18 2006 UTC (6 years, 6 months ago) by hannken
Branch: MAIN
Changes since 1.276: +4 -2
lines
Diff to previous 1.276 (colored)
Add specificdata support to mount points. Welcome to NetBSD 4.99.4 Approved by: Jason Thorpe <thorpej@netbsd.org>
Revision 1.276 / (download) - annotate - [select for diffs], Wed Nov 1 10:17:59 2006 UTC (6 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.275: +49 -49
lines
Diff to previous 1.275 (colored)
remove some __unused from function parameters.
Revision 1.275 / (download) - annotate - [select for diffs], Tue Oct 31 08:12:46 2006 UTC (6 years, 6 months ago) by mjf
Branch: MAIN
Changes since 1.274: +2 -13
lines
Diff to previous 1.274 (colored)
Revert the changes I introduced trying to solve tmpfs' NFS export problem. Requested by yamt@
Revision 1.274 / (download) - annotate - [select for diffs], Tue Oct 24 21:53:10 2006 UTC (6 years, 7 months ago) by mjf
Branch: MAIN
Changes since 1.273: +15 -4
lines
Diff to previous 1.273 (colored)
Add support to allow a file system to not permit being exported over NFS. Approved by elad@ and wrstuden@
Revision 1.273 / (download) - annotate - [select for diffs], Fri Oct 20 18:58:12 2006 UTC (6 years, 7 months ago) by reinoud
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.272: +3 -3
lines
Diff to previous 1.272 (colored)
Replace the LIST structure mp->mnt_vnodelist to a TAILQ structure since all vnodes were synced and processed backwards. This meant that the last accessed node was processed first and the earlierst last. An extra benefit is the removal of the ugly hack from the Berkly days on LFS. In the proces, i've also replaced the various variations hand written loops by the TAILQ_FOREACH() macro's.
Revision 1.272 / (download) - annotate - [select for diffs], Tue Oct 17 15:06:18 2006 UTC (6 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.271: +3 -3
lines
Diff to previous 1.271 (colored)
according to the manual, the last argument of quotactl(2) is a void *, not a caddr_t.
Revision 1.271 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:19 2006 UTC (6 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.270: +49 -49
lines
Diff to previous 1.270 (colored)
- sprinkle __unused on function decls. - fix a couple of unused bugs - no more -Wno-unused for i386
Revision 1.270 / (download) - annotate - [select for diffs], Wed Sep 13 10:07:42 2006 UTC (6 years, 8 months ago) by elad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9
Branch point for: yamt-splraiseipl
Changes since 1.269: +5 -5
lines
Diff to previous 1.269 (colored)
Don't use KAUTH_RESULT_* where it's not applicable. Prompted by yamt@.
Revision 1.269 / (download) - annotate - [select for diffs], Tue Sep 12 07:51:29 2006 UTC (6 years, 8 months ago) by elad
Branch: MAIN
Changes since 1.268: +4 -4
lines
Diff to previous 1.268 (colored)
Oops, add forgotten 'if'. From Geoff Wing, thanks!
Revision 1.268 / (download) - annotate - [select for diffs], Fri Sep 8 20:58:57 2006 UTC (6 years, 8 months ago) by elad
Branch: MAIN
Changes since 1.267: +16 -16
lines
Diff to previous 1.267 (colored)
First take at security model abstraction.
- Add a few scopes to the kernel: system, network, and machdep.
- Add a few more actions/sub-actions (requests), and start using them as
opposed to the KAUTH_GENERIC_ISSUSER place-holders.
- Introduce a basic set of listeners that implement our "traditional"
security model, called "bsd44". This is the default (and only) model we
have at the moment.
- Update all relevant documentation.
- Add some code and docs to help folks who want to actually use this stuff:
* There's a sample overlay model, sitting on-top of "bsd44", for
fast experimenting with tweaking just a subset of an existing model.
This is pretty cool because it's *really* straightforward to do stuff
you had to use ugly hacks for until now...
* And of course, documentation describing how to do the above for quick
reference, including code samples.
All of these changes were tested for regressions using a Python-based
testsuite that will be (I hope) available soon via pkgsrc. Information
about the tests, and how to write new ones, can be found on:
http://kauth.linbsd.org/kauthwiki
NOTE FOR DEVELOPERS: *PLEASE* don't add any code that does any of the
following:
- Uses a KAUTH_GENERIC_ISSUSER kauth(9) request,
- Checks 'securelevel' directly,
- Checks a uid/gid directly.
(or if you feel you have to, contact me first)
This is still work in progress; It's far from being done, but now it'll
be a lot easier.
Relevant mailing list threads:
http://mail-index.netbsd.org/tech-security/2006/01/25/0011.html
http://mail-index.netbsd.org/tech-security/2006/03/24/0001.html
http://mail-index.netbsd.org/tech-security/2006/04/18/0000.html
http://mail-index.netbsd.org/tech-security/2006/05/15/0000.html
http://mail-index.netbsd.org/tech-security/2006/08/01/0000.html
http://mail-index.netbsd.org/tech-security/2006/08/25/0000.html
Many thanks to YAMAMOTO Takashi, Matt Thomas, and Christos Zoulas for help
stablizing kauth(9).
Full credit for the regression tests, making sure these changes didn't break
anything, goes to Matt Fleming and Jaime Fournier.
Happy birthday Randi! :)
Revision 1.267 / (download) - annotate - [select for diffs], Tue Aug 8 13:08:08 2006 UTC (6 years, 9 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base8,
yamt-pdpolicy-base7,
rpaulo-netinet-merge-pcb-base
Branch point for: newlock2
Changes since 1.266: +13 -0
lines
Diff to previous 1.266 (colored)
vfs_copyinfh_alloc: kludge for nfsv2 file handles.
Revision 1.266 / (download) - annotate - [select for diffs], Fri Aug 4 17:07:32 2006 UTC (6 years, 9 months ago) by yamt
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base
Branch point for: abandoned-netbsd-4
Changes since 1.265: +1 -1
lines
Diff to previous 1.265 (colored)
sys___fhstatvfs140: update a comment.
Revision 1.265 / (download) - annotate - [select for diffs], Fri Aug 4 16:29:51 2006 UTC (6 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.264: +62 -49
lines
Diff to previous 1.264 (colored)
some filehandle syscall related changes. - remove the support of variable-sized filehandle from compat version of syscalls. (strictly speaking, it breaks abi. i don't think it's a problem because this feature is short-lived and there are no affected in-tree filesystems.) - unify vfs_copyinfh_alloc and vfs_copyinfh_alloc_size. - vfs_copyinfh_alloc_size: check fhsize strictly. - reduce code duplication between compat and current syscalls.
Revision 1.264 / (download) - annotate - [select for diffs], Fri Aug 4 13:31:51 2006 UTC (6 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.263: +4 -4
lines
Diff to previous 1.263 (colored)
vfs_copyinfh_alloc_size: fix indent.
Revision 1.263 / (download) - annotate - [select for diffs], Mon Jul 31 16:34:44 2006 UTC (6 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.262: +43 -19
lines
Diff to previous 1.262 (colored)
Make filehandles opaque to userland
Revision 1.262 / (download) - annotate - [select for diffs], Wed Jul 26 16:34:07 2006 UTC (6 years, 10 months ago) by elad
Branch: MAIN
Changes since 1.261: +5 -5
lines
Diff to previous 1.261 (colored)
sync kpi with docs, remove old comments
Revision 1.261 / (download) - annotate - [select for diffs], Wed Jul 26 09:33:57 2006 UTC (6 years, 10 months ago) by dogcow
Branch: MAIN
Changes since 1.260: +1 -1
lines
Diff to previous 1.260 (colored)
at the request of elad, as veriexec.h has returned, revert the changes from 2006-07-25.
Revision 1.260 / (download) - annotate - [select for diffs], Tue Jul 25 00:23:06 2006 UTC (6 years, 10 months ago) by dogcow
Branch: MAIN
Changes since 1.259: +3 -3
lines
Diff to previous 1.259 (colored)
mechanically go through and s,include "veriexec.h",include <sys/verified_exec.h>, as the former has apparently gone away.
Revision 1.259 / (download) - annotate - [select for diffs], Mon Jul 24 21:32:39 2006 UTC (6 years, 10 months ago) by elad
Branch: MAIN
Changes since 1.258: +4 -4
lines
Diff to previous 1.258 (colored)
replace magic numbers for strict levels (0-3) with defines.
Revision 1.258 / (download) - annotate - [select for diffs], Mon Jul 24 16:37:28 2006 UTC (6 years, 10 months ago) by elad
Branch: MAIN
Changes since 1.257: +4 -4
lines
Diff to previous 1.257 (colored)
some fixes:
- adapt to NVERIEXEC in init_sysctl.c.
- we now need "veriexec.h" for NVERIEXEC.
- "opt_verified_exec.h" -> "opt_veriexec.h", and include it only where
it is needed.
Revision 1.257 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:12 2006 UTC (6 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.256: +87 -105
lines
Diff to previous 1.256 (colored)
Use the LWP cached credentials where sane.
Revision 1.256 / (download) - annotate - [select for diffs], Sat Jul 22 10:34:26 2006 UTC (6 years, 10 months ago) by elad
Branch: MAIN
Changes since 1.255: +11 -11
lines
Diff to previous 1.255 (colored)
deprecate the VERIFIED_EXEC option; now we only need the pseudo-device to enable it. while here, some config file tweaks. tons of input from cube@ (thanks!) and okay blymn@.
Revision 1.255 / (download) - annotate - [select for diffs], Thu Jul 20 16:18:14 2006 UTC (6 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.254: +3 -3
lines
Diff to previous 1.254 (colored)
PR/34043: mrt at notwork dot org: 3.99.22 kernel crashes at *_vptofh() called from vfs_composefh_alloc() due to uninitialized "fidsize".
Revision 1.254 / (download) - annotate - [select for diffs], Wed Jul 19 12:45:19 2006 UTC (6 years, 10 months ago) by blymn
Branch: MAIN
Changes since 1.253: +5 -4
lines
Diff to previous 1.253 (colored)
Add destination file vnode to rename checking.
Revision 1.253 / (download) - annotate - [select for diffs], Mon Jul 17 19:05:36 2006 UTC (6 years, 10 months ago) by elad
Branch: MAIN
Changes since 1.252: +5 -6
lines
Diff to previous 1.252 (colored)
move the fileassoc_delete_file() call above the VOP_REMOVE() one, yamt@ says vp might not be valid after it.
Revision 1.252 / (download) - annotate - [select for diffs], Sat Jul 15 16:32:29 2006 UTC (6 years, 10 months ago) by martin
Branch: MAIN
Changes since 1.251: +3 -3
lines
Diff to previous 1.251 (colored)
FHANDLE_SIZE_MIN is an allowed value for the requested size (it happens to be the old static size on 32bit archs, so the compat_30 code uses it)
Revision 1.251 / (download) - annotate - [select for diffs], Fri Jul 14 18:41:40 2006 UTC (6 years, 10 months ago) by elad
Branch: MAIN
Changes since 1.250: +39 -2
lines
Diff to previous 1.250 (colored)
okay, since there was no way to divide this to two commits, here it goes.. introduce fileassoc(9), a kernel interface for associating meta-data with files using in-kernel memory. this is very similar to what we had in veriexec till now, only abstracted so it can be used more easily by more consumers. this also prompted the redesign of the interface, making it work on vnodes and mounts and not directly on devices and inodes. internally, we still use file-id but that's gonna change soon... the interface will remain consistent. as a result, veriexec went under some heavy changes to conform to the new interface. since we no longer use device numbers to identify file-systems, the veriexec sysctl stuff changed too: kern.veriexec.count.dev_N is now kern.veriexec.tableN.* where 'N' is NOT the device number but rather a way to distinguish several mounts. also worth noting is the plugging of unmount/delete operations wrt/fileassoc and veriexec. tons of input from yamt@, wrstuden@, martin@, and christos@.
Revision 1.250 / (download) - annotate - [select for diffs], Fri Jul 14 18:30:35 2006 UTC (6 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.249: +22 -11
lines
Diff to previous 1.249 (colored)
introduce filehandle size limits: - FHANDLE_SIZE_MAX: refuse unreasonable size allocation, esp. when it's a user-specified value. - FHANDLE_SIZE_MIN: pad small filehandles with zero for compatibility. XXX it might be better to push this into filesystem dependent code so that new filesystems can choose smaller handles.
Revision 1.249 / (download) - annotate - [select for diffs], Fri Jul 14 18:29:40 2006 UTC (6 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.248: +83 -24
lines
Diff to previous 1.248 (colored)
- sys___getfh30: - restructure code so that it doesn't try to allocate user-specified unbound amount of memory. - don't ignore copyout failure in the case of E2BIG. - rename vfs_copyinfh to vfs_copyinfh_alloc for consistency.
Revision 1.248 / (download) - annotate - [select for diffs], Fri Jul 14 15:59:29 2006 UTC (6 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.247: +107 -71
lines
Diff to previous 1.247 (colored)
- fix buffer overruns in fhopen and friends. - share some code among them.
Revision 1.247 / (download) - annotate - [select for diffs], Fri Jul 14 14:28:58 2006 UTC (6 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.246: +3 -3
lines
Diff to previous 1.246 (colored)
sys___getfh30: fix a vnode lock botch in rev.1.244.
Revision 1.246 / (download) - annotate - [select for diffs], Fri Jul 14 14:00:46 2006 UTC (6 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.245: +6 -7
lines
Diff to previous 1.245 (colored)
sys___getfh30: remove unnecessary casts.
Revision 1.245 / (download) - annotate - [select for diffs], Thu Jul 13 21:51:50 2006 UTC (6 years, 10 months ago) by martin
Branch: MAIN
Changes since 1.244: +4 -4
lines
Diff to previous 1.244 (colored)
fix typo
Revision 1.244 / (download) - annotate - [select for diffs], Thu Jul 13 12:00:25 2006 UTC (6 years, 10 months ago) by martin
Branch: MAIN
Changes since 1.243: +77 -26
lines
Diff to previous 1.243 (colored)
Fix alignement problems for fhandle_t, exposed by gcc4.1. While touching all vptofh/fhtovp functions, get rid of VFS_MAXFIDSIZ, version the getfh(2) syscall and explicitly pass the size available in the filehandle from userland. Discussed on tech-kern, with lots of help from yamt (thanks!).
Revision 1.243 / (download) - annotate - [select for diffs], Sat Jun 17 07:06:51 2006 UTC (6 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6,
chap-midi-nbase,
chap-midi-base
Changes since 1.242: +22 -6
lines
Diff to previous 1.242 (colored)
- introduce vfs_composefh() and use it where appropriate. - fix lock/unlock mismatch in sys_getfh.
Revision 1.242 / (download) - annotate - [select for diffs], Sun May 14 21:15:12 2006 UTC (7 years ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5,
simonb-timecounters-base,
gdamore-uart-base
Branch point for: gdamore-uart,
chap-midi
Changes since 1.241: +85 -68
lines
Diff to previous 1.241 (colored)
integrate kauth.
Revision 1.241 / (download) - annotate - [select for diffs], Wed May 10 11:02:29 2006 UTC (7 years ago) by yamt
Branch: MAIN
CVS Tags: elad-kernelauth-base
Changes since 1.240: +34 -21
lines
Diff to previous 1.240 (colored)
don't allocate struct statvfs on stack as it's too large.
Revision 1.240 / (download) - annotate - [select for diffs], Thu May 4 17:48:56 2006 UTC (7 years ago) by christos
Branch: MAIN
Changes since 1.239: +4 -4
lines
Diff to previous 1.239 (colored)
fhstat needs to be versioned too (for ino_t). Pointed out by Izumi Tsutsui
Revision 1.239 / (download) - annotate - [select for diffs], Mon Mar 27 20:20:45 2006 UTC (7 years, 1 month ago) by martin
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4,
yamt-pdpolicy-base3
Changes since 1.238: +3 -2
lines
Diff to previous 1.238 (colored)
KASSERT that the returned file id length from VPTOFH is <= the maximum allowed value (_VFS_MAXFIDSZ).
Revision 1.238 / (download) - annotate - [select for diffs], Wed Mar 1 12:38:21 2006 UTC (7 years, 2 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pdpolicy-base2,
yamt-pdpolicy-base,
peter-altq-base
Branch point for: yamt-pdpolicy,
peter-altq,
elad-kernelauth
Changes since 1.237: +4 -4
lines
Diff to previous 1.237 (colored)
merge yamt-uio_vmspace branch. - use vmspace rather than proc or lwp where appropriate. the latter is more natural to specify an address space. (and less likely to be abused for random purposes.) - fix a swdmover race.
Revision 1.237 / (download) - annotate - [select for diffs], Sun Feb 12 01:32:06 2006 UTC (7 years, 3 months ago) by chs
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5
Changes since 1.236: +4 -5
lines
Diff to previous 1.236 (colored)
convert "magiclinks" from a per-fs mount option to a system-wide sysctl. as discussed on tech-kern quite some time ago.
Revision 1.236 / (download) - annotate - [select for diffs], Sat Feb 4 12:09:50 2006 UTC (7 years, 3 months ago) by yamt
Branch: MAIN
Changes since 1.235: +5 -5
lines
Diff to previous 1.235 (colored)
for some random places, use PNBUF_GET/PUT rather than - on-stack buffer - malloc(MAXPATHLEN)
Revision 1.235 / (download) - annotate - [select for diffs], Mon Dec 12 16:26:33 2005 UTC (7 years, 5 months ago) by elad
Branch: MAIN
Branch point for: yamt-uio_vmspace,
simonb-timecounters,
rpaulo-netinet-merge-pcb
Changes since 1.234: +4 -4
lines
Diff to previous 1.234 (colored)
Catch up with ktrace-lwp merge.
While I'm here, stop using cur{lwp,proc}.
Revision 1.234 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:30 2005 UTC (7 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.233: +186 -197
lines
Diff to previous 1.233 (colored)
merge ktrace-lwp.
Revision 1.233 / (download) - annotate - [select for diffs], Sat Oct 1 06:13:42 2005 UTC (7 years, 7 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-vop-base3,
yamt-vop-base2,
yamt-vop-base,
yamt-vop,
yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base3,
yamt-readahead-base2,
yamt-readahead-base,
yamt-readahead,
thorpej-vnode-attr-base,
thorpej-vnode-attr,
ktrace-lwp-base
Changes since 1.232: +8 -9
lines
Diff to previous 1.232 (colored)
change_utimes: use nanotime(9) rather than time(9).
Revision 1.232 / (download) - annotate - [select for diffs], Sun Sep 25 21:57:40 2005 UTC (7 years, 7 months ago) by jmmv
Branch: MAIN
Changes since 1.231: +26 -2
lines
Diff to previous 1.231 (colored)
Add some COMPAT_30 code to let old mountd binaries work after the NFS exports rototill.
Revision 1.231 / (download) - annotate - [select for diffs], Fri Sep 23 12:10:33 2005 UTC (7 years, 8 months ago) by jmmv
Branch: MAIN
Changes since 1.230: +14 -4
lines
Diff to previous 1.230 (colored)
Apply the NFS exports list rototill patch: - Remove all NFS related stuff from file system specific code. - Drop the vfs_checkexp hook and generalize it in the new nfs_check_export function, thus removing redundancy from all file systems. - Move all NFS export-related stuff from kern/vfs_subr.c to the new file sys/nfs/nfs_export.c. The former was becoming large and its code is always compiled, regardless of the build options. Using the latter, the code is only compiled in when NFSSERVER is enabled. While doing this, also make some functions in nfs_subs.c conditional to NFSSERVER. - Add a new command in nfssvc(2), called NFSSVC_SETEXPORTSLIST, that takes a path and a set of export entries. At the moment it can only clear the exports list or append entries, one by one, but it is done in a way that allows setting the whole set of entries atomically in the future (see the comment in mountd_set_exports_list or in doc/TODO). - Change mountd(8) to use the nfssvc(2) system call instead of mount(2) so that it becomes file system agnostic. In fact, all this whole thing was done to remove a 'XXX' block from this utility! - Change the mount*, newfs and fsck* userland utilities to not deal with NFS exports initialization; done internally by the kernel when initializing the NFS support for each file system. - Implement an interface for VFS (called VFS hooks) so that several kernel subsystems can run arbitrary code upon receipt of specific VFS events. At the moment, this only provides support for unmount and is used to destroy NFS exports lists from the file systems being unmounted, though it has room for extension. Thanks go to yamt@, chs@, thorpej@, wrstuden@ and others for their comments and advice in the development of this patch.
Revision 1.230 / (download) - annotate - [select for diffs], Tue Aug 30 09:37:41 2005 UTC (7 years, 8 months ago) by jmmv
Branch: MAIN
Changes since 1.229: +3 -2
lines
Diff to previous 1.229 (colored)
Make all creation operations (mkdir, create, mknod and symlink) consistent by changing the symlink one to set vap's vatype to VLNK. All the other three already set vatype to the correct type. Note that, however, in the mkdir case (and now symlink too) this is not strictly necessary.
Revision 1.229 / (download) - annotate - [select for diffs], Fri Aug 19 12:30:02 2005 UTC (7 years, 9 months ago) by elad
Branch: MAIN
Changes since 1.228: +9 -4
lines
Diff to previous 1.228 (colored)
Introduce veriexec_renamechk(). Rename policy: - Strict levels 0, 1: Log renames of monitored files. - Strict level 2: Prevent renames of monitored files. - Strict level 3: Prevent renames.
Revision 1.228 / (download) - annotate - [select for diffs], Fri Aug 19 02:04:03 2005 UTC (7 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.227: +8 -8
lines
Diff to previous 1.227 (colored)
64 bit inode changes.
Revision 1.227 / (download) - annotate - [select for diffs], Fri Aug 5 13:22:23 2005 UTC (7 years, 9 months ago) by jmmv
Branch: MAIN
Changes since 1.226: +4 -4
lines
Diff to previous 1.226 (colored)
Fix some typos in comments.
Revision 1.226 / (download) - annotate - [select for diffs], Sat Jul 16 22:47:18 2005 UTC (7 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.225: +3 -2
lines
Diff to previous 1.225 (colored)
defopt verified_exec.
Revision 1.225 / (download) - annotate - [select for diffs], Sun Jul 10 14:26:02 2005 UTC (7 years, 10 months ago) by cube
Branch: MAIN
Changes since 1.224: +3 -3
lines
Diff to previous 1.224 (colored)
The comment listing the arguments of fsync_range(2) wrongly described "length" as an int. It is an off_t.
Revision 1.224 / (download) - annotate - [select for diffs], Sat Jul 9 01:05:24 2005 UTC (7 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.223: +2 -608
lines
Diff to previous 1.223 (colored)
Move VFS extended attribute support to its own file.
Revision 1.223 / (download) - annotate - [select for diffs], Thu Jun 23 00:30:28 2005 UTC (7 years, 11 months ago) by thorpej
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.222: +5 -4
lines
Diff to previous 1.222 (colored)
Implement expansion of special "magic" strings in symlinks into system-specific values. Submitted by Chris Demetriou in Nov 1995 (!) in PR kern/1781, modified only slighly by me. This is enabled on a per-mount basis with the MNT_MAGICLINKS mount flag. It can be enabled at mountroot() time by building the kernel with the ROOTFS_MAGICLINKS option. The following magic strings are supported by the implementation: @machine value of MACHINE for the system @machine_arch value of MACHINE_ARCH for the system @hostname the system host name, as set with sethostname() @domainname the system domain name, as set with setdomainname() @kernel_ident the kernel config file name @osrelease the releaes number of the OS @ostype the name of the OS (always "NetBSD" for NetBSD) Example usage: mkdir /arch/i386/bin mkdir /arch/sparc/bin ln -s /arch/@machine_arch/bin /bin
Revision 1.222 / (download) - annotate - [select for diffs], Fri Jun 17 17:46:18 2005 UTC (7 years, 11 months ago) by elad
Branch: MAIN
Changes since 1.221: +3 -5
lines
Diff to previous 1.221 (colored)
More veriexec changes:
- Better organize strict level. Now we have 4 levels:
- Level 0, learning mode: Warnings only about anything that might've
resulted in 'access denied' or similar in a higher strict level.
- Level 1, IDS mode:
- Deny access on fingerprint mismatch.
- Deny modification of veriexec tables.
- Level 2, IPS mode:
- All implications of strict level 1.
- Deny write access to monitored files.
- Prevent removal of monitored files.
- Enforce access type - 'direct', 'indirect', or 'file'.
- Level 3, lockdown mode:
- All implications of strict level 2.
- Prevent creation of new files.
- Deny access to non-monitored files.
- Update sysctl(3) man-page with above. (date bumped too :)
- Remove FINGERPRINT_INDIRECT from possible fp_status values; it's no
longer needed.
- Simplify veriexec_removechk() in light of new strict level policies.
- Eliminate use of 'securelevel'; veriexec now behaves according to
its strict level only.
Revision 1.221 / (download) - annotate - [select for diffs], Sun Jun 5 23:47:48 2005 UTC (7 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.220: +74 -278
lines
Diff to previous 1.220 (colored)
Use ANSI function decls.
Revision 1.220 / (download) - annotate - [select for diffs], Sun May 29 22:24:15 2005 UTC (7 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.219: +3 -3
lines
Diff to previous 1.219 (colored)
- add const. - remove unnecessary casts. - add __UNCONST casts and mark them with XXXUNCONST as necessary.
Revision 1.219 / (download) - annotate - [select for diffs], Wed Apr 20 13:44:46 2005 UTC (8 years, 1 month ago) by blymn
Branch: MAIN
CVS Tags: kent-audio2-base
Changes since 1.218: +21 -2
lines
Diff to previous 1.218 (colored)
Rototill of the verified exec functionality.
* We now use hash tables instead of a list to store the in kernel
fingerprints.
* Fingerprint methods handling has been made more flexible, it is now
even simpler to add new methods.
* the loader no longer passes in magic numbers representing the
fingerprint method so veriexecctl is not longer kernel specific.
* fingerprint methods can be tailored out using options in the kernel
config file.
* more fingerprint methods added - rmd160, sha256/384/512
* veriexecctl can now report the fingerprint methods supported by the
running kernel.
* regularised the naming of some portions of veriexec.
Revision 1.218 / (download) - annotate - [select for diffs], Wed Apr 6 13:49:31 2005 UTC (8 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.217: +30 -19
lines
Diff to previous 1.217 (colored)
sys_mount: - reject attempts of MNT_GETARGS + other MNT_xxx. - don't modify mnt_flags needlessly for MNT_GETARGS. a stopgap fix for PR/29898.
Revision 1.217 / (download) - annotate - [select for diffs], Sat Feb 26 21:34:56 2005 UTC (8 years, 2 months ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4,
yamt-km-base3,
netbsd-3-base
Branch point for: netbsd-3
Changes since 1.216: +26 -26
lines
Diff to previous 1.216 (colored)
nuke trailing whitespace
Revision 1.216 / (download) - annotate - [select for diffs], Tue Jan 25 23:55:20 2005 UTC (8 years, 3 months ago) by wrstuden
Branch: MAIN
CVS Tags: yamt-km-base2,
matt-timespec
Changes since 1.215: +6 -4
lines
Diff to previous 1.215 (colored)
Extend fsync_range(2) to support the FDISKSYNC flag, which requests that the sync be propogated out through the disk drive caches.
Revision 1.215 / (download) - annotate - [select for diffs], Mon Jan 24 21:27:02 2005 UTC (8 years, 4 months ago) by dbj
Branch: MAIN
CVS Tags: yamt-km-base
Branch point for: yamt-km
Changes since 1.214: +4 -2
lines
Diff to previous 1.214 (colored)
clear p->p_cwdi of exiting processes and avoid dereferencing invalid p_cwdi in checkdirs this fixes a race condition between exiting processes and mount see discussion on tech-kern: http://mail-index.netbsd.org/tech-kern/2004/10/04/0006.html http://mail-index.netbsd.org/tech-kern/2004/10/08/0005.html
Revision 1.214 / (download) - annotate - [select for diffs], Sun Jan 2 16:08:29 2005 UTC (8 years, 4 months ago) by thorpej
Branch: MAIN
CVS Tags: kent-audio1-beforemerge
Branch point for: kent-audio2
Changes since 1.213: +608 -2
lines
Diff to previous 1.213 (colored)
Add the system call and VFS infrastructure for file system extended attributes. From FreeBSD.
Revision 1.213 / (download) - annotate - [select for diffs], Tue Nov 30 04:25:44 2004 UTC (8 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: kent-audio1-base,
kent-audio1
Changes since 1.212: +3 -3
lines
Diff to previous 1.212 (colored)
Cloning cleanup:
1. make fileops const
2. add 2 new negative errno's to `officially' support the cloning hack:
- EDUPFD (used to overload ENODEV)
- EMOVEFD (used to overload ENXIO)
3. Created an fdclone() function to encapsulate the operations needed for
EMOVEFD, and made all cloners use it.
4. Centralize the local noop/badop fileops functions to:
fnullop_fcntl, fnullop_poll, fnullop_kqfilter, fbadop_stat
Revision 1.212 / (download) - annotate - [select for diffs], Fri Oct 1 16:30:56 2004 UTC (8 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.211: +3 -3
lines
Diff to previous 1.211 (colored)
introduce a function, proclist_foreach_call, to iterate all procs on a proclist and call the specified function for each of them. primarily to fix a procfs locking problem, but i think that it's useful for others as well. while i'm here, introduce PROCLIST_FOREACH macro, which is similar to LIST_FOREACH but skips marker entries which are used by proclist_foreach_call.
Revision 1.211 / (download) - annotate - [select for diffs], Mon Sep 13 20:02:20 2004 UTC (8 years, 8 months ago) by jdolecek
Branch: MAIN
Changes since 1.210: +4 -2
lines
Diff to previous 1.210 (colored)
dostatvfs(): zero the statvfs structure before calling filesystem code, so that unset parts would have defined value and not pass random parts of kernel stack
Revision 1.210 / (download) - annotate - [select for diffs], Thu Jul 1 10:03:30 2004 UTC (8 years, 10 months ago) by hannken
Branch: MAIN
Changes since 1.209: +3 -2
lines
Diff to previous 1.209 (colored)
Keep a pointer to the leaf mount. Needed for write gating where a file system gets suspended and has layered mounts above it. Welcome to 2.0G Reviewed by: Bill Studenmund <wrstuden@netbsd.org>
Revision 1.209 / (download) - annotate - [select for diffs], Tue May 25 14:54:57 2004 UTC (9 years ago) by hannken
Branch: MAIN
Changes since 1.208: +9 -6
lines
Diff to previous 1.208 (colored)
Add ffs internal snapshots. Written by Marshall Kirk McKusick for FreeBSD.
- Not enabled by default. Needs kernel option FFS_SNAPSHOT.
- Change parameters of ffs_blkfree.
- Let the copy-on-write functions return an error so spec_strategy
may fail if the copy-on-write fails.
- Change genfs_*lock*() to use vp->v_vnlock instead of &vp->v_lock.
- Add flag B_METAONLY to VOP_BALLOC to return indirect block buffer.
- Add a function ffs_checkfreefile needed for snapshot creation.
- Add special handling of snapshot files:
Snapshots may not be opened for writing and the attributes are read-only.
Use the mtime as the time this snapshot was taken.
Deny mtime updates for snapshot files.
- Add function transferlockers to transfer any waiting processes from
one lock to another.
- Add vfsop VFS_SNAPSHOT to take a snapshot and make it accessible through
a vnode.
- Add snapshot support to ls, fsck_ffs and dump.
Welcome to 2.0F.
Approved by: Jason R. Thorpe <thorpej@netbsd.org>
Revision 1.208 / (download) - annotate - [select for diffs], Sun May 2 12:21:02 2004 UTC (9 years ago) by pk
Branch: MAIN
Changes since 1.207: +11 -5
lines
Diff to previous 1.207 (colored)
Add a mutex for mount point I/O and wait counters (i.e. the `mnt_wcnt', `mnt_writeopcountupper' and `mnt_writeopcountlower' members).
Revision 1.207 / (download) - annotate - [select for diffs], Sun May 2 11:13:29 2004 UTC (9 years ago) by pk
Branch: MAIN
Changes since 1.206: +4 -5
lines
Diff to previous 1.206 (colored)
sys_access: use crdup().
Revision 1.206 / (download) - annotate - [select for diffs], Wed Apr 21 01:05:38 2004 UTC (9 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.205: +51 -46
lines
Diff to previous 1.205 (colored)
Replace the statfs() family of system calls with statvfs(). Retain binary compatibility.
Revision 1.205 / (download) - annotate - [select for diffs], Tue Mar 23 13:22:33 2004 UTC (9 years, 2 months ago) by junyoung
Branch: MAIN
CVS Tags: netbsd-2-base,
netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-0-base,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE
Branch point for: netbsd-2-1,
netbsd-2-0,
netbsd-2
Changes since 1.204: +22 -24
lines
Diff to previous 1.204 (colored)
- Nuke __P(). - Drop trailing spaces.
Revision 1.204 / (download) - annotate - [select for diffs], Wed Feb 25 04:10:28 2004 UTC (9 years, 3 months ago) by dbj
Branch: MAIN
Changes since 1.203: +3 -3
lines
Diff to previous 1.203 (colored)
fix typo in comment s/MNT_LAXY/MNT_LAZY/
Revision 1.203 / (download) - annotate - [select for diffs], Sun Feb 22 09:56:26 2004 UTC (9 years, 3 months ago) by jdolecek
Branch: MAIN
Changes since 1.202: +5 -3
lines
Diff to previous 1.202 (colored)
mount(2): if vinvalbuf() fails, we must also vput() the mountpoint vnode fixes stale vnode lock after attempt to mount something on a NTFS directory
Revision 1.202 / (download) - annotate - [select for diffs], Wed Dec 10 11:40:12 2003 UTC (9 years, 5 months ago) by hannken
Branch: MAIN
Changes since 1.201: +10 -2
lines
Diff to previous 1.201 (colored)
The file system snapshot pseudo driver. Uses a hook in spec_strategy() to save data written from a mounted file system to its block device and a hook in dounmount(). Not enabled by default in any kernel config. Approved by: Frank van der Linden <fvdl@netbsd.org>
Revision 1.201 / (download) - annotate - [select for diffs], Sat Nov 15 01:19:38 2003 UTC (9 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.200: +76 -2
lines
Diff to previous 1.200 (colored)
Kernel portion of the fsync_range(2) system call. Written by Bill Studenmund, and contributed by Wasabi Systems, Inc.
Revision 1.200 / (download) - annotate - [select for diffs], Sun Nov 9 07:55:38 2003 UTC (9 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.199: +3 -2
lines
Diff to previous 1.199 (colored)
- fix an use-after-free bug in /dev/fd/* handling. specifically, don't keep a stale pointer in fd_ofiles. it isn't needed anymore as fd allocation is now done using bitmaps. - clean up dupfdopen() a little. - don't call fd_used() unnecessarily.
Revision 1.199 / (download) - annotate - [select for diffs], Sat Oct 25 01:18:01 2003 UTC (9 years, 7 months ago) by kleink
Branch: MAIN
Changes since 1.198: +6 -2
lines
Diff to previous 1.198 (colored)
POSIX: when attempting to fdatasync(2) a file which is not open for writing, fail with EBADF.
Revision 1.198 / (download) - annotate - [select for diffs], Wed Oct 15 17:26:38 2003 UTC (9 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.197: +4 -5
lines
Diff to previous 1.197 (colored)
Remove the superuser check for MNT_FORCE on new mounts. It's been pointed out by several people that it offers no real protection.
Revision 1.197 / (download) - annotate - [select for diffs], Wed Oct 15 11:29:01 2003 UTC (9 years, 7 months ago) by hannken
Branch: MAIN
Changes since 1.196: +190 -17
lines
Diff to previous 1.196 (colored)
Add the gating of system calls that cause modifications to the underlying file system. The function vfs_write_suspend stops all new write operations to a file system, allows any file system modifying system calls already in progress to complete, then sync's the file system to disk and returns. The function vfs_write_resume allows the suspended write operations to complete. From FreeBSD with slight modifications. Approved by: Frank van der Linden <fvdl@netbsd.org>
Revision 1.196 / (download) - annotate - [select for diffs], Tue Oct 14 14:02:56 2003 UTC (9 years, 7 months ago) by dbj
Branch: MAIN
Changes since 1.195: +11 -11
lines
Diff to previous 1.195 (colored)
add mnt_iflag field to struct mount for internal flags mv MNT_GONE, MNT_UNMOUNT and MNT_WANTRDWR to this field additonally add mnt_writeopcountupper and mnt_writeopcountlower fields in preparation for pending write suspension support work bump kernel version to 1.6ZD
Revision 1.195 / (download) - annotate - [select for diffs], Mon Oct 13 18:02:20 2003 UTC (9 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.194: +23 -11
lines
Diff to previous 1.194 (colored)
* Shuffle some flags to make it easier to visually compare lists of flags. * In the new mount case, make sure to clear the mount "action" flags. * Allow MNT_FORCE to be set by root on new mounts.
Revision 1.194 / (download) - annotate - [select for diffs], Sat Sep 13 08:32:14 2003 UTC (9 years, 8 months ago) by jdolecek
Branch: MAIN
Changes since 1.193: +6 -6
lines
Diff to previous 1.193 (colored)
move dupfd from struct proc to struct lwp - it's per-LWP, not per-process; we use curlwp where the lwp is not directly available, i.e. in device open routines briefly discussed on tech-kern
Revision 1.193 / (download) - annotate - [select for diffs], Thu Sep 11 17:33:42 2003 UTC (9 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.192: +6 -5
lines
Diff to previous 1.192 (colored)
PR/15397: Jason Thorpe: directory operations on pathnames that refer to directories and have trailing slashes should succeed. Ok'd by kjk. Fix provided by enami.
Revision 1.192 / (download) - annotate - [select for diffs], Tue Sep 2 12:31:35 2003 UTC (9 years, 8 months ago) by drochner
Branch: MAIN
Changes since 1.191: +14 -2
lines
Diff to previous 1.191 (colored)
also feed getdents/readdir data to KTRACE
Revision 1.191 / (download) - annotate - [select for diffs], Thu Aug 7 16:32:03 2003 UTC (9 years, 9 months ago) by agc
Branch: MAIN
Changes since 1.190: +3 -7
lines
Diff to previous 1.190 (colored)
Move UCB-licensed code from 4-clause to 3-clause licence. Patches provided by Joel Baker in PR 22364, verified by myself.
Revision 1.190 / (download) - annotate - [select for diffs], Sun Jun 29 22:31:34 2003 UTC (9 years, 10 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.189: +197 -187
lines
Diff to previous 1.189 (colored)
Back out the lwp/ktrace changes. They contained a lot of colateral damage, and need to be examined and discussed more.
Revision 1.189 / (download) - annotate - [select for diffs], Sun Jun 29 18:43:29 2003 UTC (9 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.188: +7 -7
lines
Diff to previous 1.188 (colored)
Undo part of the ktrace/lwp changes. In particular: * Remove the "lwp *" argument that was added to vget(). Turns out that nothing actually used it! * Remove the "lwp *" arguments that were added to VFS_ROOT(), VFS_VGET(), and VFS_FHTOVP(); all they did was pass it to vget() (which, as noted above, didn't use it). * Remove all of the "lwp *" arguments to internal functions that were added just to appease the above.
Revision 1.188 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:59 2003 UTC (9 years, 10 months ago) by darrenr
Branch: MAIN
Changes since 1.187: +192 -202
lines
Diff to previous 1.187 (colored)
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can be inserted into ktrace records. The general change has been to replace "struct proc *" with "struct lwp *" in various function prototypes, pass the lwp through and use l_proc to get the process pointer when needed. Bump the kernel rev up to 1.6V
Revision 1.187 / (download) - annotate - [select for diffs], Fri May 16 14:25:03 2003 UTC (10 years ago) by itojun
Branch: MAIN
Changes since 1.186: +8 -5
lines
Diff to previous 1.186 (colored)
use strlcpy. [fixed off-by-one in subr_prop.c]
Revision 1.186 / (download) - annotate - [select for diffs], Sun Apr 20 07:06:33 2003 UTC (10 years, 1 month ago) by yamt
Branch: MAIN
Changes since 1.185: +4 -2
lines
Diff to previous 1.185 (colored)
add simple_locks that are missed in the previous.
Revision 1.185 / (download) - annotate - [select for diffs], Wed Apr 16 21:44:21 2003 UTC (10 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.184: +102 -43
lines
Diff to previous 1.184 (colored)
PR/1796: John Kohl: statfs misbehaves under chrooted environments. - Under chroot it displays only the visible filesystems with appropriate paths. - The statfs f_mntonname gets adjusted to contain the real path from root. - While was there, fixed a bug in ext2fs, locking problems with vfs_getfsstat(), and factored out some of the vfsop statfs() code to copy_statfs_info(). This fixes the problem where some filesystems forgot to set fsid. - Made coda look more like a normal fs.
Revision 1.184 / (download) - annotate - [select for diffs], Fri Mar 21 23:11:25 2003 UTC (10 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.183: +12 -12
lines
Diff to previous 1.183 (colored)
Use 'void *' instead of 'caddr_t' in prototypes of VOP_IOCTL, VOP_FCNTL and VOP_ADVLOCK, delete casts from callers (and some to copyin/out).
Revision 1.183 / (download) - annotate - [select for diffs], Sun Feb 23 14:37:34 2003 UTC (10 years, 3 months ago) by pk
Branch: MAIN
Changes since 1.182: +14 -6
lines
Diff to previous 1.182 (colored)
Make updating a file's reference and use count MP-safe.
Revision 1.182 / (download) - annotate - [select for diffs], Fri Feb 14 18:25:34 2003 UTC (10 years, 3 months ago) by drochner
Branch: MAIN
Changes since 1.181: +3 -3
lines
Diff to previous 1.181 (colored)
fix typo in comment
Revision 1.181 / (download) - annotate - [select for diffs], Sat Feb 1 06:23:45 2003 UTC (10 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.180: +4 -2
lines
Diff to previous 1.180 (colored)
Add extensible malloc types, adapted from FreeBSD. This turns malloc types into a structure, a pointer to which is passed around, instead of an int constant. Allow the limit to be adjusted when the malloc type is defined, or with a function call, as suggested by Jonathan Stone.
Revision 1.180 / (download) - annotate - [select for diffs], Tue Jan 21 00:00:10 2003 UTC (10 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.179: +3 -3
lines
Diff to previous 1.179 (colored)
step 2: fix sync so that it does not dereference null lwp and assign p properly.
Revision 1.179 / (download) - annotate - [select for diffs], Sat Jan 18 10:06:38 2003 UTC (10 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.178: +177 -118
lines
Diff to previous 1.178 (colored)
Merge the nathanw_sa branch.
Revision 1.178 / (download) - annotate - [select for diffs], Wed Oct 30 22:36:46 2002 UTC (10 years, 6 months ago) by kleink
Branch: MAIN
CVS Tags: nathanw_sa_before_merge,
nathanw_sa_base,
gmcgarry_ucred_base,
gmcgarry_ctxsw_base,
gmcgarry_ctxsw,
fvdl_fs64_base
Branch point for: gmcgarry_ucred
Changes since 1.177: +3 -3
lines
Diff to previous 1.177 (colored)
Revert rev. 1.147, as per PR kern/17411. While a hard link to a symbolic link is not ruled out by POSIX-2001, the link(2) interface is to perform normal pathname resolution, which includes the resolution of symbolic links.
Revision 1.177 / (download) - annotate - [select for diffs], Sat Sep 21 18:07:52 2002 UTC (10 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: kqueue-beforemerge,
kqueue-base,
kqueue-aftermerge
Changes since 1.176: +18 -14
lines
Diff to previous 1.176 (colored)
Add special handling of VFS_GETARGS (similar to VFS_UPDATE) so that it can be done non-root, and it does not affect the mount lists.
Revision 1.176 / (download) - annotate - [select for diffs], Wed Sep 4 01:32:50 2002 UTC (10 years, 8 months ago) by matt
Branch: MAIN
Changes since 1.175: +9 -8
lines
Diff to previous 1.175 (colored)
Use the queue macros from <sys/queue.h> instead of referring to the queue members directly. Use *_FOREACH whenever possible.
Revision 1.175 / (download) - annotate - [select for diffs], Mon Aug 26 01:28:36 2002 UTC (10 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.174: +5 -5
lines
Diff to previous 1.174 (colored)
Fix a signed/unsigned comparison warning from GCC 3.3.
Revision 1.174 / (download) - annotate - [select for diffs], Sat May 11 00:45:06 2002 UTC (11 years ago) by enami
Branch: MAIN
CVS Tags: netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002,
netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001,
netbsd-1-6
Branch point for: gehenna-devsw
Changes since 1.173: +4 -4
lines
Diff to previous 1.173 (colored)
Don't release the lock on mount point vnode so early when doing update mount. Otherwise, race condition occurs (e.g., between mountd(8) and next mount(8) when multiple update mount command is invoked from shell script).
Revision 1.173 / (download) - annotate - [select for diffs], Mon Nov 12 15:25:41 2001 UTC (11 years, 6 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base,
newlock-base,
ifpoll-base,
ifpoll,
eeh-devprop-base,
eeh-devprop
Branch point for: newlock
Changes since 1.172: +4 -1
lines
Diff to previous 1.172 (colored)
add RCSIDs
Revision 1.172 / (download) - annotate - [select for diffs], Mon Oct 29 07:02:31 2001 UTC (11 years, 6 months ago) by simonb
Branch: MAIN
Changes since 1.171: +2 -5
lines
Diff to previous 1.171 (colored)
Don't need to include <uvm/uvm_extern.h> just to include <sys/sysctl.h> anymore.
Revision 1.171 / (download) - annotate - [select for diffs], Thu Oct 11 16:27:24 2001 UTC (11 years, 7 months ago) by christos
Branch: MAIN
Branch point for: thorpej-mips-cache
Changes since 1.170: +3 -3
lines
Diff to previous 1.170 (colored)
Allow userland to pass MNT_IGNORE (from enami)
Revision 1.170 / (download) - annotate - [select for diffs], Sat Sep 8 15:34:06 2001 UTC (11 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: thorpej-devvp-base3,
thorpej-devvp-base2,
pre-chs-ubcperf,
post-chs-ubcperf
Changes since 1.169: +2 -1
lines
Diff to previous 1.169 (colored)
Don't trash the ref count of cred. It causes a memory leak.
Revision 1.169 / (download) - annotate - [select for diffs], Sat Sep 8 02:05:39 2001 UTC (11 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.168: +9 -9
lines
Diff to previous 1.168 (colored)
Hijack the credentials used to evaluate access, to avoid a potential lwp race by modifying the proc's credentials temporarily. From Bill Sommerfeld. Thanks for forcing me to do this right :-)
Revision 1.168 / (download) - annotate - [select for diffs], Tue Jul 24 15:39:31 2001 UTC (11 years, 10 months ago) by assar
Branch: MAIN
CVS Tags: thorpej-devvp-base
Branch point for: thorpej-devvp
Changes since 1.167: +9 -2
lines
Diff to previous 1.167 (colored)
change vop_symlink and vop_mknod to return vpp (the created node) refed, so that the caller can actually use it. update callers and file systems that implement these vnode operations
Revision 1.167 / (download) - annotate - [select for diffs], Thu Jun 28 08:04:18 2001 UTC (11 years, 10 months ago) by jdolecek
Branch: MAIN
Branch point for: kqueue
Changes since 1.166: +12 -21
lines
Diff to previous 1.166 (colored)
Only define mountcompatnames[] for COMPAT_09 and COMPAT_43, make the table actually match state in NetBSD 0.9 (checked against sys/mount.h rev. 1.11). The array is not to be modified from now on, comment updated accordingly.
Revision 1.166 / (download) - annotate - [select for diffs], Thu Jun 14 20:32:48 2001 UTC (11 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.165: +21 -23
lines
Diff to previous 1.165 (colored)
Fix a partial construction problem that can cause race conditions between creation of a file descriptor and close(2) when using kernel assisted threads. What we do is stick descriptors in the table, but mark them as "larval". This causes essentially everything to treat it as a non-existent descriptor, except for fdalloc(), which sees a filled slot so that it won't (incorrectly) allocate it again. When a descriptor is fully constructed, the code that has constructed it marks it as "mature" (which actually clears the "larval" flag), and things continue to work as normal. While here, gather all the code that gets a descriptor from the table into a fd_getfile() function, and call it, rather than having the same (sometimes incorrect) code copied all over the place.
Revision 1.165 / (download) - annotate - [select for diffs], Mon Apr 16 22:41:11 2001 UTC (12 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase,
thorpej_scsipi_beforemerge,
thorpej_scsipi_base
Changes since 1.164: +24 -8
lines
Diff to previous 1.164 (colored)
When unmounting a file system, acquire the syncer_lock before vfs_busy'ing just before the dounmount() call. This is to avoid sleeping with the mountlist_slock held -- but we must acquire syncer_lock before vfs_busy because the syncer itself uses syncer_lock -> vfs_busy locking order.
Revision 1.164 / (download) - annotate - [select for diffs], Mon Nov 27 08:39:44 2000 UTC (12 years, 5 months ago) by chs
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.163: +6 -5
lines
Diff to previous 1.163 (colored)
Initial integration of the Unified Buffer Cache project.
Revision 1.163 / (download) - annotate - [select for diffs], Thu Sep 28 06:43:20 2000 UTC (12 years, 7 months ago) by enami
Branch: MAIN
Changes since 1.162: +30 -45
lines
Diff to previous 1.162 (colored)
Factor out common code to manupilate file flags into separate function like others do.
Revision 1.162 / (download) - annotate - [select for diffs], Tue Sep 19 22:01:41 2000 UTC (12 years, 8 months ago) by fvdl
Branch: MAIN
Changes since 1.161: +12 -6
lines
Diff to previous 1.161 (colored)
Adapt for VOP_FSYNC parameter change. Small optimization to shutdown code: only take the syncer lock if the FS actually used it.
Revision 1.161 / (download) - annotate - [select for diffs], Thu Aug 3 20:41:24 2000 UTC (12 years, 9 months ago) by thorpej
Branch: MAIN
Changes since 1.160: +5 -5
lines
Diff to previous 1.160 (colored)
Convert namei pathname buffer allocation to use the pool allocator.
Revision 1.160 / (download) - annotate - [select for diffs], Sun Jul 9 00:59:03 2000 UTC (12 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.159: +5 -9
lines
Diff to previous 1.159 (colored)
When unmounting, make sure to free the syncer vnode so that it can be reused.
Revision 1.159 / (download) - annotate - [select for diffs], Tue Jun 27 17:41:52 2000 UTC (12 years, 10 months ago) by mrg
Branch: MAIN
Changes since 1.158: +3 -5
lines
Diff to previous 1.158 (colored)
remove include of <vm/vm.h>
Revision 1.158 / (download) - annotate - [select for diffs], Mon Jun 19 18:53:55 2000 UTC (12 years, 11 months ago) by pooka
Branch: MAIN
CVS Tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Changes since 1.157: +4 -2
lines
Diff to previous 1.157 (colored)
Correct situation where vnode was left hanging around when trying to mount a filesystem with securelevel 2. A second mount-attempt left everything completely frozen. Fix by Bill Sommerfeld.
Revision 1.157 / (download) - annotate - [select for diffs], Thu Jun 15 22:32:44 2000 UTC (12 years, 11 months ago) by fvdl
Branch: MAIN
Changes since 1.156: +4 -3
lines
Diff to previous 1.156 (colored)
Enable passing of the MNT_SOFTDEP flag in the mount system call.
Revision 1.156 / (download) - annotate - [select for diffs], Mon Apr 17 14:31:22 2000 UTC (13 years, 1 month ago) by mrg
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.155: +44 -1
lines
Diff to previous 1.155 (colored)
implement lchflags(2), which does the chflags(2) dance without following symlinks, and thus can operate on symlinks. remove a bogus comment in chflags(1) that claims symlinks do not have file flags. XXX: todo -- make chflags(1) use lchflags(2) when given the right options.
Revision 1.155 / (download) - annotate - [select for diffs], Thu Mar 30 09:27:15 2000 UTC (13 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.154: +73 -73
lines
Diff to previous 1.154 (colored)
Get rid of register declarations.
Revision 1.154 / (download) - annotate - [select for diffs], Thu Mar 30 02:12:25 2000 UTC (13 years, 1 month ago) by simonb
Branch: MAIN
Changes since 1.153: +1 -2
lines
Diff to previous 1.153 (colored)
Delete redundant decl of dounmount(), it's in <sys/mount.h>.
Revision 1.153 / (download) - annotate - [select for diffs], Thu Mar 23 05:16:15 2000 UTC (13 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.152: +5 -5
lines
Diff to previous 1.152 (colored)
Implement fdremove() which is used in place of all the code that did the "fdp->fd_ofiles[fd] = 0" assignment; fdremove() make sure the fd_freefiles hints stay in sync. From OpenBSD.
Revision 1.152 / (download) - annotate - [select for diffs], Wed Mar 15 16:30:39 2000 UTC (13 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.151: +1 -3
lines
Diff to previous 1.151 (colored)
In fdatasync, do not call bioops.io_fsync, since we're not flushing metadata. If you do call it, there's actually a fair chance that it will panic because its metadata dependencies were not cleared in the VOP_FSYNC above (with FSYNC_DATAONLY).
Revision 1.151 / (download) - annotate - [select for diffs], Fri Mar 3 05:21:04 2000 UTC (13 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.150: +12 -9
lines
Diff to previous 1.150 (colored)
Allow my disk to actually spin down using `-o async' again. Note: This uses the same questionable logic as vfs_bio.c to check MNT_ASYNC. Something needs to be done about this.
Revision 1.150 / (download) - annotate - [select for diffs], Wed Feb 16 11:57:46 2000 UTC (13 years, 3 months ago) by fvdl
Branch: MAIN
Changes since 1.149: +5 -1
lines
Diff to previous 1.149 (colored)
Introduce a sysctl to enable/disable if non-root users can mount filesystems. Default: off.
Revision 1.149 / (download) - annotate - [select for diffs], Tue Feb 1 01:24:38 2000 UTC (13 years, 3 months ago) by assar
Branch: MAIN
CVS Tags: chs-ubc2-newbase
Changes since 1.148: +1 -3
lines
Diff to previous 1.148 (colored)
(sys_open, sys_fhopen): remove declaration of vnops, now in <sys/file.h>
Revision 1.148 / (download) - annotate - [select for diffs], Mon Nov 15 18:49:09 1999 UTC (13 years, 6 months ago) by fvdl
Branch: MAIN
CVS Tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221
Changes since 1.147: +50 -8
lines
Diff to previous 1.147 (colored)
Add Kirk McKusick's soft updates code to the trunk. Not enabled by default, as the copyright on the main file (ffs_softdep.c) is such that is has been put into gnusrc. options SOFTDEP will pull this in. This code also contains the trickle syncer. Bump version number to 1.4O
Revision 1.147 / (download) - annotate - [select for diffs], Sun Sep 5 23:34:39 1999 UTC (13 years, 8 months ago) by hubertf
Branch: MAIN
CVS Tags: fvdl-softdep-base,
comdex-fall-1999-base,
comdex-fall-1999
Branch point for: wrstuden-devbsize,
thorpej_scsipi,
fvdl-softdep
Changes since 1.146: +2 -2
lines
Diff to previous 1.146 (colored)
Allow hardlinks to symlinks. Reviewed by: Bill Studenmund, Klaus Klein
Revision 1.146 / (download) - annotate - [select for diffs], Sat Jul 31 03:18:43 1999 UTC (13 years, 9 months ago) by christos
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.145: +24 -1
lines
Diff to previous 1.145 (colored)
OpenBSD patch to prevent non-root users who own block or character devices (typically ttys or ptys) from changing the flags on them. [Commit by cjs.]
Revision 1.145 / (download) - annotate - [select for diffs], Mon Jul 26 19:20:09 1999 UTC (13 years, 10 months ago) by wrstuden
Branch: MAIN
Changes since 1.144: +2 -2
lines
Diff to previous 1.144 (colored)
Add VLAYER to tests which will cause VOP_REVOKE to be called in sys_revoke().
Revision 1.144 / (download) - annotate - [select for diffs], Sun Jul 25 06:30:35 1999 UTC (13 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.143: +2 -2
lines
Diff to previous 1.143 (colored)
Turn the proclist lock into a read/write spinlock. Update proclist locking calls to reflect this. Also, block statclock rather than softclock during in the proclist locking functions, to address a problem reported on current-users by Sean Doran.
Revision 1.143 / (download) - annotate - [select for diffs], Thu Jul 22 23:00:27 1999 UTC (13 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.142: +3 -1
lines
Diff to previous 1.142 (colored)
Add proclist locking where appropriate (forgot to commit this file previously).
Revision 1.142 / (download) - annotate - [select for diffs], Sun Jul 4 16:20:13 1999 UTC (13 years, 10 months ago) by sommerfeld
Branch: MAIN
Changes since 1.141: +9 -4
lines
Diff to previous 1.141 (colored)
Fix kern/7906: race between unmount and getnewvnode() mp->mnt_flags & MNT_MWAIT is replaced by mp->mnt_wcnt, and a new mount flag MNT_GONE is created (reusing the same bit). In insmntque(), add DIAGNOSTIC check to fail if the filesystem vnode is being moved to is in the process of being unmounted. getnewvnode() now protects the list of vnodes active on mp with vfs_busy()/vfs_unbusy(). To avoid generating spurious errors during a doomed unmount, change the "wait for unmount to finish" protocol between dounmount() and vfs_busy(). In vfs_busy(), instead of only sleeping once, sleep until either MNT_UNMOUNT is clear or MNT_GONE is set; also, maintain a count of waiters in mp->mnt_wcnt so that dounmount() knows when it's safe to free mp. tested by running a "while :; do mount /d1; umount -f /d1; done" loop against multiple find(1) processes.
Revision 1.141 / (download) - annotate - [select for diffs], Sun Jul 4 06:17:52 1999 UTC (13 years, 10 months ago) by sommerfeld
Branch: MAIN
Changes since 1.140: +2 -2
lines
Diff to previous 1.140 (colored)
fix typo in previous
Revision 1.140 / (download) - annotate - [select for diffs], Sun Jul 4 06:16:29 1999 UTC (13 years, 10 months ago) by sommerfeld
Branch: MAIN
Changes since 1.139: +4 -1
lines
Diff to previous 1.139 (colored)
Don't permanently lose the async bit on an failed unmount
Revision 1.139 / (download) - annotate - [select for diffs], Thu Jul 1 18:58:16 1999 UTC (13 years, 10 months ago) by wrstuden
Branch: MAIN
Changes since 1.138: +21 -8
lines
Diff to previous 1.138 (colored)
Make fhopen use FILE_UNUSE, and don't leak file descriptors. Patch from Jason Thorpe. Also should close PR 7889 from Assar Westerlund <assar@sics.se> describing this problem.
Revision 1.138 / (download) - annotate - [select for diffs], Wed Jun 30 10:00:06 1999 UTC (13 years, 10 months ago) by is
Branch: MAIN
Changes since 1.137: +5 -3
lines
Diff to previous 1.137 (colored)
Only check for ETXTBSY if the access would otherwise be allowed. Needed to fix pr4134.
Revision 1.137 / (download) - annotate - [select for diffs], Tue Jun 29 22:18:47 1999 UTC (13 years, 10 months ago) by wrstuden
Branch: MAIN
Changes since 1.136: +237 -1
lines
Diff to previous 1.136 (colored)
Add fhopen, fhstat, fhstatfs syscalls. Also move getfh in from the nfs syscall code.
Revision 1.136 / (download) - annotate - [select for diffs], Thu May 6 17:11:04 1999 UTC (14 years ago) by christos
Branch: MAIN
Changes since 1.135: +2 -1
lines
Diff to previous 1.135 (colored)
Add NTFS for the compat names.
Revision 1.135 / (download) - annotate - [select for diffs], Wed May 5 20:01:10 1999 UTC (14 years ago) by thorpej
Branch: MAIN
Changes since 1.134: +147 -55
lines
Diff to previous 1.134 (colored)
Add "use counting" to file entries. When closing a file, and it's reference count is 0, wait for use count to drain before finishing the close. This is necessary in order for multiple processes to safely share file descriptor tables.
Revision 1.134 / (download) - annotate - [select for diffs], Fri Apr 30 18:43:01 1999 UTC (14 years ago) by thorpej
Branch: MAIN
Changes since 1.133: +43 -39
lines
Diff to previous 1.133 (colored)
Break cdir/rdir/cmask info out of struct filedesc, and put it in a new substructure, `cwdinfo'. Implement optional sharing of this substructure. This is required for clone(2).
Revision 1.133 / (download) - annotate - [select for diffs], Wed Mar 31 19:18:45 1999 UTC (14 years, 1 month ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH001,
kame_14_19990705,
kame_14_19990628,
kame_141_19991130,
kame
Branch point for: netbsd-1-4,
chs-ubc2
Changes since 1.132: +4 -2
lines
Diff to previous 1.132 (colored)
If copyout() fails, make sure to unbusy the mount point before returning.
Revision 1.132 / (download) - annotate - [select for diffs], Wed Mar 24 05:51:26 1999 UTC (14 years, 2 months ago) by mrg
Branch: MAIN
Changes since 1.131: +1 -19
lines
Diff to previous 1.131 (colored)
completely remove Mach VM support. all that is left is the all the header files as UVM still uses (most of) these.
Revision 1.131 / (download) - annotate - [select for diffs], Mon Mar 22 17:13:35 1999 UTC (14 years, 2 months ago) by sommerfe
Branch: MAIN
Changes since 1.130: +86 -2
lines
Diff to previous 1.130 (colored)
Regen files based on changes to syscalls.master, vnode_if.src (latter was changes to comments only, but..) Build vfs_getcwd.c as standard part of kernel. Add implementation of fchroot(), since two emulations already had it. Call vn_isunder() in fchdir(), chroot(), and fchroot() to make it harder to escape chroot().
Revision 1.130 / (download) - annotate - [select for diffs], Wed Mar 17 15:35:03 1999 UTC (14 years, 2 months ago) by bouyer
Branch: MAIN
Changes since 1.129: +11 -5
lines
Diff to previous 1.129 (colored)
Hinherit MNT_NOEXEC from the mount point. Without this a user can exec arbitrary binaries by doing a user mount, even if the admin has carefully setup his system to avoid arbitrary binaries execution.
Revision 1.129 / (download) - annotate - [select for diffs], Tue Mar 2 07:47:49 1999 UTC (14 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.128: +2 -2
lines
Diff to previous 1.128 (colored)
Fill in vnodecovered in the mount structure before calling VFS_MOUNT anyway, some things (e.g. unionfs) may depend on it. It's currently ok for vnodecovered to be set already; it's not for v_mountedhere in the vnode, though. From John Darrow. XXX should probably just extend VFS_MOUNT to take the vnode pointer as an argument.
Revision 1.128 / (download) - annotate - [select for diffs], Sun Feb 28 14:12:54 1999 UTC (14 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.127: +5 -5
lines
Diff to previous 1.127 (colored)
Use a SETRECURSE lock before calling VFS_MOUNT in the mount() system call, since the lock may be taken again. This was the intention of the CANRECURSE lock already there, but didn't work. Only fill in the vnode<->mountpoint links (mountedhere and vnodecovered) after VFS_MOUNT returned succesfully. It might happen that something called from VFS_MOUNT mistook the vnode for an already successfully mounted on one because of this.
Revision 1.127 / (download) - annotate - [select for diffs], Thu Dec 10 15:09:19 1998 UTC (14 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.126: +2 -1
lines
Diff to previous 1.126 (colored)
defopt COMPAT_43
Revision 1.126 / (download) - annotate - [select for diffs], Tue Dec 1 23:17:25 1998 UTC (14 years, 5 months ago) by kenh
Branch: MAIN
CVS Tags: kenh-if-detach-base,
kenh-if-detach
Changes since 1.125: +3 -3
lines
Diff to previous 1.125 (colored)
Pass MNT_NODEVMTIME flag to lower VFS layer.
Revision 1.125 / (download) - annotate - [select for diffs], Sat Nov 14 06:38:54 1998 UTC (14 years, 6 months ago) by tls
Branch: MAIN
Changes since 1.124: +16 -1
lines
Diff to previous 1.124 (colored)
At securelevel >=2, don't allow new mounts, only allow change from rw to ro.
Revision 1.124 / (download) - annotate - [select for diffs], Fri Nov 13 04:12:35 1998 UTC (14 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.123: +6 -3
lines
Diff to previous 1.123 (colored)
Add a couple more file systems to mountcompatnames[] (even though they didn't exist in 4.3BSD or NetBSD 0.9) and always put the table into the kernel. It's going to be needed for VFS sysctls.
Revision 1.123 / (download) - annotate - [select for diffs], Tue Aug 4 04:03:20 1998 UTC (14 years, 9 months ago) by perry
Branch: MAIN
CVS Tags: chs-ubc-base,
chs-ubc
Changes since 1.122: +3 -3
lines
Diff to previous 1.122 (colored)
Abolition of bcopy, ovbcopy, bcmp, and bzero, phase one. bcopy(x, y, z) -> memcpy(y, x, z) ovbcopy(x, y, z) -> memmove(y, x, z) bcmp(x, y, z) -> memcmp(x, y, z) bzero(x, y) -> memset(x, 0, y)
Revision 1.122 / (download) - annotate - [select for diffs], Fri Jul 31 22:50:54 1998 UTC (14 years, 9 months ago) by perry
Branch: MAIN
Changes since 1.121: +4 -4
lines
Diff to previous 1.121 (colored)
fix sizeofs so they comply with the KNF style guide. yes, it is pedantic.
Revision 1.121 / (download) - annotate - [select for diffs], Sun Jul 5 08:49:43 1998 UTC (14 years, 10 months ago) by jonathan
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.120: +2 -1
lines
Diff to previous 1.120 (colored)
* defopt COMPAT_{09,10,11,12,13} and COMPAT_NOMID.
TODO: revisit interaction between native compat and emul compat usage.
Revision 1.120 / (download) - annotate - [select for diffs], Tue Jun 30 19:36:24 1998 UTC (14 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.119: +177 -1
lines
Diff to previous 1.119 (colored)
Implement pread(2), pwrite(2), preadv(2), and pwritev(2).
Revision 1.119 / (download) - annotate - [select for diffs], Wed Jun 24 20:58:46 1998 UTC (14 years, 11 months ago) by sommerfe
Branch: MAIN
Changes since 1.118: +2 -10
lines
Diff to previous 1.118 (colored)
Always include fifos; "not an option any more".
Revision 1.118 / (download) - annotate - [select for diffs], Mon Jun 22 22:01:04 1998 UTC (14 years, 11 months ago) by sommerfe
Branch: MAIN
Changes since 1.117: +2 -1
lines
Diff to previous 1.117 (colored)
defopt for options FIFO
Revision 1.117 / (download) - annotate - [select for diffs], Fri Jun 5 20:31:36 1998 UTC (14 years, 11 months ago) by kleink
Branch: MAIN
Changes since 1.116: +26 -0
lines
Diff to previous 1.116 (colored)
Per IEEE Std 1003.1b-1993, implement the fdatasync() system call which is identical to fsync() with the expecption of not being required to synchronize file status information.
Revision 1.116 / (download) - annotate - [select for diffs], Fri Jun 5 20:04:15 1998 UTC (14 years, 11 months ago) by kleink
Branch: MAIN
Changes since 1.115: +2 -2
lines
Diff to previous 1.115 (colored)
Convert fsync vnode operator implementations and usage from the old `waitfor' argument and MNT_WAIT/MNT_NOWAIT to `flags' and FSYNC_WAIT.
Revision 1.115 / (download) - annotate - [select for diffs], Fri Mar 27 13:02:21 1998 UTC (15 years, 2 months ago) by kleink
Branch: MAIN
Changes since 1.114: +2 -2
lines
Diff to previous 1.114 (colored)
Per X/Open CAE Spec Issue 5 Version 2, change the buffer size argument of readlink() from type `int' to type `size_t'. This isn't an ABI change, since the calling convention of our only LP64 platform (the Alpha) already promotes this argument to a `long'. This may not be the final action on this matter; readlink() still returns an `int', which may change in a future revision of the standard.
Revision 1.114 / (download) - annotate - [select for diffs], Tue Mar 10 11:49:33 1998 UTC (15 years, 2 months ago) by kleink
Branch: MAIN
Changes since 1.113: +6 -14
lines
Diff to previous 1.113 (colored)
Move the permission check in change_owner() back to ufs_vnops::ufs_chown() again - the facility required in this context would be a filesystem-specific super-user determination, which is not available yet. Also, add some clarification to a comment.
Revision 1.113 / (download) - annotate - [select for diffs], Sun Mar 1 02:22:36 1998 UTC (15 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.112: +127 -134
lines
Diff to previous 1.112 (colored)
Merge with Lite2 + local changes
Revision 1.112 / (download) - annotate - [select for diffs], Sat Feb 14 19:49:43 1998 UTC (15 years, 3 months ago) by kleink
Branch: MAIN
Changes since 1.111: +130 -18
lines
Diff to previous 1.111 (colored)
* Factor out some permission-checking code from ufs_setattr() into change_owner(). * Change the semantics of chown(), fchown() and lchown(): when requesting a change of the owner of a file, clear the set-user-id bit; analogous behaviour for group changes. * Since the above is a violation of the semantics specified by POSIX and X/Open, add corresponding compatibility syscalls: __posix_chown(), __posix_fchown(), __posix_lchown(). (Neither fchown() nor lchown() is specified by POSIX; the prefix is intended to reflect the semantics.) * Rename posix_rename() to __posix_rename() to follow the above convention.
Revision 1.111 / (download) - annotate - [select for diffs], Tue Feb 10 14:09:55 1998 UTC (15 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.110: +3 -1
lines
Diff to previous 1.110 (colored)
- add defopt's for UVM, UVMHIST and PMAP_NEW. - remove unnecessary UVMHIST_DECL's.
Revision 1.110 / (download) - annotate - [select for diffs], Thu Feb 5 08:00:05 1998 UTC (15 years, 3 months ago) by mrg
Branch: MAIN
Changes since 1.109: +19 -1
lines
Diff to previous 1.109 (colored)
initial import of the new virtual memory system, UVM, into -current. UVM was written by chuck cranor <chuck@maria.wustl.edu>, with some minor portions derived from the old Mach code. i provided some help getting swap and paging working, and other bug fixes/ideas. chuck silvers <chuq@chuq.com> also provided some other fixes. this is the rest of the MI portion changes. this will be KNF'd shortly. :-)
Revision 1.109 / (download) - annotate - [select for diffs], Tue Feb 3 09:11:55 1998 UTC (15 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.108: +8 -11
lines
Diff to previous 1.108 (colored)
sys_mount(): Use vfs_getopsbyname() rather than groveling the vfssw[] manualls.
Revision 1.108 / (download) - annotate - [select for diffs], Sun Dec 21 18:50:57 1997 UTC (15 years, 5 months ago) by kleink
Branch: MAIN
Changes since 1.107: +2 -2
lines
Diff to previous 1.107 (colored)
Update to last commit: do not pass the accounting flag to suser(), since the call does not actually *use* super-user privileges. Pointed out by Charles.
Revision 1.107 / (download) - annotate - [select for diffs], Sun Dec 21 17:49:18 1997 UTC (15 years, 5 months ago) by kleink
Branch: MAIN
Changes since 1.106: +7 -3
lines
Diff to previous 1.106 (colored)
Due to the feedback received, change chown(), fchown() and lchown() not to clear the setgid and setuid bits if called by the superuser. Addresses PR kern/4662.
Revision 1.106 / (download) - annotate - [select for diffs], Thu Oct 30 22:47:08 1997 UTC (15 years, 6 months ago) by enami
Branch: MAIN
Changes since 1.105: +5 -4
lines
Diff to previous 1.105 (colored)
Conditionalize the recognition of symbolic link permission by per fs mount option `symperm'.
Revision 1.105 / (download) - annotate - [select for diffs], Mon Oct 20 22:05:09 1997 UTC (15 years, 7 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.104: +5 -5
lines
Diff to previous 1.104 (colored)
Fix the shared library versioning snafu caused by the recent changes to the stat(2) family and msync(2). This uses a primitive function versioning scheme. This reverts the libc shared library major version from 13 to 12, and adds a few new interfaces to bring us to libc version 12.20. From Frank van der Linden <fvdl@NetBSD.ORG>.
Revision 1.104 / (download) - annotate - [select for diffs], Sun Oct 19 17:18:10 1997 UTC (15 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.103: +4 -2
lines
Diff to previous 1.103 (colored)
After conversion of the file flags, if neither FREAD nor FWRITE is set, return EINVAL.
Revision 1.103 / (download) - annotate - [select for diffs], Sun Oct 19 03:29:20 1997 UTC (15 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.102: +2 -2
lines
Diff to previous 1.102 (colored)
Update comment.
Revision 1.102 / (download) - annotate - [select for diffs], Sat Oct 11 00:05:15 1997 UTC (15 years, 7 months ago) by enami
Branch: MAIN
CVS Tags: marc-pcmcia-base
Changes since 1.101: +2 -2
lines
Diff to previous 1.101 (colored)
Check read permission of symbolic link in vfs layer, when doing readlink(2). Suggested by der Mouse. Ok'ed by Jason R. Thorpe.
Revision 1.101 / (download) - annotate - [select for diffs], Fri Oct 10 02:09:30 1997 UTC (15 years, 7 months ago) by fvdl
Branch: MAIN
Changes since 1.100: +16 -97
lines
Diff to previous 1.100 (colored)
Add vn_readdir function for use in both the old getdirentries and the new getdents(). Add getdents().
Revision 1.100 / (download) - annotate - [select for diffs], Thu Oct 9 00:39:19 1997 UTC (15 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.99: +12 -10
lines
Diff to previous 1.99 (colored)
In sys_mount(), use vfs_getopsbyname() rather than using an explicit reference to vfssw[].
Revision 1.99 / (download) - annotate - [select for diffs], Mon Oct 6 09:19:11 1997 UTC (15 years, 7 months ago) by thorpej
Branch: MAIN
Changes since 1.98: +34 -3
lines
Diff to previous 1.98 (colored)
If COMPAT_09 or COMPAT_43 are defined, include a table of "mount compatnames", which maps the old file system index numbers to the new (well, since after NetBSD 0.9) string-based method of finding a file system ops vector. Use this table rather than assuming the ordering of the vfssw[] array when emulating the old mount system call.
Revision 1.98 / (download) - annotate - [select for diffs], Fri Oct 3 14:44:26 1997 UTC (15 years, 7 months ago) by enami
Branch: MAIN
Changes since 1.97: +88 -4
lines
Diff to previous 1.97 (colored)
New function sys_lchmod(), sys_lchown() and sys_lutimes() to manipulate symbolic links.
Revision 1.97 / (download) - annotate - [select for diffs], Fri Oct 3 14:14:36 1997 UTC (15 years, 7 months ago) by enami
Branch: MAIN
Changes since 1.96: +49 -52
lines
Diff to previous 1.96 (colored)
- New function change_mode() to set mode given a vnode. - New function change_utimes() to set access and modification times given a vnode. - In the function sys_chmod() and sys_fchmod(), call change_mode(). - In the function sys_utimes() and sys_futimes(), call change_utimes().
Revision 1.96 / (download) - annotate - [select for diffs], Fri Oct 3 13:46:02 1997 UTC (15 years, 7 months ago) by enami
Branch: MAIN
Changes since 1.95: +8 -8
lines
Diff to previous 1.95 (colored)
Reorder some piece of code; In the function sys_utimes, do NDINIT() and namei() first. In the function sys_futimes, do getvnode() first.
Revision 1.95 / (download) - annotate - [select for diffs], Fri Oct 3 13:37:33 1997 UTC (15 years, 7 months ago) by enami
Branch: MAIN
Changes since 1.94: +5 -3
lines
Diff to previous 1.94 (colored)
In the function sys_chmod and sys_utimes, use VOP_UNLOCK(vp) and vrele(vp) instead of vput(vp).
Revision 1.94 / (download) - annotate - [select for diffs], Fri Oct 3 13:32:06 1997 UTC (15 years, 7 months ago) by enami
Branch: MAIN
Changes since 1.93: +3 -2
lines
Diff to previous 1.93 (colored)
Fold lone line to fit column < 80.
Revision 1.93 / (download) - annotate - [select for diffs], Fri Oct 3 13:29:20 1997 UTC (15 years, 7 months ago) by enami
Branch: MAIN
Changes since 1.92: +8 -8
lines
Diff to previous 1.92 (colored)
Cosmetic change; (error = ...) -> (error = ...) != 0, like other place.
Revision 1.92 / (download) - annotate - [select for diffs], Mon Aug 25 19:32:10 1997 UTC (15 years, 9 months ago) by kleink
Branch: MAIN
CVS Tags: thorpej-signal-base,
thorpej-signal
Changes since 1.91: +4 -4
lines
Diff to previous 1.91 (colored)
Lseek(2) usage cleanup: the use of L_SET/L_INCR/L_XTND is deprecated, use SEEK_SET/SEEK_CUR/SEEK_END instead.
Revision 1.91 / (download) - annotate - [select for diffs], Tue Jun 24 23:44:57 1997 UTC (15 years, 11 months ago) by fvdl
Branch: MAIN
CVS Tags: marc-pcmcia-bp,
bouyer-scsipi
Branch point for: marc-pcmcia
Changes since 1.90: +4 -1
lines
Diff to previous 1.90 (colored)
Invalidate publicly exported FS info when unmounting it locally.
Revision 1.90 / (download) - annotate - [select for diffs], Sun May 18 19:56:50 1997 UTC (16 years ago) by kleink
Branch: MAIN
Changes since 1.89: +57 -12
lines
Diff to previous 1.89 (colored)
Add posix_rename() syscall.
Revision 1.89 / (download) - annotate - [select for diffs], Thu May 8 16:20:12 1997 UTC (16 years ago) by mycroft
Branch: MAIN
Changes since 1.88: +5 -10
lines
Diff to previous 1.88 (colored)
Pass the vnode type to vaccess(), and use it when checking VEXEC. Make sure that the mode bits passed to vaccess() and returned by foo_getattr() contain only permission bits.
Revision 1.88 / (download) - annotate - [select for diffs], Thu May 8 10:57:35 1997 UTC (16 years ago) by mycroft
Branch: MAIN
Changes since 1.87: +10 -5
lines
Diff to previous 1.87 (colored)
VEXEC -> VLOOKUP, as appropriate.
Revision 1.87 / (download) - annotate - [select for diffs], Thu May 8 10:19:16 1997 UTC (16 years ago) by mycroft
Branch: MAIN
Changes since 1.86: +4 -4
lines
Diff to previous 1.86 (colored)
va_mode contains stat bits. Use S_IS[UG]ID rather than VS[UG]ID.
Revision 1.86 / (download) - annotate - [select for diffs], Wed Apr 30 19:29:43 1997 UTC (16 years ago) by kleink
Branch: MAIN
Changes since 1.85: +41 -24
lines
Diff to previous 1.85 (colored)
* Make chown()/fchown() use a piece of common code to set ownership.
* Setting the ownership of a file now implies clearing its set-{group,user}-id
bits.
Revision 1.85 / (download) - annotate - [select for diffs], Fri Apr 11 22:08:28 1997 UTC (16 years, 1 month ago) by kleink
Branch: MAIN
Changes since 1.84: +2 -3
lines
Diff to previous 1.84 (colored)
Addendum to last commit: "simplify" usage of a vnode pointer.
Revision 1.84 / (download) - annotate - [select for diffs], Fri Apr 11 22:03:58 1997 UTC (16 years, 1 month ago) by kleink
Branch: MAIN
Changes since 1.83: +13 -5
lines
Diff to previous 1.83 (colored)
Use VOP_SEEK() in lseek(2).
Revision 1.83 / (download) - annotate - [select for diffs], Wed Apr 9 23:26:06 1997 UTC (16 years, 1 month ago) by kleink
Branch: MAIN
Changes since 1.82: +5 -9
lines
Diff to previous 1.82 (colored)
Back out POSIX.1 conformance change to lseek(2); this will be attended to in a different way.
Revision 1.82 / (download) - annotate - [select for diffs], Mon Apr 7 00:04:16 1997 UTC (16 years, 1 month ago) by kleink
Branch: MAIN
Changes since 1.81: +11 -8
lines
Diff to previous 1.81 (colored)
Back out last change to rename(2) until a sane solution for the coexistence of both BSD and POSIX semantics is available.
Revision 1.81 / (download) - annotate - [select for diffs], Fri Apr 4 13:57:06 1997 UTC (16 years, 1 month ago) by kleink
Branch: MAIN
Changes since 1.80: +9 -5
lines
Diff to previous 1.80 (colored)
Changed lseek(2): return EINVAL upon attempt to seek to negative offset.
Revision 1.80 / (download) - annotate - [select for diffs], Fri Apr 4 13:32:48 1997 UTC (16 years, 1 month ago) by kleink
Branch: MAIN
Changes since 1.79: +9 -14
lines
Diff to previous 1.79 (colored)
Converted rename(2) to proper POSIX.1 behavior: if "from" and "to" are links to the same file, do nothing. This also eliminates the previous (and incorrect) check, which was far more complicated.
Revision 1.79 / (download) - annotate - [select for diffs], Thu Mar 13 20:20:39 1997 UTC (16 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.78: +4 -3
lines
Diff to previous 1.78 (colored)
Add missing part of MNT_NOATIME commit: add it to the flags that can be set by the mount system call.
Revision 1.78 / (download) - annotate - [select for diffs], Sat Feb 22 03:22:35 1997 UTC (16 years, 3 months ago) by fvdl
Branch: MAIN
CVS Tags: is-newarp-before-merge
Changes since 1.77: +10 -5
lines
Diff to previous 1.77 (colored)
Implement changes to make fix for NQNFS and MFS unmounting (race conditions) work. Not quite as good as with the Lite2 merges, but it'll do until then. * dounmount() expects to be called with the mountpoint marked busy * all callers of dounmount() thus make the call themselves * if a filesystem was being unmounted, and we're woken up in vfs_busy(), don't reference the mountpoint struct pointer, as it has very probably been freed.
Revision 1.77 / (download) - annotate - [select for diffs], Thu Feb 20 04:52:44 1997 UTC (16 years, 3 months ago) by mikel
Branch: MAIN
Changes since 1.76: +6 -6
lines
Diff to previous 1.76 (colored)
sync filesystems in reverse order. suggested originally by Jim Rees <rees@citi.umich.edu>, with some updating by Greg Hudson <ghudson@mit.edu>.
Revision 1.76 / (download) - annotate - [select for diffs], Thu Feb 13 02:54:06 1997 UTC (16 years, 3 months ago) by tls
Branch: MAIN
Changes since 1.75: +2 -1
lines
Diff to previous 1.75 (colored)
sync needs to clean VM objects backed by vnode pagers
Revision 1.75 / (download) - annotate - [select for diffs], Mon Feb 10 12:41:19 1997 UTC (16 years, 3 months ago) by fvdl
Branch: MAIN
CVS Tags: mrg-vm-swap
Changes since 1.74: +4 -2
lines
Diff to previous 1.74 (colored)
If the target for a rename() call exists, it will be removed. So, don't leave any pages around (i,e, insert a vnode_pager_uncache()).
Revision 1.74 / (download) - annotate - [select for diffs], Sun Dec 22 10:21:13 1996 UTC (16 years, 5 months ago) by cgd
Branch: MAIN
CVS Tags: thorpej-setroot,
is-newarp-base
Branch point for: is-newarp
Changes since 1.73: +49 -52
lines
Diff to previous 1.73 (colored)
* catch up with system call argument type fixups/const poisoning. * Fix arguments to various copyin()/copyout() invocations, to avoid gratuitous casts. * Some KNF formatting fixes
Revision 1.73 / (download) - annotate - [select for diffs], Wed Oct 23 23:07:08 1996 UTC (16 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.72: +4 -3
lines
Diff to previous 1.72 (colored)
permit MNT_NOCOREDUMP as a generic mount flag.
Revision 1.72 / (download) - annotate - [select for diffs], Mon Oct 21 17:42:48 1996 UTC (16 years, 7 months ago) by jtc
Branch: MAIN
Changes since 1.71: +6 -2
lines
Diff to previous 1.71 (colored)
Return ESPIPE when filedes is associated with a FIFO.
Revision 1.71 / (download) - annotate - [select for diffs], Tue Apr 23 10:29:02 1996 UTC (17 years, 1 month ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-2-base,
netbsd-1-2-RELEASE,
netbsd-1-2-BETA
Branch point for: netbsd-1-2
Changes since 1.70: +54 -6
lines
Diff to previous 1.70 (colored)
Implement futimes().
Revision 1.70 / (download) - annotate - [select for diffs], Fri Mar 22 06:51:04 1996 UTC (17 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.69: +4 -4
lines
Diff to previous 1.69 (colored)
Move an #ifdef FIFO so this compiles on a SPARC (-Wall) if FIFO is not defined.
Revision 1.69 / (download) - annotate - [select for diffs], Mon Mar 18 23:06:08 1996 UTC (17 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.68: +3 -3
lines
Diff to previous 1.68 (colored)
Remove previously introduced bug: always make sure mappings of a removed file don't stick around.
Revision 1.68 / (download) - annotate - [select for diffs], Fri Feb 9 19:01:05 1996 UTC (17 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.67: +1 -3
lines
Diff to previous 1.67 (colored)
More proto fixes
Revision 1.67 / (download) - annotate - [select for diffs], Fri Feb 9 15:39:12 1996 UTC (17 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.66: +6 -5
lines
Diff to previous 1.66 (colored)
Rearrange the locking in sys_unlink(), more like nfsrv_remove().
Revision 1.66 / (download) - annotate - [select for diffs], Fri Feb 9 14:45:36 1996 UTC (17 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.65: +29 -41
lines
Diff to previous 1.65 (colored)
Fix vop_link, vop_symlink, and vop_remove semantics in several ways: * Change the argument names to vop_link so they actually make sense. * Implement vop_link and vop_symlink for all file systems, so they do proper cleanup. * Require the file system to decide whether or not linking and unlinking of directories is allowed, and disable it for all current file systems.
Revision 1.65 / (download) - annotate - [select for diffs], Thu Feb 8 02:54:20 1996 UTC (17 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.64: +5 -12
lines
Diff to previous 1.64 (colored)
No need for LOCKPARENT in sys_lstat(), and eliminate dead variables.
Revision 1.64 / (download) - annotate - [select for diffs], Wed Feb 7 16:55:56 1996 UTC (17 years, 3 months ago) by jtc
Branch: MAIN
Changes since 1.63: +8 -30
lines
Diff to previous 1.63 (colored)
Revert to sane symlink semantics. This something we should have done long ago. Fixes many PRs.
Revision 1.63 / (download) - annotate - [select for diffs], Sun Feb 4 02:18:37 1996 UTC (17 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.62: +116 -63
lines
Diff to previous 1.62 (colored)
First pass at prototyping
Revision 1.62 / (download) - annotate - [select for diffs], Fri Feb 2 07:49:52 1996 UTC (17 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.61: +20 -16
lines
Diff to previous 1.61 (colored)
Do the previous change a little differently.
Revision 1.61 / (download) - annotate - [select for diffs], Thu Feb 1 00:26:46 1996 UTC (17 years, 3 months ago) by jtc
Branch: MAIN
Changes since 1.60: +5 -5
lines
Diff to previous 1.60 (colored)
Rename struct timespec fields to conform to POSIX.1b
Revision 1.60 / (download) - annotate - [select for diffs], Tue Jan 30 20:05:38 1996 UTC (17 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.59: +22 -21
lines
Diff to previous 1.59 (colored)
Add a vnode** argument to getvnode(), prototype it, and make it return EBADF if the file descriptor has been revoked.
Revision 1.59 / (download) - annotate - [select for diffs], Sat Nov 11 22:00:18 1995 UTC (17 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.58: +4 -5
lines
Diff to previous 1.58 (colored)
ffs -> ufs
Revision 1.58 / (download) - annotate - [select for diffs], Tue Nov 7 22:41:02 1995 UTC (17 years, 6 months ago) by gwr
Branch: MAIN
Changes since 1.57: +7 -1
lines
Diff to previous 1.57 (colored)
Make sys_mount accept "ufs" as an alias for "ffs"
Revision 1.57 / (download) - annotate - [select for diffs], Sat Oct 7 06:28:51 1995 UTC (17 years, 7 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base
Branch point for: netbsd-1-1
Changes since 1.56: +79 -79
lines
Diff to previous 1.56 (colored)
Prefix names of system call implementation functions with `sys_'.
Revision 1.56 / (download) - annotate - [select for diffs], Tue Sep 19 21:45:24 1995 UTC (17 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.55: +192 -154
lines
Diff to previous 1.55 (colored)
Make system calls conform to a standard prototype and bring those prototypes into scope.
Revision 1.55 / (download) - annotate - [select for diffs], Sat Jun 24 20:34:31 1995 UTC (17 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.54: +1 -385
lines
Diff to previous 1.54 (colored)
Extracted all of the compat_xxx routines, and created a library [libcompat] for them. There are a few #ifdef COMPAT_XX remaining, but they are not easy or worth eliminating (yet).
Revision 1.54 / (download) - annotate - [select for diffs], Sun Jun 18 14:47:09 1995 UTC (17 years, 11 months ago) by cgd
Branch: MAIN
Changes since 1.53: +16 -14
lines
Diff to previous 1.53 (colored)
don't assume the f_fsnamelen is nul-truncated or longer than MFSNAMELEN
Revision 1.53 / (download) - annotate - [select for diffs], Thu Jun 1 22:44:13 1995 UTC (17 years, 11 months ago) by jtc
Branch: MAIN
Changes since 1.52: +4 -4
lines
Diff to previous 1.52 (colored)
Moved egid credential from cr_groups[0] to new field cr_gid. POSIX.1 requires that sgid executables and the setuid() syscall *not* change the supplemental group list.
Revision 1.52 / (download) - annotate - [select for diffs], Wed May 10 16:53:08 1995 UTC (18 years ago) by christos
Branch: MAIN
Changes since 1.51: +6 -5
lines
Diff to previous 1.51 (colored)
tty_tb.c: need to include ioctl_compat.h in order to compile. sysv_shm.c: make shm_find_segment_by_shmid global so it can be used by COMPAT_HPUX. There should be a better way... rest: Add #ifdef COMPAT_HPUX where needed
Revision 1.51 / (download) - annotate - [select for diffs], Thu Mar 9 12:05:45 1995 UTC (18 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.50: +2 -2
lines
Diff to previous 1.50 (colored)
copy*str() should use size_t.
Revision 1.50 / (download) - annotate - [select for diffs], Wed Mar 8 01:21:32 1995 UTC (18 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.49: +2 -2
lines
Diff to previous 1.49 (colored)
use NULL rather than casted zero
Revision 1.49 / (download) - annotate - [select for diffs], Sun Mar 5 20:48:18 1995 UTC (18 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.48: +4 -3
lines
Diff to previous 1.48 (colored)
Two more "|| defined(COMPAT_LINUX)" that I somehow missed first time around.
Revision 1.48 / (download) - annotate - [select for diffs], Sun Mar 5 08:52:24 1995 UTC (18 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.47: +6 -5
lines
Diff to previous 1.47 (colored)
Extended a couple of defines with "|| defined(COMPAT_LINUX)" to make things compile without requiring COMPAT_43 and/or COMPAT_09.
Revision 1.47 / (download) - annotate - [select for diffs], Wed Jan 18 06:14:45 1995 UTC (18 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.46: +21 -10
lines
Diff to previous 1.46 (colored)
Turn mountlist into a CIRCLEQ, and handle setting and checking of MNT_ROOTFS differently.
Revision 1.46 / (download) - annotate - [select for diffs], Thu Dec 15 19:46:08 1994 UTC (18 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.45: +2 -1
lines
Diff to previous 1.45 (colored)
Call foo_statfs() from a common place when mounting.
Revision 1.45 / (download) - annotate - [select for diffs], Wed Dec 14 19:36:15 1994 UTC (18 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.44: +9 -21
lines
Diff to previous 1.44 (colored)
Revert open() completely.
Revision 1.44 / (download) - annotate - [select for diffs], Wed Dec 14 19:08:07 1994 UTC (18 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.43: +20 -25
lines
Diff to previous 1.43 (colored)
Revert dup handling. Remove extra arg to vn_open().
Revision 1.43 / (download) - annotate - [select for diffs], Wed Dec 14 16:30:40 1994 UTC (18 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.42: +331 -118
lines
Diff to previous 1.42 (colored)
Sync with CSRG.
Revision 1.42 / (download) - annotate - [select for diffs], Tue Dec 13 21:52:42 1994 UTC (18 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.41: +23 -23
lines
Diff to previous 1.41 (colored)
LEASE_CHECK -> VOP_LEASE
Revision 1.41 / (download) - annotate - [select for diffs], Tue Dec 13 09:49:13 1994 UTC (18 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.40: +7 -5
lines
Diff to previous 1.40 (colored)
Minor changes.
Revision 1.40 / (download) - annotate - [select for diffs], Sun Dec 4 03:09:54 1994 UTC (18 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.39: +9 -7
lines
Diff to previous 1.39 (colored)
Abstract out the code to maintain fd_lastfile. Remove the old dup() compatibility kluge. Rearrange fdopen() handling. Make a common function to handle closing a particular file descriptor in a process. Some other cleanup.
Revision 1.39 / (download) - annotate - [select for diffs], Fri Nov 18 02:48:58 1994 UTC (18 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.38: +1 -2
lines
Diff to previous 1.38 (colored)
Don't VOP_UNLOCK the vnode on a cloning operation. vput() will do it for us.
Revision 1.38 / (download) - annotate - [select for diffs], Thu Nov 17 20:27:17 1994 UTC (18 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.37: +2 -2
lines
Diff to previous 1.37 (colored)
Added ifdef COMPAT_SVR4 to the kernel compat code needed.
Revision 1.37 / (download) - annotate - [select for diffs], Mon Nov 14 06:01:22 1994 UTC (18 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.36: +18 -2
lines
Diff to previous 1.36 (colored)
added extra argument in vn_open and VOP_OPEN to allow cloning devices
Revision 1.36 / (download) - annotate - [select for diffs], Sun Oct 30 21:48:14 1994 UTC (18 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.35: +3 -3
lines
Diff to previous 1.35 (colored)
be more careful with types, also pull in headers where necessary.
Revision 1.35 / (download) - annotate - [select for diffs], Thu Oct 20 04:23:24 1994 UTC (18 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.34: +397 -417
lines
Diff to previous 1.34 (colored)
update for new syscall args description mechanism
Revision 1.34 / (download) - annotate - [select for diffs], Thu Sep 22 02:17:02 1994 UTC (18 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.33: +5 -1
lines
Diff to previous 1.33 (colored)
Maintain vfs reference counts.
Revision 1.33 / (download) - annotate - [select for diffs], Mon Aug 15 22:06:47 1994 UTC (18 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.32: +3 -3
lines
Diff to previous 1.32 (colored)
Need ostat() and olstat() for iBCS2 syscall conversion.
Revision 1.32 / (download) - annotate - [select for diffs], Sat Aug 13 07:05:53 1994 UTC (18 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.31: +2 -1
lines
Diff to previous 1.31 (colored)
Fix a problem in sync() where we might keep a stale pointer to the next mount entry.
Revision 1.31 / (download) - annotate - [select for diffs], Wed Jun 29 06:34:02 1994 UTC (18 years, 11 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Changes since 1.30: +2174 -1
lines
Diff to previous 1.30 (colored)
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
Revision 1.30 / (download) - annotate - [select for diffs], Wed Jun 22 03:01:16 1994 UTC (18 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.29: +1 -1
lines
Diff to previous 1.29 (colored)
Make ogetdirentries() if COMPAT_HPUX.
Revision 1.29 / (download) - annotate - [select for diffs], Thu Jun 16 14:14:57 1994 UTC (18 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.28: +1 -1
lines
Diff to previous 1.28 (colored)
Update to union mount code from JSP.
Revision 1.28 / (download) - annotate - [select for diffs], Wed Jun 8 11:28:58 1994 UTC (18 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.27: +1 -1
lines
Diff to previous 1.27 (colored)
Update to 4.4-Lite fs code.
Revision 1.27 / (download) - annotate - [select for diffs], Wed May 18 00:35:07 1994 UTC (19 years ago) by cgd
Branch: MAIN
Changes since 1.26: +1 -1
lines
Diff to previous 1.26 (colored)
put sync printing in one place
Revision 1.26 / (download) - annotate - [select for diffs], Sat May 7 00:59:59 1994 UTC (19 years ago) by cgd
Branch: MAIN
Changes since 1.25: +1 -1
lines
Diff to previous 1.25 (colored)
stub pathconf, kill some spaces
Revision 1.25 / (download) - annotate - [select for diffs], Wed May 4 01:38:47 1994 UTC (19 years ago) by cgd
Branch: MAIN
Changes since 1.24: +1 -1
lines
Diff to previous 1.24 (colored)
expand the rlimit struct, kill last vestiges of off_t bogosity.
Revision 1.24 / (download) - annotate - [select for diffs], Fri Apr 29 04:41:36 1994 UTC (19 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.23: +1 -1
lines
Diff to previous 1.23 (colored)
kill syscall name aliases. no user-visible changes
Revision 1.23 / (download) - annotate - [select for diffs], Mon Apr 25 03:49:46 1994 UTC (19 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.22: +1 -1
lines
Diff to previous 1.22 (colored)
some prototype cleanup, eliminate/replace bogus types (e.g. quad and u_quad) -> use better types (e.g. quad_t & u_quad_t in inodes), some cleanup.
Revision 1.22 / (download) - annotate - [select for diffs], Thu Apr 21 07:48:34 1994 UTC (19 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.21: +1 -1
lines
Diff to previous 1.21 (colored)
Convert mount, vnode, and buf structs to use <sys/queue.h>. Also, some knf and structure frobbing to do along with it.
Revision 1.21 / (download) - annotate - [select for diffs], Sat Apr 16 23:23:43 1994 UTC (19 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.20: +1 -1
lines
Diff to previous 1.20 (colored)
start to phase out temp. off_t syscalls
Revision 1.20 / (download) - annotate - [select for diffs], Sat Apr 16 06:51:58 1994 UTC (19 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.19: +1 -1
lines
Diff to previous 1.19 (colored)
slightly loosen lseek restriction
Revision 1.19 / (download) - annotate - [select for diffs], Thu Apr 14 04:05:32 1994 UTC (19 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.18: +1 -1
lines
Diff to previous 1.18 (colored)
fs types are names now; accompanying changes.
Revision 1.18 / (download) - annotate - [select for diffs], Thu Apr 7 07:20:31 1994 UTC (19 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.17: +1 -1
lines
Diff to previous 1.17 (colored)
if MNT_USER is set, let fs authenticate unmount
Revision 1.17 / (download) - annotate - [select for diffs], Sat Apr 2 08:39:27 1994 UTC (19 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.16: +1 -1
lines
Diff to previous 1.16 (colored)
frob arguments a little bit
Revision 1.16 / (download) - annotate - [select for diffs], Sun Mar 27 09:08:40 1994 UTC (19 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.15: +1 -1
lines
Diff to previous 1.15 (colored)
expand uid_t/gid_t/off_t
Revision 1.15 / (download) - annotate - [select for diffs], Tue Feb 1 01:04:07 1994 UTC (19 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.14: +1 -1
lines
Diff to previous 1.14 (colored)
Fix that last bug correctly.
Revision 1.14 / (download) - annotate - [select for diffs], Tue Feb 1 00:29:14 1994 UTC (19 years, 3 months ago) by pk
Branch: MAIN
Changes since 1.13: +1 -1
lines
Diff to previous 1.13 (colored)
Replace a bogus pointer-dereference with something that at least *looks* more sensible.
Revision 1.13 / (download) - annotate - [select for diffs], Thu Jan 13 23:51:43 1994 UTC (19 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.12: +1 -1
lines
Diff to previous 1.12 (colored)
fix utimes() to deal with NULL timeval ptr
Revision 1.12 / (download) - annotate - [select for diffs], Tue Jan 4 14:10:52 1994 UTC (19 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.11: +1 -1
lines
Diff to previous 1.11 (colored)
add support for union and loopback mounts, from jsp
Revision 1.11 / (download) - annotate - [select for diffs], Tue Jan 4 12:26:28 1994 UTC (19 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.10: +1 -1
lines
Diff to previous 1.10 (colored)
generalize dupfdopen() to allow dups and moves. from jsp
Revision 1.10 / (download) - annotate - [select for diffs], Sat Dec 18 04:22:51 1993 UTC (19 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.9: +1 -1
lines
Diff to previous 1.9 (colored)
Canonicalize all #includes.
Revision 1.9 / (download) - annotate - [select for diffs], Wed Oct 27 02:33:40 1993 UTC (19 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.8: +1 -1
lines
Diff to previous 1.8 (colored)
BSDI official patch #15:
SUMMARY:
"panic: vrele: null vp", the problem seems to be that two renames are
moving the same source, and the second one can't do it.
ALSO:
in sync, check that rootfs is non-null before using it.
Revision 1.8 / (download) - annotate - [select for diffs], Tue Sep 7 15:41:12 1993 UTC (19 years, 8 months ago) by ws
Branch: MAIN
CVS Tags: magnum-base
Branch point for: magnum
Changes since 1.7: +1 -1
lines
Diff to previous 1.7 (colored)
Changes to VFS readdir semantics NFS changes for better cookie support ISOFS changes for better Rockridge support and support for generation numbers
Revision 1.7 / (download) - annotate - [select for diffs], Tue Aug 3 00:11:29 1993 UTC (19 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.6: +1 -1
lines
Diff to previous 1.6 (colored)
Cosmetic change to VOP_ADVLOCK() fix.
Revision 1.6 / (download) - annotate - [select for diffs], Mon Aug 2 23:37:56 1993 UTC (19 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +1 -1
lines
Diff to previous 1.5 (colored)
Collapse a bunch of `if (a & x) b |= x; else b &= ~x;' statements. Whoever wrote this fugly code must've been on drugs.
Revision 1.5 / (download) - annotate - [select for diffs], Sun Aug 1 19:26:07 1993 UTC (19 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.4: +1 -1
lines
Diff to previous 1.4 (colored)
Add RCS identifiers (this time on the correct side of the branch), and incorporate recent changes in netbsd-0-9 branch.
Revision 1.4 / (download) - annotate - [select for diffs], Sun Jul 18 06:28:01 1993 UTC (19 years, 10 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-0-9-base,
netbsd-0-9-ALPHA
Branch point for: netbsd-0-9
Changes since 1.3: +1 -1
lines
Diff to previous 1.3 (colored)
Nuke a kluge from Net/2. The argument list ocreat() creates for open() can now be a struct open_args; no need to redefine the structure.
Revision 1.3 / (download) - annotate - [select for diffs], Thu Jul 15 22:56:23 1993 UTC (19 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.2: +1 -1
lines
Diff to previous 1.2 (colored)
gcc2 cleanup, and break args out of procedure def'ns
Revision 1.2 / (download) - annotate - [select for diffs], Thu May 20 02:55:42 1993 UTC (20 years ago) by cgd
Branch: MAIN
Changes since 1.1: +1 -1
lines
Diff to previous 1.1 (colored)
add $Id$ strings, and clean up file headers where necessary
Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (20 years, 2 months ago) by cgd
Branch: MAIN
Initial revision