/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* 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
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <nss_dbdefs.h>
#include <deflt.h>
#include <exec_attr.h>
#include <user_attr.h>
#include <auth_attr.h>
#include <prof_attr.h>
#include <getxby_door.h>
/* Externs from libnsl */
extern void _setexecattr(void);
extern void _endexecattr(void);
extern execstr_t *_getexecprof(const char *, const char *, const char *, int,
execstr_t *, char *, int, int *);
extern char *_strtok_escape(char *, char *, char **);
extern char *_strdup_null(char *);
static execattr_t *userprof(const char *, const char *, const char *, int);
{
int err = 0;
return (execstr2attr(tmp));
}
{
int err = 0;
return (NULL);
}
setexecattr();
if (IS_GET_ONE(search_flag)) {
head = getexecattr();
} else if (IS_GET_ALL(search_flag)) {
head = getexecattr();
};
} else {
}
endexecattr();
return (head);
}
type,
id,
&exec,
buf,
&err);
return (execstr2attr(tmp));
}
int search_flag)
{
int err = 0;
return (NULL);
}
setuserattr();
/* avoid userstr2attr mallocs by calling libnsl directly */
return (head);
}
if (IS_GET_ONE(search_flag)) {
} else if (IS_GET_ALL(search_flag)) {
}
if ((new =
} else {
}
}
}
} else {
}
enduserattr();
} else {
}
return (head);
}
const char *id)
{
continue;
}
return (execp);
}
void
{
_setexecattr();
}
void
{
_endexecattr();
}
void
{
}
}
typedef struct call {
const char *type;
const char *id;
int sflag;
} call;
typedef struct result {
} result;
/*ARGSUSED*/
static int
{
if (IS_GET_ONE(c->sflag)) {
return (1);
} else if (IS_GET_ALL(c->sflag)) {
} else {
}
}
}
return (0);
}
static execattr_t *
int search_flag)
{
/*
* Check if specified username is valid user
*/
return (NULL);
}
}
static execattr_t *
{
} else {
}
}
}
return (j_exec);
}
static execattr_t *
{
return (NULL);
}
return (NULL);
}
} else {
}
return (newexec);
}
#ifdef DEBUG
void
{
printf("attr=\n");
}
} else {
printf("NULL\n");
}
}
#endif /* DEBUG */