diff options
author | Philip Guenthe <guenther@cvs.openbsd.org> | 2009-11-27 20:05:51 +0000 |
---|---|---|
committer | Philip Guenthe <guenther@cvs.openbsd.org> | 2009-11-27 20:05:51 +0000 |
commit | c0d8f7f98402ba0080bf459aeb08b0fa7d1e27f0 (patch) | |
tree | 7aa9e16b867d47d734d65160e15d6ead3fcc95c0 /sys/kern/init_main.c | |
parent | b5b5edebe52f3da6dcc3ebe2ed767d2269c40f6d (diff) |
Add setrdomain() and getrdomain() system calls. Committing now to
catch the libc major bump per request from deraadt@
Diff by reyk.
ok guenther@
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r-- | sys/kern/init_main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 2e0f06f12aa..720c379abf6 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init_main.c,v 1.162 2009/08/11 18:43:33 blambert Exp $ */ +/* $OpenBSD: init_main.c,v 1.163 2009/11/27 20:05:50 guenther Exp $ */ /* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */ /* @@ -314,6 +314,9 @@ main(void *framep) limit0.pl_rlimit[RLIMIT_MEMLOCK].rlim_cur = lim / 3; limit0.p_refcnt = 1; + /* Set the default routing domain. */ + p->p_rdomain = 0; + /* Allocate a prototype map so we have something to fork. */ uvmspace_init(&vmspace0, pmap_kernel(), round_page(VM_MIN_ADDRESS), trunc_page(VM_MAX_ADDRESS), TRUE, TRUE); |