2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 1989, 2011, Oracle and/or its affiliates. All rights reserved. 2N/A/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */ 2N/A/* All Rights Reserved */ 2N/A * Portions of this source code were derived from Berkeley 2N/A * 4.3 BSD under license from the Regents of the University of 2N/A * auth_sys.c, Implements UNIX (system) style authentication parameters. 2N/A * The system is very weak. The client uses no encryption for its 2N/A * credentials and only sends null verifiers. The server sends backs 2N/A * null verifiers or optionally a verifier that suggests a new short hand 2N/A * for the credentials. 2N/A * This struct is pointed to by the ah_private field of an auth_handle. 2N/A * Create a (sys) unix style authenticator. 2N/A * Returns an auth handle with the given stuff in it. 2N/A * Allocate and set up auth handle 2N/A * fill in param struct from the given params 2N/A * Serialize the parameters into origcred 2N/A ": xdr_authsys_parms failed");
2N/A * set auth handle to reflect new cred. 2N/A * authsys_create_default is a public interface. 2N/A * Returns an auth handle with parameters determined by doing lots of 2N/A "authsys_create_default: get%s failed: %m";
2N/A * authsys_create_ruid() is a private routine and is a 2N/A * variant of authsys_create_default(). 2N/A * authsys_create_default() is using the effective uid. 2N/A * authsys_create_ruid() is using the real uid. 2N/A "authsys_create_ruid:gethostname failed");
2N/A "authsys_create_ruid:getgroups failed");
2N/A * authsys operations 2N/A /* no action necessary */ 2N/A/* LINTED pointer alignment */ 2N/A/* LINTED pointer alignment */ 2N/A/* LINTED pointer alignment */ 2N/A return (
FALSE);
/* there is no hope. Punt */ 2N/A /* first deserialize the creds back into a struct authsys_parms */ 2N/A /* update the time and serialize in place */ 2N/A /* free the struct authsys_parms created by deserializing */ 2N/A/* LINTED pointer alignment */ 2N/A * Marshals (pre-serializes) an auth struct. 2N/A * sets private data, au_marshed and au_mpos 2N/A "marshal_new_auth - Fatal marshalling problem";
2N/A/* LINTED pointer alignment */ 2N/A /* VARIABLES PROTECTED BY ops_lock: ops */