diff options
author | nn35248 <none@none> | 2006-09-11 22:51:59 -0700 |
---|---|---|
committer | nn35248 <none@none> | 2006-09-11 22:51:59 -0700 |
commit | 9acbbeaf2a1ffe5c14b244867d427714fab43c5c (patch) | |
tree | d1ecd54896325c19a463220e9cbc50864874fc82 /usr/src/lib/libnsl/rpc/svc.c | |
parent | da51466dc253d7c98dda4956059042bd0c476328 (diff) | |
download | illumos-joyent-9acbbeaf2a1ffe5c14b244867d427714fab43c5c.tar.gz |
PSARC/2005/471 BrandZ: Support for non-native zones
6374606 ::nm -D without an object may not work on processes in zones
6409350 BrandZ project integration into Solaris
6455289 pthread_setschedparam() should return EPERM rather than panic libc
6455591 setpriority(3C) gets errno wrong for deficient privileges failure
6458178 fifofs doesn't support lofs mounts of fifos
6460380 Attempted open() of a symlink with the O_NOFOLLOW flag set returns EINVAL, not ELOOP
6463857 renice(1) errors erroneously
--HG--
rename : usr/src/lib/libzonecfg/zones/SUNWblank.xml => usr/src/lib/brand/native/zone/SUNWblank.xml
rename : usr/src/lib/libzonecfg/zones/SUNWdefault.xml => usr/src/lib/brand/native/zone/SUNWdefault.xml
Diffstat (limited to 'usr/src/lib/libnsl/rpc/svc.c')
-rw-r--r-- | usr/src/lib/libnsl/rpc/svc.c | 26 |
1 files changed, 19 insertions, 7 deletions
diff --git a/usr/src/lib/libnsl/rpc/svc.c b/usr/src/lib/libnsl/rpc/svc.c index 228bd29774..d188d5d713 100644 --- a/usr/src/lib/libnsl/rpc/svc.c +++ b/usr/src/lib/libnsl/rpc/svc.c @@ -2,9 +2,8 @@ * CDDL HEADER START * * The contents of this file are subject to the terms of the - * Common Development and Distribution License, Version 1.0 only - * (the "License"). You may not use this file except in compliance - * with the License. + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. * * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE * or http://www.opensolaris.org/os/licensing. @@ -21,7 +20,7 @@ */ /* - * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* @@ -69,6 +68,11 @@ extern bool_t __svc_get_door_cred(); extern bool_t __rpc_get_local_cred(); +extern int use_portmapper; +extern bool_t __pmap_set(const rpcprog_t, const rpcvers_t, + const struct netconfig *, const struct netbuf *); +extern bool_t __pmap_unset(const rpcprog_t, const rpcvers_t); + SVCXPRT **svc_xports; static int nsvc_xports; /* total number of svc_xports allocated */ @@ -921,10 +925,15 @@ svc_reg(const SVCXPRT *xprt, const rpcprog_t prog, const rpcvers_t vers, rpcb_it: (void) rw_unlock(&svc_lock); + if (!nconf) + return (TRUE); + /* now register the information with the local binder service */ - if (nconf) + if (!use_portmapper) return (rpcb_set(prog, vers, nconf, &xprt->xp_ltaddr)); - return (TRUE); + else + return (__pmap_set(prog, vers, nconf, &xprt->xp_ltaddr)); + /*NOTREACHED*/ } /* @@ -937,7 +946,10 @@ svc_unreg(const rpcprog_t prog, const rpcvers_t vers) struct svc_callout *s; /* unregister the information anyway */ - (void) rpcb_unset(prog, vers, NULL); + if (!use_portmapper) + (void) rpcb_unset(prog, vers, NULL); + else + (void) __pmap_unset(prog, vers); (void) rw_wrlock(&svc_lock); while ((s = svc_find(prog, vers, &prev, NULL)) != NULL_SVC) { if (prev == NULL_SVC) { |