Searched refs:label (Results 26 - 50 of 77) sorted by relevance

1234

/darwin-on-arm/xnu/security/
H A Dmac_vfs.c89 static struct label *
92 struct label *label; local
94 label = mac_labelzone_alloc(MAC_WAITOK);
95 if (label == NULL)
97 MAC_PERFORM(devfs_label_init, label);
98 return (label);
108 static struct label *
111 struct label *label; local
130 struct label *label; local
164 mac_devfs_label_free(struct label *label) argument
180 mac_mount_label_free(struct label *label) argument
197 mac_vnode_label_free(struct label *label) argument
237 mac_vnode_label_externalize(struct label *label, char *elements, char *outbuf, size_t outbuflen, int flags __unused) argument
248 mac_vnode_label_internalize(struct label *label, char *string) argument
258 mac_mount_label_internalize(struct label *label, char *string) argument
268 mac_mount_label_externalize(struct label *label, char *elements, char *outbuf, size_t outbuflen) argument
[all...]
H A Dmac.h180 struct mac *label);
181 int __mac_get_mount(const char *path, struct mac *label);
H A Dmac_base.c159 * Flag to indicate whether or not we should allocate label storage for
164 * be able to deal with a NULL label being returned on any mbufs that
177 * Flag to indicate whether or not we should allocate label storage for
182 * be able to deal with a NULL label being returned on any vnodes that
288 * mac_label_element_list holds the master list of label namespaces for
289 * all the policies. When a policy is loaded, each of it's label namespace
298 * Journal of label operations that occur before policies are loaded.
303 mac_label_journal_add (struct label *l, int type)
320 mac_label_journal_remove (struct label *l)
334 mac_label_journal_find (struct label *
1035 mac_label_init(struct label *label) argument
1043 mac_label_destroy(struct label *label) argument
1089 mac_label_externalize(size_t mpo_externalize_off, struct label *label, const char *element, struct sbuf *sb) argument
1176 mac_externalize(size_t mpo_externalize_off, struct label *label, const char *elementlist, char *outbuf, size_t outbuflen) argument
1230 mac_label_internalize(size_t mpo_internalize_off, struct label *label, char *element_name, char *element_data) argument
1279 mac_internalize(size_t mpo_internalize_off, struct label *label, char *textlabels) argument
2165 struct label *label; local
[all...]
/darwin-on-arm/xnu/bsd/sys/
H A Ducred.h78 struct label;
108 struct label *cr_label; /* MAC label */
111 * added after the label, you must change
H A Dmsg.h258 struct label;
265 struct label *label; /* MAC framework label */ member in struct:msqid_kernel
283 struct label *label; /* MAC label */ member in struct:msg
H A Dpipe.h142 struct label;
163 struct label *pipe_label; /* pipe MAC label - shared */
H A Dsem_internal.h190 struct label *label; /* MAC framework label */ member in struct:semid_kernel
H A Dkauth.h230 struct label;
231 extern kauth_cred_t kauth_cred_label_update(kauth_cred_t cred, struct label *label);
232 extern int kauth_proc_label_update(struct proc *p, struct label *label);
238 extern kauth_cred_t kauth_cred_label_update(kauth_cred_t cred, void *label);
239 extern int kauth_proc_label_update(struct proc *p, void *label);
302 extern int kauth_proc_label_update_execve(struct proc *p, struct vfs_context *ctx, struct vnode *vp, struct label *scriptlabel, struct label *execlabel);
H A Duser.h105 struct label; /* MAC label dummy struct */
249 struct label * uu_label; /* MAC label */
H A Dmount_internal.h88 struct label;
155 struct label *mnt_mntlabel; /* MAC mount label */
156 struct label *mnt_fslabel; /* MAC default fs label */
H A Dvnode_internal.h92 struct label;
193 struct label *v_label; /* MAC security label */
385 void vprint(const char *label, struct vnode *vp);
395 int vn_setlabel (struct vnode *vp, struct label *intlabel,
/darwin-on-arm/xnu/osfmk/ipc/
H A Dipc_labelh.h66 struct label lh_label;
78 kern_return_t labelh_new_user(ipc_space_t, struct label *, mach_port_name_t *);
97 * Check the number of references the label handle has left.
99 * label handle, deallocate the associated port. The
100 * storage space for the label handle will be deallocated
101 * as part of the port destruction. User-allocated label
H A Dipc_labelh.c65 * Create a new label handle in the task described by the specified space.
66 * The specified label is used in the label handle. The associated port
70 labelh_new_user(ipc_space_t space, struct label *inl, mach_port_name_t *namep)
87 * This is different from label handles that reference tasks
106 /* Allocate new label handle, insert port and label. */
124 struct label inl;
141 * This function should be used to allocate label handles
163 * Call with old label handl
[all...]
H A Dipc_object.h214 * Retrieve a label for use in a kernel call that takes a security
215 * label as a parameter. If necessary, io_getlabel acquires internal
219 struct label;
220 extern struct label *io_getlabel (ipc_object_t obj);
/darwin-on-arm/xnu/bsd/net/
H A Dnetsrc.c165 if (policy->label != -1) {
166 nrp.nrp_label = policy->label;
169 nrp.nrp_dstlabel = policy->label;
236 if (policy->label != -1) {
237 nrp.nrp_label = policy->label;
243 if (policy->label != -1) {
244 nrp.nrp_dstlabel = policy->label;
H A Dbpfdesc.h133 struct label * bd_label; /* MAC label for descriptor */
H A Diptap.c58 #define VALID_PACKET(type, label)\
60 goto label; \
64 goto label
/darwin-on-arm/xnu/tools/tests/jitter/
H A Dtimer_jitter.c58 #define assert(truth, label) do { if(!(truth)) { printf("Thread %p: failure on line %d\n", pthread_self(), __LINE__); goto label; } } while (0)
191 print_stats_us(const char *label, double avg, double max, double min, double stddev) argument
193 printf("Max %s: %.1lfus\n", label, max / 1000.0 * (((double)g_mti.numer) / ((double)g_mti.denom)));
194 printf("Min %s: %.1lfus\n", label, min / 1000.0 * (((double)g_mti.numer) / ((double)g_mti.denom)));
195 printf("Avg magnitude of %s: %.1lfus\n", label, avg / 1000.0 * (((double)g_mti.numer) / ((double)g_mti.denom)));
201 print_stats_fract(const char *label, double avg, double max, double min, double stddev) argument
203 printf("Max %s jitter: %.1lf%%\n", label, max * 100);
204 printf("Min %s jitter: %.1lf%%\n", label, min * 100);
205 printf("Avg %s jitter: %.1lf%%\n", label, av
[all...]
/darwin-on-arm/xnu/osfmk/kern/
H A Dsecurity.c76 lh = space->is_task->label;
167 struct label subjl, objl;
211 struct label subjl;
215 struct label *objl;
288 struct label *objl, *subl;
358 struct label *objl, *subl, outl;
H A Dtask.h335 ipc_labelh_t label; member in struct:task
376 #define maclabel label->lh_label
378 #define tasklabel_lock(task) lh_lock((task)->label)
379 #define tasklabel_unlock(task) lh_unlock((task)->label)
H A Dtask.c473 new_task->label = labelh_new(1);
640 labelh_release(task->label);
2510 * both label handles. The locks do not actually have to be held while
2520 labelh_reference(a->label);
2521 labelh_reference(b->label);
2529 labelh_release(a->label);
2530 labelh_release(b->label);
2535 struct label *pl,
2540 task->label = labelh_modify(task->label);
[all...]
/darwin-on-arm/xnu/bsd/netinet6/
H A Din6_src.c414 * Rule 6: Prefer matching label
419 if (dst_policy->label != ADDR_LABEL_NOTAPP) {
421 if (dst_policy->label == best_policy->label &&
422 dst_policy->label != new_policy->label)
424 if (dst_policy->label != best_policy->label &&
425 dst_policy->label == new_policy->label)
[all...]
/darwin-on-arm/xnu/bsd/kern/
H A Dkern_credential.c3882 * kauth_cred_t without a POSIX label. This will be the case in
4103 * Description: Update the MAC label associated with a credential
4106 * label The MAC label to set
4123 kauth_cred_label_update(kauth_cred_t cred, struct label *label) argument
4132 mac_cred_label_update(&temp_cred, label);
4142 * Description: Update the MAC label associated with a credential as
4147 * scriptl The script MAC label
4148 * execl The executable MAC label
4203 kauth_proc_label_update(struct proc *p, struct label *label) argument
4338 kauth_cred_setlabel(kauth_cred_t cred, struct label *label) argument
4345 kauth_proc_setlabel(struct proc *p, struct label *label) argument
4358 kauth_cred_label_update(__unused kauth_cred_t cred, __unused void *label) argument
4364 kauth_proc_label_update(__unused struct proc *p, __unused void *label) argument
4375 kauth_cred_setlabel(__unused kauth_cred_t cred, __unused void *label) argument
4382 kauth_proc_setlabel(__unused struct proc *p, __unused void *label) argument
[all...]
/darwin-on-arm/xnu/EXTERNAL_HEADERS/
H A DAssertMacros.h47 * For instance, require_noerr_string(resultCode, label, msg) will do nothing if
49 * and jump to label.
93 * DEBUG_ASSERT_MESSAGE(component, assertion, label, error, file, line, errorCode)
169 #define DEBUG_ASSERT_MESSAGE(name, assertion, label, message, file, line, value) \
173 #define DEBUG_ASSERT_MESSAGE(name, assertion, label, message, file, line, value) \
615 * The label.
667 * The label.
722 * The label.
750 * The label.
787 * The label
[all...]
/darwin-on-arm/xnu/bsd/netinet/
H A Dip_var.h86 struct label;
104 struct label *ipq_label; /* MAC label */

Completed in 103 milliseconds

1234