/*
* 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
*/
/*
* Copyright 2014 Garrett D'Amore <garrett@damore.org>
*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _EXEC_ATTR_H
#define _EXEC_ATTR_H
#ifdef __cplusplus
extern "C" {
#endif
#include <secdb.h>
/*
* indices of searchable columns
*/
/*
* Some macros used internally by the nsswitch code
*/
/*
* These macros are bitmasks. GET_ONE and GET_ALL are bitfield 0
* and thus mutually exclusive. __SEARCH_ALL_POLLS is bitfield
* 1 and can be logically ORed with GET_ALL if one wants to get
* all matching profiles from all policies, not just the ones from
* the currently active policy
*
* Testing for these values should be done using the IS_* macros
* defined below.
*/
#define GET_ONE 0
/* get only one exec_attr from list */
/* get all matching exec_attrs in list */
/* search all existing policies */
/*
* Key words used in the exec_attr database
*/
/*
* Nsswitch representation of execution attributes.
*/
typedef struct execstr_s {
} execstr_t;
typedef struct execattr_s {
} execattr_t;
typedef struct __private_execattr {
const char *name;
const char *type;
const char *id;
const char *policy;
int search_flag;
extern execattr_t *getexecattr(void);
extern execattr_t *getexecuser(const char *, const char *, const char *, int);
extern execattr_t *getexecprof(const char *, const char *, const char *, int);
const char *);
extern void free_execattr(execattr_t *);
extern void setexecattr(void);
extern void endexecattr(void);
#ifdef __cplusplus
}
#endif
#endif /* _EXEC_ATTR_H */