Lines Matching defs:label
76 struct label *
79 struct label *label;
81 label = mac_labelzone_alloc(M_WAITOK);
82 MAC_POLICY_PERFORM(cred_init_label, label);
83 return (label);
97 mac_cred_label_free(struct label *label)
100 MAC_POLICY_PERFORM_NOSLEEP(cred_destroy_label, label);
101 mac_labelzone_free(label);
131 * Initialize MAC label for the first kernel process, from which other kernel
142 * Initialize MAC label for the first userland process, from which other
153 mac_cred_externalize_label(struct label *label, char *elements,
158 MAC_POLICY_EXTERNALIZE(cred, label, elements, outbuf, outbuflen);
164 mac_cred_internalize_label(struct label *label, char *string)
168 MAC_POLICY_INTERNALIZE(cred, label, string);
174 * When a new process is created, its label must be initialized. Generally,
187 * When the subject's label changes, it may require revocation of privilege
192 mac_cred_relabel(struct ucred *cred, struct label *newlabel)
199 "struct label *");
202 mac_cred_check_relabel(struct ucred *cred, struct label *newlabel)