summaryrefslogtreecommitdiff
path: root/lib/libc/rpc/rpcauth.3
diff options
context:
space:
mode:
authorAlexander von Gernler <grunk@cvs.openbsd.org>2006-11-10 17:29:32 +0000
committerAlexander von Gernler <grunk@cvs.openbsd.org>2006-11-10 17:29:32 +0000
commit81274da29dee0f0b7cf2de64db1b1c2a3428f3d7 (patch)
tree650631666db4f5e4b96bcf10c1c412797c74fd98 /lib/libc/rpc/rpcauth.3
parentce3eff3e5981dfaf68c27ee50d59fb6721b42f7f (diff)
add void set_rpc_maxgrouplist(int), to be able to make mount_nfs -g
working again. help from millert@, ok deraadt@ pedro@
Diffstat (limited to 'lib/libc/rpc/rpcauth.3')
-rw-r--r--lib/libc/rpc/rpcauth.313
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/libc/rpc/rpcauth.3 b/lib/libc/rpc/rpcauth.3
index cd61a25932c..a26fb2372b8 100644
--- a/lib/libc/rpc/rpcauth.3
+++ b/lib/libc/rpc/rpcauth.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: rpcauth.3,v 1.11 2003/08/08 09:26:02 jmc Exp $
+.\" $OpenBSD: rpcauth.3,v 1.12 2006/11/10 17:29:31 grunk Exp $
.\" Mostly converted to mandoc by Theo de Raadt, Tue Feb 24 04:04:46 MST 1998
.\"
.\" Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -47,6 +47,8 @@
.Fn authunix_create "char *host" "int uid" "int gid" "int len" "int *aup.gids"
.Ft AUTH *
.Fn authunix_create_default "void"
+.Ft void
+.Fn set_rpc_maxgrouplist "int num"
.Sh DESCRIPTION
These routines establish authentication information for use by the
RPC functions described in
@@ -93,6 +95,15 @@ It is easy to impersonate a user.
calls
.Fn authunix_create
with the appropriate parameters.
+.Pp
+.Fn set_rpc_maxgrouplist
+allows the application to set the maximum size of the group list that
+will be used in
+.Fn authunix_create_default
+to
+.Fa num .
+Some servers will refuse mounts if the group list is larger than it
+expects (like 8).
.Sh SEE ALSO
.\"Xr rpc_secure 3 ,
.Xr rpcgen 1 ,