The NetBSD Project

CVS log for src/sys/kern/kern_prot.c

[BACK] Up to [cvs.netbsd.org] / src / sys / kern

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.113.4.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:25 2012 UTC (5 weeks, 4 days ago) by yamt
Branch: yamt-pagecache
Changes since 1.113: +3 -3 lines
Diff to previous 1.113 (colored) next main 1.114 (colored)

sync with head

Revision 1.113.8.1 / (download) - annotate - [select for diffs], Thu Apr 5 21:33:39 2012 UTC (7 weeks, 1 day ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.113: +3 -3 lines
Diff to previous 1.113 (colored) next main 1.114 (colored)

sync to latest -current.

Revision 1.114 / (download) - annotate - [select for diffs], Mon Mar 19 06:04:19 2012 UTC (2 months, 1 week ago) by matt
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, HEAD
Changes since 1.113: +3 -3 lines
Diff to previous 1.113 (colored)

No need take the address of an array (&array) since an array is already a
pointer.

Revision 1.111.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:31 2011 UTC (11 months, 2 weeks ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.111: +3 -3 lines
Diff to previous 1.111 (colored) next main 1.112 (colored)

Sync with HEAD.

Revision 1.109.4.3 / (download) - annotate - [select for diffs], Tue May 31 03:05:01 2011 UTC (11 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.109.4.2: +1 -1 lines
Diff to previous 1.109.4.2 (colored) to branchpoint 1.109 (colored) next main 1.110 (colored)

sync with head

Revision 1.113 / (download) - annotate - [select for diffs], Wed Apr 27 06:22:11 2011 UTC (12 months, 4 weeks ago) by martin
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, rmind-uvmplock-nbase, rmind-uvmplock-base, netbsd-6-base, netbsd-6, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache, jmcneill-usbmp
Changes since 1.112: +3 -5 lines
Diff to previous 1.112 (colored)

Simplify previous: the original code was mostly correct but relied on
"register_t" being signed.

Revision 1.112 / (download) - annotate - [select for diffs], Tue Apr 26 19:58:12 2011 UTC (13 months ago) by martin
Branch: MAIN
Changes since 1.111: +4 -2 lines
Diff to previous 1.111 (colored)

Stupidly (but standards commpliant) the gidsetsize argument of the
getgroups() syscall is "int" - i.e. signed.
Explicitly check for negative values and make them fail.

Revision 1.109.4.2 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:15 2011 UTC (14 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.109.4.1: +2 -3 lines
Diff to previous 1.109.4.1 (colored) to branchpoint 1.109 (colored)

sync with head

Revision 1.109.2.2 / (download) - annotate - [select for diffs], Fri Oct 22 07:22:27 2010 UTC (19 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.109.2.1: +0 -1 lines
Diff to previous 1.109.2.1 (colored) to branchpoint 1.109 (colored) next main 1.110 (colored)

Sync with HEAD (-D20101022).

Revision 1.106.2.3 / (download) - annotate - [select for diffs], Sat Oct 9 03:32:31 2010 UTC (19 months, 2 weeks ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.106.2.2: +2 -3 lines
Diff to previous 1.106.2.2 (colored) to branchpoint 1.106 (colored) next main 1.107 (colored)

sync with head

Revision 1.111 / (download) - annotate - [select for diffs], Mon Aug 30 10:30:01 2010 UTC (20 months, 3 weeks ago) by pooka
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, uebayasi-xip-base4, uebayasi-xip-base3, matt-mips64-premerge-20101231, jruoho-x86intr-base, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: jruoho-x86intr
Changes since 1.110: +2 -3 lines
Diff to previous 1.110 (colored)

remove trailing empty line.  no useful change.

Revision 1.109.2.1 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:28 2010 UTC (21 months, 1 week ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.109: +4 -4 lines
Diff to previous 1.109 (colored)

Sync with HEAD.

Revision 1.106.2.2 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:40 2010 UTC (21 months, 2 weeks ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.106.2.1: +4 -4 lines
Diff to previous 1.106.2.1 (colored) to branchpoint 1.106 (colored)

sync with head.

Revision 1.109.4.1 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:53 2010 UTC (22 months, 3 weeks ago) by rmind
Branch: rmind-uvmplock
Changes since 1.109: +4 -4 lines
Diff to previous 1.109 (colored)

sync with head

Revision 1.110 / (download) - annotate - [select for diffs], Thu Jul 1 02:38:30 2010 UTC (22 months, 3 weeks ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base10, uebayasi-xip-base2
Changes since 1.109: +4 -4 lines
Diff to previous 1.109 (colored)

Remove pfind() and pgfind(), fix locking in various broken uses of these.
Rename real routines to proc_find() and pgrp_find(), remove PFIND_* flags
and have consistent behaviour.  Provide proc_find_raw() for special cases.
Fix memory leak in sysctl_proc_corename().

COMPAT_LINUX: rework ptrace() locking, minimise differences between
different versions per-arch.

Note: while this change adds some formal cosmetics for COMPAT_DARWIN and
COMPAT_IRIX - locking there is utterly broken (for ages).

Fixes PR/43176.

Revision 1.108.8.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:56 2009 UTC (3 years ago) by jym
Branch: jym-xensuspend
Changes since 1.108: +7 -8 lines
Diff to previous 1.108 (colored) next main 1.109 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.106.2.1 / (download) - annotate - [select for diffs], Mon May 4 08:13:47 2009 UTC (3 years ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.106: +10 -15 lines
Diff to previous 1.106 (colored)

sync with head.

Revision 1.108.2.1 / (download) - annotate - [select for diffs], Tue Apr 28 07:36:59 2009 UTC (3 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.108: +7 -8 lines
Diff to previous 1.108 (colored) next main 1.109 (colored)

Sync with HEAD.

Revision 1.109 / (download) - annotate - [select for diffs], Sat Apr 25 15:06:31 2009 UTC (3 years, 1 month ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, uebayasi-xip-base1, uebayasi-xip-base, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, matt-premerge-20091211, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.108: +7 -8 lines
Diff to previous 1.108 (colored)

- Rearrange pg_delete() and pg_remove() (renamed pg_free), thus
  proc_enterpgrp() with proc_leavepgrp() to free process group and/or
  session without proc_lock held.
- Rename SESSHOLD() and SESSRELE() to  to proc_sesshold() and
  proc_sessrele().  The later releases proc_lock now.

Quick OK by <ad>.

Revision 1.105.6.3 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:19 2009 UTC (3 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.105.6.2: +1 -1 lines
Diff to previous 1.105.6.2 (colored) to branchpoint 1.105 (colored) next main 1.106 (colored)

Sync with HEAD.

Revision 1.107.4.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:27 2008 UTC (3 years, 7 months ago) by haad
Branch: haad-dm
Changes since 1.107: +3 -3 lines
Diff to previous 1.107 (colored) next main 1.108 (colored)

Sync with HEAD.

Revision 1.108 / (download) - annotate - [select for diffs], Sat Oct 11 13:40:57 2008 UTC (3 years, 7 months ago) by pooka
Branch: MAIN
CVS Tags: nick-hppapmap-base2, netbsd-5-base, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, netbsd-5, mjf-devfs2-base, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Branch point for: nick-hppapmap, jym-xensuspend
Changes since 1.107: +3 -3 lines
Diff to previous 1.107 (colored)

Move uidinfo to its own module in kern_uidinfo.c and include in rump.
No functional change to uidinfo.

Revision 1.106.4.3 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:51 2008 UTC (3 years, 11 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.106.4.2: +4 -8 lines
Diff to previous 1.106.4.2 (colored) to branchpoint 1.106 (colored) next main 1.107 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.105.6.2 / (download) - annotate - [select for diffs], Thu Jun 5 19:14:36 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.105.6.1: +2 -6 lines
Diff to previous 1.105.6.1 (colored) to branchpoint 1.105 (colored)

Sync with HEAD.

Also fix build.

Revision 1.105.8.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:39 2008 UTC (3 years, 11 months ago) by yamt
Branch: yamt-pf42
Changes since 1.105.8.1: +4 -8 lines
Diff to previous 1.105.8.1 (colored) to branchpoint 1.105 (colored) next main 1.106 (colored)

sync with head

Revision 1.107 / (download) - annotate - [select for diffs], Mon Jun 2 16:18:09 2008 UTC (3 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl
Branch point for: haad-dm
Changes since 1.106: +4 -8 lines
Diff to previous 1.106 (colored)

Most contention on proc_lock is from getppid(), so cache the parent's PID.

Revision 1.105.6.1 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:09 2008 UTC (3 years, 11 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.105: +16 -16 lines
Diff to previous 1.105 (colored)

Sync with HEAD.

Revision 1.105.8.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:08 2008 UTC (4 years ago) by yamt
Branch: yamt-pf42
Changes since 1.105: +16 -16 lines
Diff to previous 1.105 (colored)

sync with head.

Revision 1.106.4.2 / (download) - annotate - [select for diffs], Wed May 14 01:35:13 2008 UTC (4 years ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.106.4.1: +2 -3 lines
Diff to previous 1.106.4.1 (colored) to branchpoint 1.106 (colored)

Per discussion with ad, remove most of the #include <sys/sa.h> lines
as they were including sa.h just for the type(s) needed for syscallargs.h.

Instead, create a new file, sys/satypes.h, which contains just the
types needed for syscallargs.h. Yes, there's only one now, but that
may change and it's probably more likely to change if it'd be difficult
to handle. :-)

Per discussion with matt at n dot o, add an include of satypes.h to
sigtypes.h. Upcall handlers are kinda signal handlers, and signalling
is the header file that's already included for syscallargs.h that
closest matches SA.

This shaves about 3000 lines off of the diff of the branch relative
to the base. That also represents about 18% of the total before this
checkin.

I think this reduction is very good thing.

Revision 1.106.4.1 / (download) - annotate - [select for diffs], Sat May 10 23:49:04 2008 UTC (4 years ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.106: +3 -2 lines
Diff to previous 1.106 (colored)

Initial checkin of re-adding SA. Everything except kern_sa.c
compiles in GENERIC for i386. This is still a work-in-progress, but
this checkin covers most of the mechanical work (changing signalling
to be able to accomidate SA's process-wide signalling and re-adding
includes of sys/sa.h and savar.h). Subsequent changes will be much
more interesting.

Also, kern_sa.c has received partial cleanup. There's still more
to do, though.

Revision 1.106 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:29 2008 UTC (4 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, yamt-nfs-mp-base, hpcarm-cleanup-nbase
Branch point for: yamt-nfs-mp, wrstuden-revivesa
Changes since 1.105: +16 -16 lines
Diff to previous 1.105 (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.84.12.5 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:10 2008 UTC (4 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.84.12.4: +59 -59 lines
Diff to previous 1.84.12.4 (colored) to branchpoint 1.84 (colored) next main 1.85 (colored)

sync with head

Revision 1.104.8.1 / (download) - annotate - [select for diffs], Wed Jan 9 01:56:07 2008 UTC (4 years, 4 months ago) by matt
Branch: matt-armv6
Changes since 1.104: +59 -59 lines
Diff to previous 1.104 (colored) next main 1.105 (colored)

sync with HEAD

Revision 1.104.20.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:55:56 2008 UTC (4 years, 4 months ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.104: +59 -59 lines
Diff to previous 1.104 (colored) next main 1.105 (colored)

Sync with HEAD

Revision 1.104.16.1 / (download) - annotate - [select for diffs], Wed Dec 26 19:57:08 2007 UTC (4 years, 5 months ago) by ad
Branch: vmlocking2
Changes since 1.104: +59 -59 lines
Diff to previous 1.104 (colored) next main 1.105 (colored)

Sync with head.

Revision 1.105 / (download) - annotate - [select for diffs], Thu Dec 20 23:03:08 2007 UTC (4 years, 5 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base, yamt-lazymbuf-base15, yamt-lazymbuf-base14, vmlocking2-base3, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, bouyer-xeni386-nbase, bouyer-xeni386-base, ad-socklock-base1
Branch point for: yamt-pf42, mjf-devfs2
Changes since 1.104: +59 -59 lines
Diff to previous 1.104 (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.84.12.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:40:53 2007 UTC (4 years, 8 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.84.12.3: +33 -113 lines
Diff to previous 1.84.12.3 (colored) to branchpoint 1.84 (colored)

sync with head.

Revision 1.101.2.1 / (download) - annotate - [select for diffs], Sun Jul 15 13:27:40 2007 UTC (4 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.101: +19 -99 lines
Diff to previous 1.101 (colored) next main 1.102 (colored)

Sync with head.

Revision 1.101.4.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:09:53 2007 UTC (4 years, 10 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.101: +19 -99 lines
Diff to previous 1.101 (colored) next main 1.102 (colored)

Sync with head.

Revision 1.104 / (download) - annotate - [select for diffs], Sat Jun 30 21:31:41 2007 UTC (4 years, 10 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, vmlocking2-base2, vmlocking2-base1, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, mjf-devfs, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: vmlocking2, matt-armv6, bouyer-xeni386
Changes since 1.103: +3 -3 lines
Diff to previous 1.103 (colored)

Fix inverted check in sys_setgroups().

Revision 1.103 / (download) - annotate - [select for diffs], Sat Jun 30 13:32:14 2007 UTC (4 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.102: +7 -18 lines
Diff to previous 1.102 (colored)

Add a flags parameter to kauth_cred_get/setgroups() so that sys_set/setgroups
can copy directly to/from userspace.
Avoids exposing the implementation of the group list as an array to code
outside kern_auth.c.
compat code and man page need updating.

Revision 1.102 / (download) - annotate - [select for diffs], Sat Jun 23 09:08:37 2007 UTC (4 years, 11 months ago) by dsl
Branch: MAIN
Changes since 1.101: +27 -96 lines
Diff to previous 1.101 (colored)

Make sys_getgroups() and sys_setgroups() use the newly added functions
in kern_prot.c in order to simplify the code paths.
NB: the grouplist is not longer sorted - I don't think anything relies
on this (any more) and nfs will use truncated lists where the order of the
entries is important.
Move the external defns for public functios in kern_prot.c into a new
header sys/prot.h (from sys/ucred.h which contains a compat defn that
is exposed to userspace).

Revision 1.97.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:58:36 2007 UTC (5 years, 2 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.97.2.1: +17 -17 lines
Diff to previous 1.97.2.1 (colored) to branchpoint 1.97 (colored) next main 1.98 (colored)

Sync with HEAD.

Revision 1.101 / (download) - annotate - [select for diffs], Fri Mar 9 14:11:25 2007 UTC (5 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Branch point for: vmlocking, mjf-ufs-trans
Changes since 1.100: +16 -16 lines
Diff to previous 1.100 (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.100 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:06 2007 UTC (5 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.99: +3 -3 lines
Diff to previous 1.99 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.97.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:23 2007 UTC (5 years, 2 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.97: +12 -12 lines
Diff to previous 1.97 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.84.12.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:09 2007 UTC (5 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.84.12.2: +106 -106 lines
Diff to previous 1.84.12.2 (colored) to branchpoint 1.84 (colored)

sync with head.

Revision 1.99 / (download) - annotate - [select for diffs], Thu Feb 22 06:34:43 2007 UTC (5 years, 3 months ago) by thorpej
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.98: +10 -10 lines
Diff to previous 1.98 (colored)

TRUE -> true, FALSE -> false

Revision 1.98 / (download) - annotate - [select for diffs], Sat Feb 17 22:31:43 2007 UTC (5 years, 3 months ago) by pavel
Branch: MAIN
Changes since 1.97: +4 -4 lines
Diff to previous 1.97 (colored)

Change the process/lwp flags seen by userland via sysctl back to the
P_*/L_* naming convention, and rename the in-kernel flags to avoid
conflict. (P_ -> PK_, L_ -> LW_ ). Add back the (now unused) LSDEAD
constant.

Restores source compatibility with pre-newlock2 tools like ps or top.

Reviewed by Andrew Doran.

Revision 1.97 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:31 2007 UTC (5 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Changes since 1.96: +104 -104 lines
Diff to previous 1.96 (colored)

Merge newlock2 to head.

Revision 1.93.4.5 / (download) - annotate - [select for diffs], Mon Feb 5 13:20:19 2007 UTC (5 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.93.4.4: +38 -44 lines
Diff to previous 1.93.4.4 (colored) to branchpoint 1.93 (colored) next main 1.94 (colored)

- When clearing signals dequeue siginfo first and free later, once
  outside the lock permiter.
- Push kernel_lock back in a a couple of places.
- Adjust limcopy() to be MP safe (this needs redoing).
- Fix a couple of bugs noticed along the way.
- Catch up with condvar changes.

Revision 1.93.4.4 / (download) - annotate - [select for diffs], Tue Jan 30 13:51:41 2007 UTC (5 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.93.4.3: +2 -3 lines
Diff to previous 1.93.4.3 (colored) to branchpoint 1.93 (colored)

Remove support for SA. Ok core@.

Revision 1.84.12.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:05 2006 UTC (5 years, 4 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.84.12.1: +137 -97 lines
Diff to previous 1.84.12.1 (colored) to branchpoint 1.84 (colored)

sync with head.

Revision 1.94.2.2 / (download) - annotate - [select for diffs], Sun Dec 10 07:18:44 2006 UTC (5 years, 5 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.94.2.1: +24 -24 lines
Diff to previous 1.94.2.1 (colored) to branchpoint 1.94 (colored) next main 1.95 (colored)

sync with head.

Revision 1.93.4.3 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:22 2006 UTC (5 years, 6 months ago) by ad
Branch: newlock2
Changes since 1.93.4.2: +10 -10 lines
Diff to previous 1.93.4.2 (colored) to branchpoint 1.93 (colored)

Sync with head.

Revision 1.93.4.2 / (download) - annotate - [select for diffs], Fri Nov 17 16:34:36 2006 UTC (5 years, 6 months ago) by ad
Branch: newlock2
Changes since 1.93.4.1: +34 -37 lines
Diff to previous 1.93.4.1 (colored) to branchpoint 1.93 (colored)

Checkpoint work in progress.

Revision 1.96 / (download) - annotate - [select for diffs], Wed Nov 1 10:17:58 2006 UTC (5 years, 6 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, newlock2-nbase, newlock2-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.95: +24 -24 lines
Diff to previous 1.95 (colored)

remove some __unused from function parameters.

Revision 1.94.2.1 / (download) - annotate - [select for diffs], Sun Oct 22 06:07:10 2006 UTC (5 years, 7 months ago) by yamt
Branch: yamt-splraiseipl
Changes since 1.94: +24 -24 lines
Diff to previous 1.94 (colored)

sync with head

Revision 1.95 / (download) - annotate - [select for diffs], Thu Oct 12 01:32:16 2006 UTC (5 years, 7 months ago) by christos
Branch: MAIN
CVS Tags: yamt-splraiseipl-base2
Changes since 1.94: +24 -24 lines
Diff to previous 1.94 (colored)

- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386

Revision 1.88.8.3 / (download) - annotate - [select for diffs], Thu Sep 14 12:31:48 2006 UTC (5 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.88.8.2: +10 -10 lines
Diff to previous 1.88.8.2 (colored) to branchpoint 1.88 (colored) next main 1.89 (colored)

sync with head.

Revision 1.93.4.1 / (download) - annotate - [select for diffs], Mon Sep 11 18:19:09 2006 UTC (5 years, 8 months ago) by ad
Branch: newlock2
Changes since 1.93: +53 -43 lines
Diff to previous 1.93 (colored)

- Allocate and free turnstiles where needed.
- Split proclist_mutex and alllwp_mutex out of the proclist_lock,
  and use in interrupt context.
- Fix an MP race in enterpgrp()/setsid().
- Acquire proclist_lock and p_crmutex in some obvious places.

Revision 1.88.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:16 2006 UTC (5 years, 8 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.88: +156 -241 lines
Diff to previous 1.88 (colored) next main 1.89 (colored)

sync with head

Revision 1.94 / (download) - annotate - [select for diffs], Fri Sep 8 20:58:57 2006 UTC (5 years, 8 months ago) by elad
Branch: MAIN
CVS Tags: yamt-splraiseipl-base, yamt-pdpolicy-base9
Branch point for: yamt-splraiseipl
Changes since 1.93: +10 -10 lines
Diff to previous 1.93 (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.88.8.2 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:46 2006 UTC (5 years, 9 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.88.8.1: +137 -97 lines
Diff to previous 1.88.8.1 (colored) to branchpoint 1.88 (colored)

sync with head

Revision 1.93 / (download) - annotate - [select for diffs], Sun Jul 30 21:58:11 2006 UTC (5 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: newlock2
Changes since 1.92: +58 -29 lines
Diff to previous 1.92 (colored)

Single-thread updates to the process credential.

Revision 1.92 / (download) - annotate - [select for diffs], Wed Jul 19 21:11:38 2006 UTC (5 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.91: +54 -50 lines
Diff to previous 1.91 (colored)

- Hold a reference to the process credentials in each struct lwp.
- Update the reference on syscall and user trap if p_cred has changed.
- Collect accounting flags in the LWP, and collate on LWP exit.

Revision 1.91 / (download) - annotate - [select for diffs], Mon Jul 17 15:29:06 2006 UTC (5 years, 10 months ago) by ad
Branch: MAIN
Changes since 1.90: +11 -16 lines
Diff to previous 1.90 (colored)

- Always make p->p_cred a private copy before modifying.
- Share credentials among processes when forking.

Revision 1.90 / (download) - annotate - [select for diffs], Sat Jul 15 06:31:34 2006 UTC (5 years, 10 months ago) by yamt
Branch: MAIN
Changes since 1.89: +48 -36 lines
Diff to previous 1.89 (colored)

do_setresuid, do_setresgid: use the suser privilege only when necessary.

Revision 1.84.12.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:38 2006 UTC (5 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.84: +123 -200 lines
Diff to previous 1.84 (colored)

sync with head.

Revision 1.88.6.1 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:08 2006 UTC (5 years, 11 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.88: +80 -205 lines
Diff to previous 1.88 (colored) next main 1.89 (colored)

Sync with head.

Revision 1.88.12.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:41 2006 UTC (6 years ago) by tron
Branch: peter-altq
Changes since 1.88: +80 -205 lines
Diff to previous 1.88 (colored) next main 1.89 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.88.8.1 / (download) - annotate - [select for diffs], Wed May 24 10:58:41 2006 UTC (6 years ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.88: +80 -205 lines
Diff to previous 1.88 (colored)

sync with head.

Revision 1.89 / (download) - annotate - [select for diffs], Sun May 14 21:15:11 2006 UTC (6 years ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, yamt-pdpolicy-base5, simonb-timecounters-base, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base, chap-midi
Changes since 1.88: +80 -205 lines
Diff to previous 1.88 (colored)

integrate kauth.

Revision 1.88.10.7 / (download) - annotate - [select for diffs], Sat May 6 23:31:30 2006 UTC (6 years ago) by christos
Branch: elad-kernelauth
Changes since 1.88.10.6: +3 -2 lines
Diff to previous 1.88.10.6 (colored) to branchpoint 1.88 (colored) next main 1.89 (colored)

- Move kauth_cred_t declaration to <sys/types.h>
- Cleanup struct ucred; forward declarations that are unused.
- Don't include <sys/kauth.h> in any header, but include it in the c files
  that need it.

Approved by core.

Revision 1.88.10.6 / (download) - annotate - [select for diffs], Thu Mar 30 22:30:27 2006 UTC (6 years, 1 month ago) by elad
Branch: elad-kernelauth
Changes since 1.88.10.5: +2 -133 lines
Diff to previous 1.88.10.5 (colored) to branchpoint 1.88 (colored)

Get rid of some stuff we no longer need here:

  - suser()
  - groupmember()
  - pcred/ucred memory pools
  - crget(), crfree(), crcmp(), crcopy(), crdup(), crcvt()

Revision 1.88.10.5 / (download) - annotate - [select for diffs], Tue Mar 14 02:52:47 2006 UTC (6 years, 2 months ago) by elad
Branch: elad-kernelauth
Changes since 1.88.10.4: +4 -32 lines
Diff to previous 1.88.10.4 (colored) to branchpoint 1.88 (colored)

Use kauth_cred_[sg]etgroups() where appropriate.

Revision 1.88.10.4 / (download) - annotate - [select for diffs], Fri Mar 10 13:53:24 2006 UTC (6 years, 2 months ago) by elad
Branch: elad-kernelauth
Changes since 1.88.10.3: +6 -6 lines
Diff to previous 1.88.10.3 (colored) to branchpoint 1.88 (colored)

generic_authorize() -> kauth_authorize_generic().

Revision 1.88.10.3 / (download) - annotate - [select for diffs], Thu Mar 9 23:48:23 2006 UTC (6 years, 2 months ago) by elad
Branch: elad-kernelauth
Changes since 1.88.10.2: +4 -4 lines
Diff to previous 1.88.10.2 (colored) to branchpoint 1.88 (colored)

After kauth_cred_copy(), update p->p_cred so we don't access pool_put()'d
memory.

Revision 1.88.10.2 / (download) - annotate - [select for diffs], Wed Mar 8 22:12:35 2006 UTC (6 years, 2 months ago) by elad
Branch: elad-kernelauth
Changes since 1.88.10.1: +6 -5 lines
Diff to previous 1.88.10.1 (colored) to branchpoint 1.88 (colored)

Fix some issues with set-id binaries.

Revision 1.88.10.1 / (download) - annotate - [select for diffs], Wed Mar 8 00:53:40 2006 UTC (6 years, 2 months ago) by elad
Branch: elad-kernelauth
Changes since 1.88: +108 -76 lines
Diff to previous 1.88 (colored)

Adapt to kernel authorization KPI.

Revision 1.88 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:29 2005 UTC (6 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, yamt-pdpolicy-base, peter-altq-base, elad-kernelauth-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb, peter-altq, elad-kernelauth
Changes since 1.87: +2 -2 lines
Diff to previous 1.87 (colored)

merge ktrace-lwp.

Revision 1.79.2.4 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:45 2005 UTC (6 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.79.2.3: +51 -3 lines
Diff to previous 1.79.2.3 (colored) next main 1.80 (colored)

Sync with HEAD. Here we go again...

Revision 1.87 / (download) - annotate - [select for diffs], Fri Sep 2 20:51:53 2005 UTC (6 years, 8 months ago) by rillig
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.86: +21 -16 lines
Diff to previous 1.86 (colored)

Made the code of the grsortu function smaller and simpler. Ok'ed by
christos.

Revision 1.86 / (download) - annotate - [select for diffs], Tue Aug 23 07:58:58 2005 UTC (6 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.85: +40 -2 lines
Diff to previous 1.85 (colored)

in setgroups(), sort -u the gid_t array to make sure that comparisons are
consistent.

Revision 1.85 / (download) - annotate - [select for diffs], Mon Aug 22 15:10:50 2005 UTC (6 years, 9 months ago) by rillig
Branch: MAIN
Changes since 1.84: +8 -3 lines
Diff to previous 1.84 (colored)

Bugfix: In crcmp, compare n group IDs instead of only n bytes.

Added a big FIXME because two group lists containing the same entries,
but ordered differently, still compare as unequal. The same holds if one
group list contains an entry twice while the other does not. ok'ed by
christos.

Revision 1.79.2.3 / (download) - annotate - [select for diffs], Tue Sep 21 13:35:07 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.79.2.2: +2 -2 lines
Diff to previous 1.79.2.2 (colored)

Fix the sync with head I botched.

Revision 1.79.2.2 / (download) - annotate - [select for diffs], Sat Sep 18 14:53:03 2004 UTC (7 years, 8 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.79.2.1: +0 -0 lines
Diff to previous 1.79.2.1 (colored)

Sync with HEAD.

Revision 1.79.2.1 / (download) - annotate - [select for diffs], Tue Aug 3 10:52:50 2004 UTC (7 years, 9 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.79: +21 -17 lines
Diff to previous 1.79 (colored)

Sync with HEAD

Revision 1.84 / (download) - annotate - [select for diffs], Tue May 4 21:27:28 2004 UTC (8 years ago) by pk
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, yamt-km-base2, yamt-km-base, yamt-km, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, matt-timespec, kent-audio2-base, kent-audio2, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-lazymbuf
Changes since 1.83: +3 -7 lines
Diff to previous 1.83 (colored)

crcopy: no need to lock if we're only reading the structure's reference count.

Revision 1.83 / (download) - annotate - [select for diffs], Sun May 2 12:36:55 2004 UTC (8 years ago) by pk
Branch: MAIN
Changes since 1.82: +18 -8 lines
Diff to previous 1.82 (colored)

Add mutex to protect the ucred reference counter.

Revision 1.82 / (download) - annotate - [select for diffs], Sun Apr 25 16:42:41 2004 UTC (8 years, 1 month ago) by simonb
Branch: MAIN
Changes since 1.81: +8 -7 lines
Diff to previous 1.81 (colored)

Initialise (most) pools from a link set instead of explicit calls
to pool_init.  Untouched pools are ones that either in arch-specific
code, or aren't initialiased during initial system startup.

 Convert struct session, ucred and lockf to pools.

Revision 1.81 / (download) - annotate - [select for diffs], Sat Apr 17 15:15:29 2004 UTC (8 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.80: +3 -2 lines
Diff to previous 1.80 (colored)

PR/9347: Eric E. Fair: socket buffer pool exhaustion leads to system deadlock
and unkillable processes.
1. Introduce new SBSIZE resource limit from FreeBSD to limit socket buffer
   size resource.
2. make sokvareserve interruptible, so processes ltsleeping on it can be
   killed.

Revision 1.80 / (download) - annotate - [select for diffs], Thu Aug 7 16:31:47 2003 UTC (8 years, 9 months ago) by agc
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-1, 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, netbsd-2-0, netbsd-2
Changes since 1.79: +3 -7 lines
Diff to previous 1.79 (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.79 / (download) - annotate - [select for diffs], Fri May 16 13:55:18 2003 UTC (9 years ago) by christos
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.78: +14 -2 lines
Diff to previous 1.78 (colored)

add a crcmp() function.

Revision 1.78 / (download) - annotate - [select for diffs], Thu Mar 27 17:47:45 2003 UTC (9 years, 2 months ago) by jdolecek
Branch: MAIN
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored)

sys_setreuid(): parenthesize the ruid check in ?: condition, so that
it would be more difficult to mistake == for = when reading it

Revision 1.77 / (download) - annotate - [select for diffs], Wed Mar 19 11:36:34 2003 UTC (9 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.76: +11 -18 lines
Diff to previous 1.76 (colored)

Alternative pid/proc allocater, removes all searches associated with pid
lookup and allocation, and any dependency on NPROC or MAXUSERS.
NO_PID changed to -1 (and renamed NO_PGID) to remove artificial limit
on PID_MAX.
As discussed on tech-kern.

Revision 1.76 / (download) - annotate - [select for diffs], Wed Mar 5 18:42:19 2003 UTC (9 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.75: +152 -154 lines
Diff to previous 1.75 (colored)

Add do_setresuid() and do_setresgid() and implement sys_setuid, sys_seteuid,
sys_setreuid (and gid equivs) in terms of them.

Revision 1.75 / (download) - annotate - [select for diffs], Fri Feb 28 23:24:40 2003 UTC (9 years, 2 months ago) by enami
Branch: MAIN
Changes since 1.74: +12 -8 lines
Diff to previous 1.74 (colored)

Cosmetic changes.

Revision 1.74 / (download) - annotate - [select for diffs], Tue Feb 18 19:26:23 2003 UTC (9 years, 3 months ago) by wiz
Branch: MAIN
Changes since 1.73: +5 -4 lines
Diff to previous 1.73 (colored)

Add newline character to logname change warning.
Noted missing by Sean Davis on tech-kern.

Revision 1.73 / (download) - annotate - [select for diffs], Tue Feb 18 08:37:41 2003 UTC (9 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.72: +36 -120 lines
Diff to previous 1.72 (colored)

KNF kern_prot.c

Revision 1.72 / (download) - annotate - [select for diffs], Sat Feb 15 18:10:16 2003 UTC (9 years, 3 months ago) by dsl
Branch: MAIN
Changes since 1.71: +16 -7 lines
Diff to previous 1.71 (colored)

Fix support of 15 and 16 character lognames.
Warn if the logname is changed within a session - usually a missing setsid.
(approved by christos)

Revision 1.71 / (download) - annotate - [select for diffs], Sat Feb 1 06:23:43 2003 UTC (9 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.70: +4 -2 lines
Diff to previous 1.70 (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.70 / (download) - annotate - [select for diffs], Sat Jan 18 10:06:29 2003 UTC (9 years, 4 months ago) by thorpej
Branch: MAIN
Changes since 1.69: +85 -60 lines
Diff to previous 1.69 (colored)

Merge the nathanw_sa branch.

Revision 1.69.2.1 / (download) - annotate - [select for diffs], Wed Dec 18 01:06:11 2002 UTC (9 years, 5 months ago) by gmcgarry
Branch: gmcgarry_ucred
Changes since 1.69: +155 -142 lines
Diff to previous 1.69 (colored) next main 1.70 (colored)

Merge pcred and ucred, and poolify.  TBD: check backward compatibility
and factor-out some higher-level functionality.

Revision 1.64.2.2 / (download) - annotate - [select for diffs], Fri Sep 6 08:47:53 2002 UTC (9 years, 8 months ago) by jdolecek
Branch: kqueue
Changes since 1.64.2.1: +8 -7 lines
Diff to previous 1.64.2.1 (colored) to branchpoint 1.64 (colored) next main 1.65 (colored)

sync kqueue branch with HEAD

Revision 1.68.8.1 / (download) - annotate - [select for diffs], Thu Aug 29 05:23:07 2002 UTC (9 years, 8 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.68: +8 -7 lines
Diff to previous 1.68 (colored) next main 1.69 (colored)

catch up with -current.

Revision 1.63.2.8 / (download) - annotate - [select for diffs], Tue Aug 27 23:47:25 2002 UTC (9 years, 9 months ago) by nathanw
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.63.2.7: +8 -7 lines
Diff to previous 1.63.2.7 (colored) next main 1.64 (colored)

Catch up to -current.

Revision 1.69 / (download) - annotate - [select for diffs], Sun Aug 25 21:30:40 2002 UTC (9 years, 9 months ago) by thorpej
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, kqueue-beforemerge, kqueue-base, kqueue-aftermerge, gmcgarry_ucred_base, gmcgarry_ctxsw_base, gmcgarry_ctxsw, gehenna-devsw-base, fvdl_fs64_base
Branch point for: gmcgarry_ucred
Changes since 1.68: +8 -7 lines
Diff to previous 1.68 (colored)

Fix some signed/unsigned comparison warnings from GCC 3.3.

Revision 1.63.2.7 / (download) - annotate - [select for diffs], Fri Jul 12 01:40:17 2002 UTC (9 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.63.2.6: +2 -3 lines
Diff to previous 1.63.2.6 (colored)

No longer need to pull in lwp.h; proc.h pulls it in for us.

Revision 1.63.2.6 / (download) - annotate - [select for diffs], Wed May 29 21:33:11 2002 UTC (9 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.63.2.5: +3 -2 lines
Diff to previous 1.63.2.5 (colored)

#include <sys/sa.h> before <sys/syscallargs.h>, to provide sa_upcall_t
now that <sys/param.h> doesn't include <sys/sa.h>.

(Behold the Power of Ed)

Revision 1.63.2.5 / (download) - annotate - [select for diffs], Thu Feb 28 19:59:35 2002 UTC (10 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.63.2.4: +4 -4 lines
Diff to previous 1.63.2.4 (colored)

sys_setlogin() -> sys___setlogin()

Revision 1.58.4.2 / (download) - annotate - [select for diffs], Sat Feb 9 19:20:17 2002 UTC (10 years, 3 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.58.4.1: +16 -1 lines
Diff to previous 1.58.4.1 (colored) to branchpoint 1.58 (colored) next main 1.59 (colored)

Pull up revisions 1.66-1.68 (requested by christos):
  Widen cr_ref to prevent overflow.

Revision 1.64.2.1 / (download) - annotate - [select for diffs], Thu Jan 10 19:59:53 2002 UTC (10 years, 4 months ago) by thorpej
Branch: kqueue
Changes since 1.64: +19 -1 lines
Diff to previous 1.64 (colored)

Sync kqueue branch with -current.

Revision 1.63.2.4 / (download) - annotate - [select for diffs], Tue Jan 8 00:32:33 2002 UTC (10 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.63.2.3: +17 -2 lines
Diff to previous 1.63.2.3 (colored)

Catch up to -current.

Revision 1.68 / (download) - annotate - [select for diffs], Thu Dec 6 23:11:59 2001 UTC (10 years, 5 months ago) by christos
Branch: MAIN
CVS Tags: newlock-base, newlock, 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, ifpoll-base, ifpoll, eeh-devprop-base, eeh-devprop
Branch point for: gehenna-devsw
Changes since 1.67: +2 -11 lines
Diff to previous 1.67 (colored)

remove diagnostic test checking for cr_ref = 0. It will never be, because
free() will stick 0xdeadbeef into it.

Revision 1.67 / (download) - annotate - [select for diffs], Thu Nov 29 21:21:13 2001 UTC (10 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.66: +17 -2 lines
Diff to previous 1.66 (colored)

introduce crcvt() that converts from struct uucred to struct ucred.

Revision 1.66 / (download) - annotate - [select for diffs], Tue Nov 27 07:30:03 2001 UTC (10 years, 6 months ago) by jdolecek
Branch: MAIN
Changes since 1.65: +11 -2 lines
Diff to previous 1.65 (colored)

crfree(): add DIAGNOSTIC sanity check of cr_ref; unfortunately, if the memory
is freed prematurely the check won't be triggered immediatelly, probably
since the memory is likely to be reused fast; but it _would_ be triggered
eventually

Revision 1.63.2.3 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:37 2001 UTC (10 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.63.2.2: +4 -1 lines
Diff to previous 1.63.2.2 (colored)

Catch up to -current.

Revision 1.64.6.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:49 2001 UTC (10 years, 6 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.64: +4 -1 lines
Diff to previous 1.64 (colored) next main 1.65 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.65 / (download) - annotate - [select for diffs], Mon Nov 12 15:25:14 2001 UTC (10 years, 6 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.64: +4 -1 lines
Diff to previous 1.64 (colored)

add RCSIDs

Revision 1.63.2.2 / (download) - annotate - [select for diffs], Thu Jun 21 20:06:52 2001 UTC (10 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.63.2.1: +1 -4 lines
Diff to previous 1.63.2.1 (colored)

Catch up to -current.

Revision 1.55.2.4 / (download) - annotate - [select for diffs], Sat Apr 21 17:46:28 2001 UTC (11 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.55.2.3: +1 -4 lines
Diff to previous 1.55.2.3 (colored) to branchpoint 1.55 (colored) next main 1.56 (colored)

Sync with HEAD

Revision 1.64 / (download) - annotate - [select for diffs], Thu Apr 12 03:08:42 2001 UTC (11 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base, thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, thorpej-devvp, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache, kqueue
Changes since 1.63: +1 -4 lines
Diff to previous 1.63 (colored)

Remove an splimp() that really has no purpose in life.

Revision 1.63.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:49:41 2001 UTC (11 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.63: +83 -58 lines
Diff to previous 1.63 (colored)

Initial commit of scheduler activations and lightweight process support.

Revision 1.55.2.3 / (download) - annotate - [select for diffs], Wed Dec 13 15:50:21 2000 UTC (11 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.55.2.2: +46 -13 lines
Diff to previous 1.55.2.2 (colored) to branchpoint 1.55 (colored)

Sync with HEAD (for UBC fixes).

Revision 1.63 / (download) - annotate - [select for diffs], Sat Dec 9 07:17:32 2000 UTC (11 years, 5 months ago) by mycroft
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.62: +8 -1 lines
Diff to previous 1.62 (colored)

Fix compile glitch.

Revision 1.62 / (download) - annotate - [select for diffs], Sat Dec 9 07:04:47 2000 UTC (11 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.61: +40 -14 lines
Diff to previous 1.61 (colored)

Define 3 new functions:
* sys_getpid_with_ppid()
* sys_getuid_with_euid()
* sys_getgid_with_egid()
that do the retval[1] hack.  Use them when COMPAT_43 is defined.

Revision 1.55.2.2 / (download) - annotate - [select for diffs], Fri Dec 8 09:13:55 2000 UTC (11 years, 5 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.55.2.1: +11 -17 lines
Diff to previous 1.55.2.1 (colored) to branchpoint 1.55 (colored)

Sync with HEAD.

Revision 1.61 / (download) - annotate - [select for diffs], Fri Dec 1 20:34:17 2000 UTC (11 years, 5 months ago) by jdolecek
Branch: MAIN
Changes since 1.60: +11 -17 lines
Diff to previous 1.60 (colored)

use EMUL_GETPID_PASS_PPID or EMUL_GETID_PASS_EID to find out if one should
pass parent pid for getpid() or effective id for get[ug]id(), instead
of compile-time dependency

Revision 1.55.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:09:02 2000 UTC (11 years, 6 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.55: +102 -40 lines
Diff to previous 1.55 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.58.4.1 / (download) - annotate - [select for diffs], Wed Oct 18 03:41:36 2000 UTC (11 years, 7 months ago) by tv
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.58: +58 -15 lines
Diff to previous 1.58 (colored)

Pullup 1.59 and 1.60 [christos]:
Don't set P_SUGID if the calls to set{e,}{u,g}id(), setreuid(),
setgroups() did not result in actual changes. This has the nice
side effect that we don't needlesly allocate new credential and
resource limit data structures.

[releng: this is needed for proper operation of issetugid()]

Revision 1.60 / (download) - annotate - [select for diffs], Tue Oct 17 23:38:55 2000 UTC (11 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.59: +14 -14 lines
Diff to previous 1.59 (colored)

knf [from charles]

Revision 1.59 / (download) - annotate - [select for diffs], Tue Oct 17 20:53:45 2000 UTC (11 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.58: +55 -12 lines
Diff to previous 1.58 (colored)

Don't set P_SUGID if the calls to set{e,}{u,g}id(), setreuid(),
setgroups() did not result in actual changes. This has the nice
side effect that we don't needlesly allocate new credential and
resource limit data structures.

This is so that non setuid programs that call seteuid(getuid()),
don't end up setting P_SUGID, resulting in broken behavior [i.e.
non setuid ssh, doesn't read ~/.hostaliases...].

This is a good candidate for a pullup, if someone reviews it.

Revision 1.53.2.2 / (download) - annotate - [select for diffs], Fri Oct 6 15:35:10 2000 UTC (11 years, 7 months ago) by he
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH003
Changes since 1.53.2.1: +19 -1 lines
Diff to previous 1.53.2.1 (colored) to branchpoint 1.53 (colored) next main 1.54 (colored)

Pull up revision 1.57 (requested by sommerfeld):
  Introduce the issetugid() system call.

Revision 1.58 / (download) - annotate - [select for diffs], Sat May 27 00:40:46 2000 UTC (12 years ago) by sommerfeld
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.57: +3 -2 lines
Diff to previous 1.57 (colored)

Reduce use of curproc in several places:

 - Change ktrace interface to pass in the current process, rather than
p->p_tracep, since the various ktr* function need curproc anyway.

 - Add curproc as a parameter to mi_switch() since all callers had it
handy anyway.

 - Add a second proc argument for inferior() since callers all had
curproc handy.

Also, miscellaneous cleanups in ktrace:

 - ktrace now always uses file-based, rather than vnode-based I/O
(simplifies, increases type safety); eliminate KTRFLAG_FD & KTRFAC_FD.
Do non-blocking I/O, and yield a finite number of times when receiving
EWOULDBLOCK before giving up.

 - move code duplicated between sys_fktrace and sys_ktrace into ktrace_common.

 - simplify interface to ktrwrite()

Revision 1.57 / (download) - annotate - [select for diffs], Fri Apr 21 16:15:39 2000 UTC (12 years, 1 month ago) by minoura
Branch: MAIN
Changes since 1.56: +19 -1 lines
Diff to previous 1.56 (colored)

Add native issetugid() call.
Implementation from compat/freebsd.

Revision 1.56 / (download) - annotate - [select for diffs], Thu Mar 30 09:27:12 2000 UTC (12 years, 1 month ago) by augustss
Branch: MAIN
Changes since 1.55: +26 -26 lines
Diff to previous 1.55 (colored)

Get rid of register declarations.

Revision 1.53.6.1 / (download) - annotate - [select for diffs], Tue Nov 30 13:34:42 1999 UTC (12 years, 5 months ago) by itojun
Branch: kame
CVS Tags: kame_141_19991130
Changes since 1.53: +7 -4 lines
Diff to previous 1.53 (colored) next main 1.54 (colored)

bring in latest KAME (as of 19991130, KAME/NetBSD141) into kame branch
just for reference purposes.
This commit includes 1.4 -> 1.4.1 sync for kame branch.

The branch does not compile at all (due to the lack of ALTQ and some other
source code).  Please do not try to modify the branch, this is just for
referenre purposes.

synchronization to latest KAME will take place on HEAD branch soon.

Revision 1.55 / (download) - annotate - [select for diffs], Tue Sep 28 14:47:03 1999 UTC (12 years, 8 months ago) by bouyer
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase
Branch point for: thorpej_scsipi
Changes since 1.54: +8 -8 lines
Diff to previous 1.54 (colored)

Remplace kern.shortcorename sysctl with a more flexible sheme,
core filename format, which allow to change the name of the core dump,
and to relocate it in a directory. Credits to Bill Sommerfeld for giving me
the idea :)
The default core filename format can be changed by options DEFCORENAME and/or
kern.defcorename
Create a new sysctl tree, proc, which holds per-process values (for now
the corename format, and resources limits). Process is designed by its pid
at the second level name. These values are inherited on fork, and the corename
fomat is reset to defcorename on suid/sgid exec.
Create a p_sugid() function, to take appropriate actions on suid/sgid
exec (for now set the P_SUGID flag and reset the per-proc corename).
Adjust dosetrlimit() to allow changing limits of one proc by another, with
credential controls.

Revision 1.53.2.1 / (download) - annotate - [select for diffs], Mon Jun 21 19:21:51 1999 UTC (12 years, 11 months ago) by cgd
Branch: netbsd-1-4
CVS Tags: netbsd-1-4-PATCH002, netbsd-1-4-PATCH001
Changes since 1.53: +7 -4 lines
Diff to previous 1.53 (colored)

pull up rev(s) 1.54 from trunk. (cgd)

Revision 1.53.4.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:24:02 1999 UTC (12 years, 11 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.53: +7 -4 lines
Diff to previous 1.53 (colored) next main 1.54 (colored)

Sync w/ -current.

Revision 1.54 / (download) - annotate - [select for diffs], Fri Apr 30 05:30:32 1999 UTC (13 years ago) by cgd
Branch: MAIN
CVS Tags: chs-ubc2-base
Changes since 1.53: +7 -4 lines
Diff to previous 1.53 (colored)

add checks for COMPAT_OSF1 in the appropriate places

Revision 1.53 / (download) - annotate - [select for diffs], Sun Mar 28 17:34:33 1999 UTC (13 years, 2 months ago) by kleink
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, kame_14_19990705, kame_14_19990628
Branch point for: netbsd-1-4, kame, chs-ubc2
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

Sync __getlogin()'s namelen argument with the libc-internal declaration
(u_int vs. size_t).

Revision 1.52 / (download) - annotate - [select for diffs], Fri Dec 18 14:10:06 1998 UTC (13 years, 5 months ago) by drochner
Branch: MAIN
Changes since 1.51: +4 -3 lines
Diff to previous 1.51 (colored)

COMPAT_xxx option review: add missing opt_compat_linux.h
alpha -> __alpha__

Revision 1.51 / (download) - annotate - [select for diffs], Thu Dec 10 15:09:18 1998 UTC (13 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.50: +2 -1 lines
Diff to previous 1.50 (colored)

defopt COMPAT_43

Revision 1.50 / (download) - annotate - [select for diffs], Fri Sep 25 06:04:48 1998 UTC (13 years, 8 months ago) by erh
Branch: MAIN
CVS Tags: kenh-if-detach-base, kenh-if-detach, chs-ubc-base, chs-ubc
Changes since 1.49: +5 -4 lines
Diff to previous 1.49 (colored)

Alpha Linux compat tweak for getpid, getuid and getgid.

Revision 1.47.2.1 / (download) - annotate - [select for diffs], Sat Aug 8 03:06:55 1998 UTC (13 years, 9 months ago) by eeh
Branch: eeh-paddr_t
Changes since 1.47: +4 -4 lines
Diff to previous 1.47 (colored) next main 1.48 (colored)

Revert cdevsw mmap routines to return int.

Revision 1.49 / (download) - annotate - [select for diffs], Tue Aug 4 04:03:13 1998 UTC (13 years, 9 months ago) by perry
Branch: MAIN
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (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.48 / (download) - annotate - [select for diffs], Fri Jul 31 22:50:50 1998 UTC (13 years, 9 months ago) by perry
Branch: MAIN
Changes since 1.47: +4 -4 lines
Diff to previous 1.47 (colored)

fix sizeofs so they comply with the KNF style guide. yes, it is pedantic.

Revision 1.47 / (download) - annotate - [select for diffs], Thu Jun 25 23:41:20 1998 UTC (13 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.46: +2 -1 lines
Diff to previous 1.46 (colored)

defopt COMPAT_SUNOS

Revision 1.46 / (download) - annotate - [select for diffs], Thu Jun 25 23:22:52 1998 UTC (13 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.45: +2 -1 lines
Diff to previous 1.45 (colored)

defopt COMPAT_IBCS2

Revision 1.45 / (download) - annotate - [select for diffs], Thu Jun 25 22:50:02 1998 UTC (13 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.44: +3 -1 lines
Diff to previous 1.44 (colored)

defopt COMPAT_FREEBSD

Revision 1.44 / (download) - annotate - [select for diffs], Sun Mar 1 02:22:29 1998 UTC (14 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.43: +2 -2 lines
Diff to previous 1.43 (colored)

Merge with Lite2 + local changes

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:13:03 1998 UTC (14 years, 2 months ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.2: +156 -121 lines
Diff to previous 1.1.1.2 (colored)

Import 4.4BSD-Lite2

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:09:41 1998 UTC (14 years, 2 months ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-1, date-03-may-96
Changes since 1.1.1.1: +566 -1 lines
Diff to previous 1.1.1.1 (colored)

Import 4.4BSD-Lite for reference

Revision 1.43 / (download) - annotate - [select for diffs], Sat Feb 14 01:17:51 1998 UTC (14 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.42: +24 -1 lines
Diff to previous 1.42 (colored)

Implement getsid(2), as defined by XPG4.2: returns the process group ID
of the session leader of the specified process's session.

Revision 1.42 / (download) - annotate - [select for diffs], Mon Nov 10 08:26:09 1997 UTC (14 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.41: +6 -9 lines
Diff to previous 1.41 (colored)

Clean up code from last commit.

Revision 1.40.8.1 / (download) - annotate - [select for diffs], Tue Nov 4 21:26:58 1997 UTC (14 years, 6 months ago) by thorpej
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Changes since 1.40: +7 -3 lines
Diff to previous 1.40 (colored) next main 1.41 (colored)

Pull up from trunk: Fix syscall argument type bogons.

Revision 1.41 / (download) - annotate - [select for diffs], Tue Nov 4 21:24:14 1997 UTC (14 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.40: +7 -3 lines
Diff to previous 1.40 (colored)

Fix slight argument bogosity with getgroups(), setgroups(), select(),
and swapctl().  For the former three, they use an 'int' in their user-land
prototype which was a 'u_int' in the kernel, which screwed up automatic
generation/checking of lint syscall stubs.  For the latter, the user-land
prototype uses a "const char *", but the syscall just used "char *".

From Chris Demetriou <cgd@pa.dec.com>.

Revision 1.40 / (download) - annotate - [select for diffs], Wed Apr 23 18:59:58 1997 UTC (15 years, 1 month ago) by mycroft
Branch: MAIN
CVS Tags: thorpej-signal-base, thorpej-signal, netbsd-1-3-base, marc-pcmcia-bp, marc-pcmcia-base, marc-pcmcia, bouyer-scsipi
Branch point for: netbsd-1-3
Changes since 1.39: +1 -22 lines
Diff to previous 1.39 (colored)

Nuke the old COMPAT_09 truncation of UIDs, GIDs, process and process group IDs.

Revision 1.39 / (download) - annotate - [select for diffs], Thu Mar 27 06:14:03 1997 UTC (15 years, 2 months ago) by mikel
Branch: MAIN
Changes since 1.38: +5 -1 lines
Diff to previous 1.38 (colored)

make setpgid(pid, pgrp) return EINVAL if pgrp < 0 as required by POSIX.1;
  from Klaus Klein in PR standards/3395.

Revision 1.38 / (download) - annotate - [select for diffs], Sun Dec 22 10:21:08 1996 UTC (15 years, 5 months ago) by cgd
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.37: +6 -7 lines
Diff to previous 1.37 (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.33.4.1 / (download) - annotate - [select for diffs], Tue Dec 10 08:04:30 1996 UTC (15 years, 5 months ago) by mycroft
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-PATCH001
Changes since 1.33: +92 -3 lines
Diff to previous 1.33 (colored) next main 1.34 (colored)

From trunk:
Implement setre[ug]id() for real.

Revision 1.37 / (download) - annotate - [select for diffs], Thu Sep 19 04:54:16 1996 UTC (15 years, 8 months ago) by jtc
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

renamed sys_getlogin to sys___getlogin.  required by libc namespace conventions

Revision 1.36 / (download) - annotate - [select for diffs], Fri Aug 9 10:32:16 1996 UTC (15 years, 9 months ago) by mrg
Branch: MAIN
Changes since 1.35: +20 -1 lines
Diff to previous 1.35 (colored)

Change reboot(2) to take two arguments: bootopt like normal and also
a boot string for firmware that can do this, such as the SPARC and
the sun3 models.  It is currently silently ignored on all other
hardware now, however.  The MD function "boot()" has been changed to
also take a char *.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Jun 23 11:04:11 1996 UTC (15 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.34: +89 -1 lines
Diff to previous 1.34 (colored)

Implement setre[ug]id() compatibly with 4.3BSD, SunOS, and Linux.

Revision 1.34 / (download) - annotate - [select for diffs], Wed May 22 02:22:47 1996 UTC (16 years ago) by mycroft
Branch: MAIN
Changes since 1.33: +4 -3 lines
Diff to previous 1.33 (colored)

Remove bogus comment in setgid().

Revision 1.33 / (download) - annotate - [select for diffs], Fri Feb 9 18:59:42 1996 UTC (16 years, 3 months ago) by christos
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.32: +1 -3 lines
Diff to previous 1.32 (colored)

More proto fixes

Revision 1.32 / (download) - annotate - [select for diffs], Sun Feb 4 02:15:57 1996 UTC (16 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.31: +30 -7 lines
Diff to previous 1.31 (colored)

First pass at prototyping

Revision 1.31 / (download) - annotate - [select for diffs], Tue Oct 10 01:26:53 1995 UTC (16 years, 7 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1
Changes since 1.30: +6 -4 lines
Diff to previous 1.30 (colored)

Add hooks for COMPAT_FREEBSD, from Noriyuki Soda.

Revision 1.30 / (download) - annotate - [select for diffs], Sat Oct 7 06:28:21 1995 UTC (16 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.29: +35 -35 lines
Diff to previous 1.29 (colored)

Prefix names of system call implementation functions with `sys_'.

Revision 1.29 / (download) - annotate - [select for diffs], Tue Sep 19 21:45:02 1995 UTC (16 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.28: +47 -38 lines
Diff to previous 1.28 (colored)

Make system calls conform to a standard prototype and bring those
prototypes into scope.

Revision 1.28 / (download) - annotate - [select for diffs], Sat Jun 24 20:34:00 1995 UTC (16 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.27: +1 -72 lines
Diff to previous 1.27 (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.27 / (download) - annotate - [select for diffs], Thu Jun 1 22:43:58 1995 UTC (16 years, 11 months ago) by jtc
Branch: MAIN
Changes since 1.26: +6 -6 lines
Diff to previous 1.26 (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.26 / (download) - annotate - [select for diffs], Wed May 10 16:52:53 1995 UTC (17 years ago) by christos
Branch: MAIN
Changes since 1.25: +4 -3 lines
Diff to previous 1.25 (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.25 / (download) - annotate - [select for diffs], Thu Mar 9 12:05:43 1995 UTC (17 years, 2 months ago) by mycroft
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

copy*str() should use size_t.

Revision 1.24 / (download) - annotate - [select for diffs], Wed Mar 8 01:21:30 1995 UTC (17 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

use NULL rather than casted zero

Revision 1.23 / (download) - annotate - [select for diffs], Sun Mar 5 08:52:17 1995 UTC (17 years, 2 months ago) by fvdl
Branch: MAIN
Changes since 1.22: +3 -3 lines
Diff to previous 1.22 (colored)

Extended a couple of defines with "|| defined(COMPAT_LINUX)" to make
things compile without requiring COMPAT_43 and/or COMPAT_09.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Dec 24 14:04:43 1994 UTC (17 years, 5 months ago) by cgd
Branch: MAIN
Changes since 1.21: +2 -1 lines
Diff to previous 1.21 (colored)

as noted by James Jegers, crfree should return void.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Oct 30 21:47:42 1994 UTC (17 years, 6 months ago) by cgd
Branch: MAIN
Changes since 1.20: +9 -9 lines
Diff to previous 1.20 (colored)

be more careful with types, also pull in headers where necessary.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Oct 21 01:12:13 1994 UTC (17 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.19: +3 -3 lines
Diff to previous 1.19 (colored)

Return ppid and euid for COMPAT_IBCS2, too.

Revision 1.19 / (download) - annotate - [select for diffs], Thu Oct 20 04:22:52 1994 UTC (17 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.18: +101 -109 lines
Diff to previous 1.18 (colored)

update for new syscall args description mechanism

Revision 1.16.2.1 / (download) - annotate - [select for diffs], Thu Oct 6 04:23:17 1994 UTC (17 years, 7 months ago) by mycroft
Branch: netbsd-1-0
CVS Tags: netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0
Changes since 1.16: +3 -2 lines
Diff to previous 1.16 (colored) next main 1.17 (colored)

Update from trunk.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Sep 19 07:52:57 1994 UTC (17 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.17: +3 -2 lines
Diff to previous 1.17 (colored)

Require at least one group.

Revision 1.17 / (download) - annotate - [select for diffs], Thu Aug 25 07:13:55 1994 UTC (17 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.16: +41 -25 lines
Diff to previous 1.16 (colored)

emulate setreuid/setregid better.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Jun 29 06:32:38 1994 UTC (17 years, 11 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Changes since 1.15: +3 -2 lines
Diff to previous 1.15 (colored)

New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.15 / (download) - annotate - [select for diffs], Thu May 19 05:57:55 1994 UTC (18 years ago) by cgd
Branch: MAIN
Changes since 1.14: +53 -90 lines
Diff to previous 1.14 (colored)

update to lite

Revision 1.14 / (download) - annotate - [select for diffs], Tue May 17 04:21:57 1994 UTC (18 years ago) by cgd
Branch: MAIN
Changes since 1.13: +621 -1 lines
Diff to previous 1.13 (colored)

copyright foo

Revision 1.13 / (download) - annotate - [select for diffs], Mon May 9 07:40:00 1994 UTC (18 years ago) by cgd
Branch: MAIN
Changes since 1.12: +1 -1 lines
Diff to previous 1.12 (colored)

compat_09 stuff for pid_t's

Revision 1.12 / (download) - annotate - [select for diffs], Wed May 4 03:41:57 1994 UTC (18 years ago) by cgd
Branch: MAIN
Changes since 1.11: +1 -1 lines
Diff to previous 1.11 (colored)

Rename a lot of process flags.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Apr 7 00:40:22 1994 UTC (18 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.10: +1 -1 lines
Diff to previous 1.10 (colored)

SUGID semantics, similar to 4.4BSD

Revision 1.10 / (download) - annotate - [select for diffs], Sat Apr 2 05:17:04 1994 UTC (18 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.9: +1 -1 lines
Diff to previous 1.9 (colored)

gah.  shoot me.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Apr 1 09:52:30 1994 UTC (18 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.8: +1 -1 lines
Diff to previous 1.8 (colored)

some type-changing, simplification, and re-instate casts for phil.

Revision 1.8 / (download) - annotate - [select for diffs], Sun Mar 27 09:08:33 1994 UTC (18 years, 2 months ago) by cgd
Branch: MAIN
Changes since 1.7: +1 -1 lines
Diff to previous 1.7 (colored)

expand uid_t/gid_t/off_t

Revision 1.7 / (download) - annotate - [select for diffs], Sun Jan 23 05:56:27 1994 UTC (18 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +1 -1 lines
Diff to previous 1.6 (colored)

pull in COMPAT_SUNOS stuff from magnum

Revision 1.6 / (download) - annotate - [select for diffs], Sat Dec 18 04:21:01 1993 UTC (18 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.5: +1 -1 lines
Diff to previous 1.5 (colored)

Canonicalize all #includes.

Revision 1.4.4.4 / (download) - annotate - [select for diffs], Sun Nov 14 20:32:04 1993 UTC (18 years, 6 months ago) by mycroft
Branch: magnum
Changes since 1.4.4.3: +1 -1 lines
Diff to previous 1.4.4.3 (colored) to branchpoint 1.4 (colored) next main 1.5 (colored)

Canonicalize all #includes.

Revision 1.4.4.3 / (download) - annotate - [select for diffs], Mon Oct 18 06:46:54 1993 UTC (18 years, 7 months ago) by deraadt
Branch: magnum
Changes since 1.4.4.2: +1 -1 lines
Diff to previous 1.4.4.2 (colored) to branchpoint 1.4 (colored)

#ifdef COMPAT_43
	->
#if defined(COMPAT_43) || defined(COMPAT_SUNOS)
in a few places

Revision 1.4.4.2 / (download) - annotate - [select for diffs], Fri Sep 24 08:51:13 1993 UTC (18 years, 8 months ago) by mycroft
Branch: magnum
Changes since 1.4.4.1: +1 -1 lines
Diff to previous 1.4.4.1 (colored) to branchpoint 1.4 (colored)

Make all files using spl*() #include cpu.h.  Changes from trunk.
init_main.c: New method of pseudo-device of initialization.
kern_clock.c: hardclock() and softclock() now take a pointer to a clockframe.
softclock() only does callouts.
kern_synch.c: Remove spurious declaration of endtsleep().  Adjust uses of
averunnable for new struct loadav.
subr_prf.c: Allow printf() formats in panic().
tty.c: averunnable changes.
vfs_subr.c: va_size and va_bytes are now quads.

Revision 1.4.4.1 / (download) - annotate - [select for diffs], Tue Sep 14 18:24:14 1993 UTC (18 years, 8 months ago) by mycroft
Branch: magnum
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (colored)

init_main.c:  clock changes from 4.4; initclocks() is called after vfsinit().
No startrtclock() or enablertclock().  Some pseudo-device cruft, but this needs
to be updated.
kern_clock.c:  from 4.4: gatherstats() --> statclock().  statclock(),
hardclock(), and softclock() take a `struct clockframe *'.  New initclocks(),
harclock(), statclock(), startprofclock(), and stopprofclock().
kern_synch.c:  from 4.4: machine-independent swtch(), which is now where
process time is integrated.  Calls cpu_swtch() with the current process as an
arg.
subr_autoconf.c:  Fix typo.
subr_prf.c:  msgbufp and msgbufmapped are define in machdep.c
tty.c:  Make TIOCHPCL #ifdef COMPAT_43.
Incorporate changes from main branch.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Sep 9 22:04:00 1993 UTC (18 years, 8 months ago) by phil
Branch: MAIN
CVS Tags: magnum-base
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (colored)

These changes are due to a mismatch with user functions prototyped as
func(short) and the fact the the kernel uses full ints.  This caused
problems on the pc532 port.  These fixes take the good 16 bits passed
by the user program and converts them into the correct form for the
kernel.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Jul 13 22:13:23 1993 UTC (18 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-0-9-patch-001, netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Branch point for: magnum
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored)

break args structs out, into syscallname_args structs, so gcc2 doesn't
whine so much.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Jun 27 06:01:41 1993 UTC (18 years, 11 months ago) by andrew
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

ANSIfications - removed all implicit function return types and argument
definitions.  Ensured that all files include "systm.h" to gain access to
general prototypes.  Casts where necessary.

Revision 1.2 / (download) - annotate - [select for diffs], Thu May 20 02:54:32 1993 UTC (19 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.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (19 years, 2 months ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8, WFJ-386bsd-01
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (19 years, 2 months ago) by cgd
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>