summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rpc.lockd
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-08-15 21:52:22 +0000
committeralfred <alfred@FreeBSD.org>2002-08-15 21:52:22 +0000
commit6d7e27acebf039aa472ab2df41baa447cae9e1cc (patch)
tree395ed6420f6be62e72b3bf181d1b5e4bfbb1e8fa /usr.sbin/rpc.lockd
parent0684d0ba09247ef783f59da1a02483563fb16490 (diff)
downloadFreeBSD-src-6d7e27acebf039aa472ab2df41baa447cae9e1cc.zip
FreeBSD-src-6d7e27acebf039aa472ab2df41baa447cae9e1cc.tar.gz
Remove a case of exposing 'struct ucred' to userspace. Use a struct xucred
for LOCKD_MSG instead. Requested by: rwatson
Diffstat (limited to 'usr.sbin/rpc.lockd')
-rw-r--r--usr.sbin/rpc.lockd/kern.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/rpc.lockd/kern.c b/usr.sbin/rpc.lockd/kern.c
index 5eb9413..2576258 100644
--- a/usr.sbin/rpc.lockd/kern.c
+++ b/usr.sbin/rpc.lockd/kern.c
@@ -74,7 +74,7 @@ static OWNER owner;
static char hostname[MAXHOSTNAMELEN + 1]; /* Hostname. */
static void client_cleanup(void);
-static void set_auth(CLIENT *cl, struct ucred *ucred);
+static void set_auth(CLIENT *cl, struct xucred *ucred);
int lock_request(LOCKD_MSG *);
int test_request(LOCKD_MSG *);
void show(LOCKD_MSG *);
@@ -238,17 +238,17 @@ err:
}
void
-set_auth(cl, ucred)
+set_auth(cl, xucred)
CLIENT *cl;
- struct ucred *ucred;
+ struct xucred *xucred;
{
if (cl->cl_auth != NULL)
cl->cl_auth->ah_ops->ah_destroy(cl->cl_auth);
cl->cl_auth = authunix_create(hostname,
- ucred->cr_uid,
- ucred->cr_groups[0],
- ucred->cr_ngroups-1,
- &ucred->cr_groups[1]);
+ xucred->cr_uid,
+ xucred->cr_groups[0],
+ xucred->cr_ngroups - 1,
+ &xucred->cr_groups[1]);
}
OpenPOWER on IntegriCloud