MCPcopy Create free account
hub / github.com/F-Stack/f-stack / audit_pipe_init

Function audit_pipe_init

freebsd/security/audit/audit_pipe.c:1064–1076  ·  view source on GitHub ↗

* Initialize the audit pipe system. */

Source from the content-addressed store, hash-verified

1062 * Initialize the audit pipe system.
1063 */
1064static void
1065audit_pipe_init(void *unused)
1066{
1067
1068 TAILQ_INIT(&audit_pipe_list);
1069 AUDIT_PIPE_LIST_LOCK_INIT();
1070 audit_pipe_dev = make_dev(&audit_pipe_cdevsw, 0, UID_ROOT,
1071 GID_WHEEL, 0600, "%s", AUDIT_PIPE_NAME);
1072 if (audit_pipe_dev == NULL) {
1073 AUDIT_PIPE_LIST_LOCK_DESTROY();
1074 panic("Can't initialize audit pipe subsystem");
1075 }
1076}
1077
1078SYSINIT(audit_pipe_init, SI_SUB_DRIVERS, SI_ORDER_MIDDLE, audit_pipe_init,
1079 NULL);

Callers

nothing calls this directly

Calls 2

make_devFunction · 0.85
panicFunction · 0.50

Tested by

no test coverage detected