]> git.saurik.com Git - apple/system_cmds.git/blobdiff - mach_init.tproj/lists.c
system_cmds-279.6.tar.gz
[apple/system_cmds.git] / mach_init.tproj / lists.c
index 92bb29ccf7306a539f6c0366600b2fe0682acb8e..646fe835f03d809efe7ab8eccada0048c65c88d8 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999-2003 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 1999-2004 Apple Computer, Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
@@ -35,6 +35,8 @@
 #import <stdlib.h>
 #import <string.h>
 
+#import <bsm/audit.h>
+
 #import "bootstrap_internal.h"
 #import "lists.h"
 #import "error_log.h"
@@ -75,7 +77,8 @@ new_server(
        bootstrap_info_t        *bootstrap,
        const char              *cmd,
        int                     uid,
-       servertype_t            servertype)
+       servertype_t            servertype,
+       auditinfo_t             auinfo)
 {
        server_t *serverp;
 
@@ -93,7 +96,9 @@ new_server(
 
                serverp->pid = NO_PID;
                serverp->task_port = MACH_PORT_NULL;
+
                serverp->uid = uid;
+               serverp->auinfo = auinfo;
 
                serverp->port = MACH_PORT_NULL;
                serverp->servertype = servertype;
@@ -250,9 +255,6 @@ delete_service(service_t *servicep)
                mach_port_mod_refs(mach_task_self(), servicep->port,
                                   MACH_PORT_RIGHT_RECEIVE, -1);
                break;
-       case SELF:
-               error("Self service %s now unavailable", servicep->name);
-               break;
        default:
                error("unknown service type %d\n", servicep->servicetype);
                break;