audit_scf.c revision f89940742f5d14dde79b69b98a414dd7b7f585c7
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A#include <audit_scf.h>
2N/A#include <audit_policy.h>
errno = 0;
if (errno)
prt_scf_err(void)
* get_/set_val_scf(). The first argument (vector) points to particular position
static boolean_t
* For documentation on property vectors see <libscf_priv.h>.
prt_scf_err();
return (B_FALSE);
return (B_TRUE);
static boolean_t
/* for documentation on property vectors see <libscf_priv.h> */
prt_scf_err();
return (B_FALSE);
return (B_TRUE);
free_prop_vect(void)
static boolean_t
return (B_FALSE);
return (B_TRUE);
static boolean_t
int len = 0;
attr_string[0] = 0;
attr_buf[0] = 0;
prt_scf_err();
return (B_FALSE);
prt_scf_err();
return (B_FALSE);
prt_scf_err();
return (B_FALSE);
switch (prop_type) {
case SCF_TYPE_BOOLEAN: {
prt_scf_err();
return (B_FALSE);
key_buf);
return (B_FALSE);
return (B_FALSE);
case SCF_TYPE_ASTRING: {
prt_scf_err();
return (B_FALSE);
key_buf);
return (B_FALSE);
return (B_FALSE);
case SCF_TYPE_COUNT: {
prt_scf_err();
return (B_FALSE);
key_buf);
return (B_FALSE);
return (B_FALSE);
return (B_FALSE);
return (B_TRUE);
static boolean_t
prt_scf_err();
return (B_FALSE);
prt_scf_err();
return (B_FALSE);
if ((node =
return (B_FALSE);
prt_scf_err();
return (B_FALSE);
return (B_FALSE);
#if DEBUG
return (B_TRUE);
prt_scf_err();
static boolean_t
goto err_out;
goto err_out;
goto err_out;
goto err_out;
return (B_TRUE);
prt_scf_err();
return (B_FALSE);
static boolean_t
goto err_out;
goto err_out;
goto err_out;
return (B_TRUE);
prt_scf_err();
return (B_FALSE);
static boolean_t
return (B_FALSE);
return (B_FALSE);
return (B_TRUE);
return (B_FALSE);
return (B_TRUE);
return (B_FALSE);
return (B_TRUE);
return (B_FALSE);
return (B_TRUE);
&cval_l);
return (B_FALSE);
return (B_TRUE);
&cval_l);
return (B_FALSE);
return (B_TRUE);
char *cur_policy_str;
for (i = 0; i < POLICY_TBL_SZ; i++) {
return (B_FALSE);
*policy_mask = 0;
return (B_TRUE);
char *cur_policy_str;
for (i = 0; i < POLICY_TBL_SZ; i++) {
return (B_FALSE);
return (B_FALSE);
return (B_FALSE);
return (B_FALSE);
return (B_FALSE);
return (B_FALSE);
return (B_FALSE);
if (cval_lowater == 0) {
return (B_FALSE);
&cval_l);
return (B_FALSE);
if (cval_hiwater == 0) {
return (B_FALSE);
&cval_l);
flags);
return (B_FALSE);
return (B_TRUE);
naflags);
return (B_FALSE);
return (B_TRUE);
flags);
naflags);
return (B_FALSE);
return (B_FALSE);
return (B_TRUE);
char *asi_fmri;
return (B_FALSE);
return (B_FALSE);
return (B_FALSE);
prt_scf_err();
return (B_FALSE);
return (B_FALSE);
if (plugin_all) {
return (rv);
int cnt = 0;
cnt = 0;
return (B_FALSE);
&plugin_state);
while (cnt) {
cnt--;
data++;
goto err_out;
prt_scf_err();
goto err_out;
prt_scf_err();
goto err_out;
switch (plugin_prop_type) {
case SCF_TYPE_BOOLEAN: {
goto err_out;
case SCF_TYPE_ASTRING: {
char *pval_str;
goto err_out;
case SCF_TYPE_COUNT: {
goto err_out;
data++;
cnt--;
goto err_out;
return (rval);
for (i = 0; i < POLICY_TBL_SZ; i++) {