Home | History | Annotate | Download | only in secmodel

Lines Matching refs:sm

76 	secmodel_t sm;
78 sm = kmem_alloc(sizeof(*sm), KM_SLEEP);
80 sm->sm_id = id;
81 sm->sm_name = name;
82 sm->sm_behavior = behavior;
83 sm->sm_eval = eval;
84 sm->sm_setinfo = setinfo;
86 err = secmodel_plug(sm);
90 kmem_free(sm, sizeof(*sm));
91 sm = NULL;
94 *secmodel = sm;
102 secmodel_deregister(secmodel_t sm)
106 error = secmodel_unplug(sm);
109 kmem_free(sm, sizeof(*sm));
143 secmodel_adjust_behavior(secmodel_t sm, bool added)
160 r = prop_dictionary_get_bool(sm->sm_behavior, "copy-cred-on-fork", &b);
169 secmodel_plug(secmodel_t sm)
174 if (sm == NULL)
179 tsm = secmodel_lookup(sm->sm_id);
186 LIST_INSERT_HEAD(&secmodels, sm, sm_list);
189 secmodel_adjust_behavior(sm, true);
199 secmodel_unplug(secmodel_t sm)
204 if (sm == NULL)
209 tsm = secmodel_lookup(sm->sm_id);
239 secmodel_t sm;
243 sm = secmodel_lookup(id);
244 if (sm == NULL) {
249 if (sm->sm_eval == NULL) {
259 error = sm->sm_eval(what, arg, ret);