PERFORCE change 84036 for review
Robert Watson
rwatson at FreeBSD.org
Wed Sep 21 09:32:18 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=84036
Change 84036 by rwatson at rwatson_zoo on 2005/09/21 09:31:17
Break out make_dev() call from audit_init() into audit_cdev_init().
We need to initialize the audit event system before we start
creating processes, but we can't create the device node /dev/audit
until after devfs is initialized. Register audit_cdev_init to run
during normal device driver registration.
Affected files ...
.. //depot/projects/trustedbsd/audit3/sys/security/audit/kern_audit.c#29 edit
Differences ...
==== //depot/projects/trustedbsd/audit3/sys/security/audit/kern_audit.c#29 (text+ko) ====
@@ -784,12 +784,20 @@
panic("audit_init: kthread_create returned %d", error);
TAILQ_INIT(&trigger_list);
+}
+
+static void
+audit_cdev_init(void *unused)
+{
+
/* Create the special device file */
audit_dev = make_dev(&audit_cdevsw, 0, UID_ROOT, GID_KMEM, 0600,
AUDITDEV_FILENAME);
}
SYSINIT(audit_init, SI_SUB_AUDIT, SI_ORDER_FIRST, audit_init, NULL)
+SYSINIT(audit_cdev_init, SI_SUB_DRIVERS, SI_ORDER_MIDDLE, audit_cdev_init,
+ NULL)
/*
* audit_rotate_vnode() is called by a user or kernel thread to configure or
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list