uadmin.c revision 6dcd8691610502af2ca8f336c75f494901008c61
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.
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include <signal.h>
#include <unistd.h>
static int turnoff_auditd(int, int);
static void wait_for_auqueue();
argv[0]);
switch (cmd) {
case A_SHUTDOWN:
case A_REBOOT:
case A_DUMP:
case A_REMOUNT:
case A_FREEZE:
case A_FTRACE:
case A_SWAPCTL:
event_id = 0;
if ((event_id != 0) &&
argv[0]);
switch (fcn) {
case AD_HALT:
case AD_POWEROFF:
case AD_BOOT:
case AD_IBOOT:
case AD_SBOOT:
case AD_SIBOOT:
case AD_NOSYNC:
fcn_id = 0;
switch (fcn) {
case AD_SUSPEND_TO_DISK:
case AD_CHECK_SUSPEND_TO_DISK:
case AD_FORCE:
case AD_SUSPEND_TO_RAM:
case AD_CHECK_SUSPEND_TO_RAM:
case AD_REUSEINIT:
case AD_REUSABLE:
case AD_REUSEFINI:
switch (fcn) {
case AD_FTRACE_START:
case AD_FTRACE_STOP:
if (geteuid() == 0) {
switch (cmd) {
case A_SHUTDOWN:
case A_REBOOT:
case A_DUMP:
case A_REMOUNT:
case A_FREEZE:
case A_FTRACE:
case A_SWAPCTL:
argv[0]);
int rc;
switch (cmd) {
case A_SHUTDOWN:
case A_REBOOT:
case A_DUMP:
case A_REMOUNT:
case A_SWAPCTL:
case A_FTRACE:
case A_FREEZE:
switch (fcn) {
case AD_CHECK_SUSPEND_TO_RAM:
case AD_REUSEINIT:
case AD_REUSEFINI:
case AD_REUSABLE:
case AD_SUSPEND_TO_RAM:
case AD_FORCE:
if (adt_audit_enabled()) {
int auditstate;
sizeof (auditstate)) == 0) &&
retries--;
rc = 0;
return (rc);