/*
* 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
*/
/*
*/
/*
* helper functions for updating active audit settings with the configured
* values
*/
#include <audit_scf.h>
#include <audit_scf_to_kernel.h>
/*
* scf_to_kernel_flags() - update the default user preselection mask
*/
{
char *cmask;
"user preselection mask.");
return (B_FALSE);
}
"the default user preselection mask.");
return (B_FALSE);
}
return (B_TRUE);
}
/*
* scf_to_kernel_naflags() - update the active non-attributable audit mask
*/
{
char *cmask;
"non-attributable audit mask.");
return (B_FALSE);
}
"the non-attributable audit mask.");
return (B_FALSE);
}
return (B_TRUE);
}
/*
* scf_to_kernel_policy() - update the audit service policies
*/
{
if (!do_getpolicy_scf(&policy)) {
"configuration from the SMF repository.");
return (B_FALSE);
}
"settings.");
return (B_FALSE);
}
return (B_TRUE);
}
/*
*/
{
if (!do_getqctrl_scf(&cfg_qctrl)) {
"parameters from the SMF repository.");
return (B_FALSE);
}
/* overwrite the default (zeros) from the qctrl configuration */
if (cfg_qctrl.aq_hiwater == 0) {
}
if (cfg_qctrl.aq_lowater == 0) {
}
}
}
"Could not configure audit queue controls.");
return (B_FALSE);
}
return (B_TRUE);
}