Lines Matching defs:mlj
306 struct mac_label_journal *mlj;
311 MALLOC(mlj, struct mac_label_journal *,
313 mlj->l = l;
314 mlj->type = type;
315 TAILQ_INSERT_TAIL(&mac_label_journal_list, mlj, link);
323 struct mac_label_journal *mlj;
325 mlj = mac_label_journal_find(l);
326 if (mlj == NULL)
329 TAILQ_REMOVE(&mac_label_journal_list, mlj, link);
330 FREE(mlj, M_MACTEMP);
337 struct mac_label_journal *mlj;
339 TAILQ_FOREACH(mlj, &mac_label_journal_list, link) {
340 if (l == mlj->l)
341 return (mlj);
350 struct mac_label_journal *mlj;
353 mlj = mac_label_journal_find(l);
354 if (mlj == NULL) {
361 mlj->kotype = va_arg(ap, int);
365 mlj->ops |= op;
376 struct mac_label_journal *mlj;
378 TAILQ_FOREACH(mlj, &mac_label_journal_list, link) {
379 switch (mlj->type) {
381 if (mlj->ops & MLJ_PORT_OP_INIT)
382 MAC_PERFORM(port_label_init, mlj->l);
383 if (mlj->ops & MLJ_PORT_OP_CREATE_K)
384 MAC_PERFORM(port_label_associate_kernel, mlj->l, 0);
385 if (mlj->ops & MLJ_PORT_OP_UPDATE)
386 MAC_PERFORM(port_label_update_kobject, mlj->l,
387 mlj->kotype);
390 if (mlj->ops & MLJ_TASK_OP_INIT)
391 MAC_PERFORM(task_label_init, mlj->l);
394 if (mlj->ops & MLJ_TASK_OP_CREATE_K)
405 mlj = TAILQ_FIRST(&mac_label_journal_list);
406 TAILQ_REMOVE(&mac_label_journal_list, mlj, link);
407 FREE(mlj, M_MACTEMP);