/*
* 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
*/
/*
*/
/*
* svc-auditset - auditset transient service (AUDITSET_FMRI) startup method;
* sets non-/attributable mask in the kernel context.
*/
#include <audit_scf.h>
#include <zone.h>
#include <errno.h>
#include <locale.h>
#include <stdio.h>
#if !defined(SMF_EXIT_ERR_OTHER)
#endif
/*
* update_kcontext() - updates the non-/attributable preselection masks in
* the kernel context. Returns B_TRUE on success, B_FALSE otherwise.
*/
{
(void) printf("Could not update kernel context (%s).\n",
return (B_FALSE);
}
#ifdef DEBUG
(void) printf("svc-auditset: %s mask set to %s",
#endif
return (B_TRUE);
}
int
main(void)
{
char *auditset_fmri;
char *mask_cfg;
(void) textdomain(TEXT_DOMAIN);
/* allow execution only inside the SMF facility */
"inside the SMF facility.\n"));
return (SMF_EXIT_ERR_NOSMF);
}
/* check the c2audit module state */
if (adt_audit_state(AUC_DISABLED)) {
#ifdef DEBUG
(void) printf("c2audit module is excluded from "
"the system(4); kernel won't be updated.\n");
} else {
}
#endif
return (SMF_EXIT_OK);
}
/* check the audit policy */
(void) printf("Could not read audit policy: %s\n",
return (SMF_EXIT_ERR_OTHER);
}
return (SMF_EXIT_OK);
/* update attributable mask */
(void) printf("Could not get configured attributable audit "
"flags.\n");
return (SMF_EXIT_ERR_OTHER);
}
return (SMF_EXIT_ERR_OTHER);
}
/* update non-attributable mask */
(void) printf("Could not get configured non-attributable "
"audit flags.\n");
return (SMF_EXIT_ERR_OTHER);
}
return (SMF_EXIT_ERR_OTHER);
}
return (SMF_EXIT_OK);
}