au_usermask.c revision f89940742f5d14dde79b69b98a414dd7b7f585c7
/*
* 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 <errno.h>
#include <nss.h>
#include <secdb.h>
#include <stdlib.h>
#include <string.h>
#include <user_attr.h>
#include <zone.h>
#include <adt_xlate.h> /* adt_write_syslog */
/* ARGSUSED */
static int
{
char *val;
}
return (1);
}
return (0);
}
/*
* Build user's audit preselection mask.
*
* per-user audit flags are optional and may be missing.
* If global zone auditing is set, a local zone cannot reduce the default
* flags.
*
* success flags = (system default success flags + per-user always success) -
* per-user never success flags
* failure flags = (system default failure flags + per-user always failure) -
* per-user never failure flags
*/
int
{
char *user_flags = NULL;
return (-1);
}
/*
* Get the system wide default audit flags. If you can't get the
* system wide flags, return an error code now and don't bother
* trying to get the user specific flags.
*/
return (-1);
}
/*
* Get per-user audit flags.
*/
if (user_flags != NULL) {
/* merge default and per-user */
}
return (0);
}