• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/security/mac/

Lines Matching refs:label

82 struct label;
124 struct label *dlabel, struct ifnet *ifp,
125 struct label *ifplabel);
127 struct bpf_d *d, struct label *dlabel);
129 struct label *dlabel, struct mbuf *m,
130 struct label *mlabel);
131 typedef void (*mpo_bpfdesc_destroy_label_t)(struct label *label);
132 typedef void (*mpo_bpfdesc_init_label_t)(struct label *label);
136 struct label *newlabel);
158 typedef void (*mpo_cred_copy_label_t)(struct label *src,
159 struct label *dest);
162 typedef void (*mpo_cred_destroy_label_t)(struct label *label);
163 typedef int (*mpo_cred_externalize_label_t)(struct label *label,
165 typedef void (*mpo_cred_init_label_t)(struct label *label);
166 typedef int (*mpo_cred_internalize_label_t)(struct label *label,
169 struct label *newlabel);
173 struct devfs_dirent *de, struct label *delabel);
176 struct label *delabel);
179 struct label *ddlabel, struct devfs_dirent *de,
180 struct label *delabel);
181 typedef void (*mpo_devfs_destroy_label_t)(struct label *label);
182 typedef void (*mpo_devfs_init_label_t)(struct label *label);
184 struct devfs_dirent *de, struct label *delabel,
185 struct vnode *vp, struct label *vplabel);
187 struct label *mplabel, struct devfs_dirent *de,
188 struct label *delabel, struct vnode *vp,
189 struct label *vplabel);
192 struct ifnet *ifp, struct label *ifplabel,
193 struct label *newlabel);
195 struct label *ifplabel, struct mbuf *m,
196 struct label *mlabel);
197 typedef void (*mpo_ifnet_copy_label_t)(struct label *src,
198 struct label *dest);
200 struct label *ifplabel);
202 struct label *ifplabel, struct mbuf *m,
203 struct label *mlabel);
204 typedef void (*mpo_ifnet_destroy_label_t)(struct label *label);
205 typedef int (*mpo_ifnet_externalize_label_t)(struct label *label,
207 typedef void (*mpo_ifnet_init_label_t)(struct label *label);
208 typedef int (*mpo_ifnet_internalize_label_t)(struct label *label,
211 struct label *ifplabel, struct label *newlabel);
214 struct label *inplabel, struct mbuf *m,
215 struct label *mlabel);
217 struct inpcb *inp, struct label *inplabel);
219 struct label *solabel, struct inpcb *inp,
220 struct label *inplabel);
222 struct label *inplabel, struct mbuf *m,
223 struct label *mlabel);
224 typedef void (*mpo_inpcb_destroy_label_t)(struct label *label);
225 typedef int (*mpo_inpcb_init_label_t)(struct label *label, int flag);
227 struct label *label, struct inpcb *inp,
228 struct label *inplabel);
230 typedef void (*mpo_ip6q_create_t)(struct mbuf *m, struct label *mlabel,
231 struct ip6q *q6, struct label *q6label);
232 typedef void (*mpo_ip6q_destroy_label_t)(struct label *label);
233 typedef int (*mpo_ip6q_init_label_t)(struct label *label, int flag);
234 typedef int (*mpo_ip6q_match_t)(struct mbuf *m, struct label *mlabel,
235 struct ip6q *q6, struct label *q6label);
236 typedef void (*mpo_ip6q_reassemble)(struct ip6q *q6, struct label *q6label,
237 struct mbuf *m, struct label *mlabel);
238 typedef void (*mpo_ip6q_update_t)(struct mbuf *m, struct label *mlabel,
239 struct ip6q *q6, struct label *q6label);
241 typedef void (*mpo_ipq_create_t)(struct mbuf *m, struct label *mlabel,
242 struct ipq *q, struct label *qlabel);
243 typedef void (*mpo_ipq_destroy_label_t)(struct label *label);
244 typedef int (*mpo_ipq_init_label_t)(struct label *label, int flag);
245 typedef int (*mpo_ipq_match_t)(struct mbuf *m, struct label *mlabel,
246 struct ipq *q, struct label *qlabel);
247 typedef void (*mpo_ipq_reassemble)(struct ipq *q, struct label *qlabel,
248 struct mbuf *m, struct label *mlabel);
249 typedef void (*mpo_ipq_update_t)(struct mbuf *m, struct label *mlabel,
250 struct ipq *q, struct label *qlabel);
259 struct label *vplabel);
262 typedef void (*mpo_mbuf_copy_label_t)(struct label *src,
263 struct label *dest);
264 typedef void (*mpo_mbuf_destroy_label_t)(struct label *label);
265 typedef int (*mpo_mbuf_init_label_t)(struct label *label, int flag);
268 struct mount *mp, struct label *mplabel);
270 struct label *mplabel);
271 typedef void (*mpo_mount_destroy_label_t)(struct label *label);
272 typedef void (*mpo_mount_init_label_t)(struct label *label);
275 struct label *ifplabel, struct mbuf *m,
276 struct label *mlabel);
278 struct label *mrecvlabel, struct mbuf *msend,
279 struct label *msendlabel);
281 struct label *mlabel);
283 struct label *mlabel, struct mbuf *frag,
284 struct label *fraglabel);
286 struct label *mrecvlabel, struct mbuf *msend,
287 struct label *msendlabel);
289 struct label *mlabel);
291 struct label *ifplabel, struct mbuf *m,
292 struct label *mlabel);
294 struct label *mlabel);
297 struct label *ifplabel, struct mbuf *m,
298 struct label *mlabel);
301 struct pipepair *pp, struct label *pplabel,
304 struct pipepair *pp, struct label *pplabel);
306 struct pipepair *pp, struct label *pplabel);
308 struct pipepair *pp, struct label *pplabel,
309 struct label *newlabel);
311 struct pipepair *pp, struct label *pplabel);
313 struct pipepair *pp, struct label *pplabel);
314 typedef void (*mpo_pipe_copy_label_t)(struct label *src,
315 struct label *dest);
317 struct label *pplabel);
318 typedef void (*mpo_pipe_destroy_label_t)(struct label *label);
319 typedef int (*mpo_pipe_externalize_label_t)(struct label *label,
321 typedef void (*mpo_pipe_init_label_t)(struct label *label);
322 typedef int (*mpo_pipe_internalize_label_t)(struct label *label,
325 struct label *oldlabel, struct label *newlabel);
329 struct label *kslabel);
331 struct ksem *ks, struct label *kslabel);
334 struct label *kslabel);
336 struct ksem *ks, struct label *shmlabel,
339 struct ksem *ks, struct label *shmlabel,
343 struct label *kslabel);
345 struct ksem *ks, struct label *kslabel);
348 struct label *kslabel);
350 struct ksem *ks, struct label *kslabel);
351 typedef void (*mpo_posixsem_destroy_label_t)(struct label *label);
352 typedef void (*mpo_posixsem_init_label_t)(struct label *label);
357 struct shmfd *shmfd, struct label *shmlabel, int prot,
360 struct shmfd *shmfd, struct label *shmlabel,
364 struct label *shmlabel);
366 struct shmfd *shmfd, struct label *shmlabel,
369 struct shmfd *shmfd, struct label *shmlabel,
373 struct label *shmlabel);
376 struct label *shmlabel);
378 struct shmfd *shmfd, struct label *shmlabel);
381 struct label *shmlabel);
383 struct shmfd *shmfd, struct label *shmlabel);
384 typedef void (*mpo_posixshm_destroy_label_t)(struct label *label);
385 typedef void (*mpo_posixshm_init_label_t)(struct label *label);
398 typedef void (*mpo_proc_destroy_label_t)(struct label *label);
399 typedef void (*mpo_proc_init_label_t)(struct label *label);
402 struct socket *so, struct label *solabel);
404 struct socket *so, struct label *solabel,
407 struct socket *so, struct label *solabel,
412 struct label *solabel, struct mbuf *m,
413 struct label *mlabel);
415 struct socket *so, struct label *solabel);
417 struct socket *so, struct label *solabel);
419 struct socket *so, struct label *solabel);
421 struct socket *so, struct label *solabel,
422 struct label *newlabel);
424 struct socket *so, struct label *solabel);
426 struct socket *so, struct label *solabel);
428 struct socket *so, struct label *solabel);
429 typedef void (*mpo_socket_copy_label_t)(struct label *src,
430 struct label *dest);
432 struct label *solabel);
434 struct label *solabel, struct mbuf *m,
435 struct label *mlabel);
436 typedef void (*mpo_socket_destroy_label_t)(struct label *label);
437 typedef int (*mpo_socket_externalize_label_t)(struct label *label,
439 typedef int (*mpo_socket_init_label_t)(struct label *label, int flag);
440 typedef int (*mpo_socket_internalize_label_t)(struct label *label,
443 struct label *oldsolabel, struct socket *newso,
444 struct label *newsolabel);
446 struct label *oldlabel, struct label *newlabel);
448 typedef void (*mpo_socketpeer_destroy_label_t)(struct label *label);
449 typedef int (*mpo_socketpeer_externalize_label_t)(struct label *label,
451 typedef int (*mpo_socketpeer_init_label_t)(struct label *label,
454 struct label *mlabel, struct socket *so,
455 struct label *sopeerlabel);
457 struct label *oldsolabel, struct socket *newso,
458 struct label *newsopeerlabel);
460 typedef void (*mpo_syncache_create_t)(struct label *label,
462 typedef void (*mpo_syncache_create_mbuf_t)(struct label *sc_label,
463 struct mbuf *m, struct label *mlabel);
464 typedef void (*mpo_syncache_destroy_label_t)(struct label *label);
465 typedef int (*mpo_syncache_init_label_t)(struct label *label, int flag);
468 struct vnode *vp, struct label *vplabel);
472 struct vnode *vp, struct label *vplabel);
476 struct vnode *vp, struct label *vplabel);
478 struct vnode *vp, struct label *vplabel);
483 typedef void (*mpo_sysvmsg_cleanup_t)(struct label *msglabel);
485 struct msqid_kernel *msqkptr, struct label *msqlabel,
486 struct msg *msgptr, struct label *msglabel);
487 typedef void (*mpo_sysvmsg_destroy_label_t)(struct label *label);
488 typedef void (*mpo_sysvmsg_init_label_t)(struct label *label);
491 struct msg *msgptr, struct label *msglabel,
492 struct msqid_kernel *msqkptr, struct label *msqklabel);
494 struct msg *msgptr, struct label *msglabel);
496 struct msg *msgptr, struct label *msglabel);
498 struct msqid_kernel *msqkptr, struct label *msqklabel);
500 struct msqid_kernel *msqkptr, struct label *msqklabel,
503 struct msqid_kernel *msqkptr, struct label *msqklabel);
505 struct msqid_kernel *msqkptr, struct label *msqklabel);
506 typedef void (*mpo_sysvmsq_cleanup_t)(struct label *msqlabel);
508 struct msqid_kernel *msqkptr, struct label *msqlabel);
509 typedef void (*mpo_sysvmsq_destroy_label_t)(struct label *label);
510 typedef void (*mpo_sysvmsq_init_label_t)(struct label *label);
513 struct semid_kernel *semakptr, struct label *semaklabel,
516 struct semid_kernel *semakptr, struct label *semaklabel);
518 struct semid_kernel *semakptr, struct label *semaklabel,
520 typedef void (*mpo_sysvsem_cleanup_t)(struct label *semalabel);
522 struct semid_kernel *semakptr, struct label *semalabel);
523 typedef void (*mpo_sysvsem_destroy_label_t)(struct label *label);
524 typedef void (*mpo_sysvsem_init_label_t)(struct label *label);
528 struct label *shmseglabel, int shmflg);
531 struct label *shmseglabel, int cmd);
534 struct label *shmseglabel);
537 struct label *shmseglabel, int shmflg);
538 typedef void (*mpo_sysvshm_cleanup_t)(struct label *shmlabel);
540 struct shmid_kernel *shmsegptr, struct label *shmlabel);
541 typedef void (*mpo_sysvshm_destroy_label_t)(struct label *label);
542 typedef void (*mpo_sysvshm_init_label_t)(struct label *label);
547 struct label *mplabel, struct vnode *vp,
548 struct label *vplabel);
550 struct label *mplabel, struct vnode *vp,
551 struct label *vplabel);
553 struct vnode *vp, struct label *vplabel,
556 struct vnode *dvp, struct label *dvplabel);
558 struct vnode *dvp, struct label *dvplabel);
560 struct vnode *dvp, struct label *dvplabel,
563 struct vnode *vp, struct label *vplabel,
566 struct vnode *vp, struct label *vplabel,
569 struct vnode *vp, struct label *vplabel,
570 struct image_params *imgp, struct label *execlabel);
572 struct vnode *vp, struct label *vplabel,
575 struct vnode *vp, struct label *vplabel,
578 struct vnode *dvp, struct label *dvplabel,
579 struct vnode *vp, struct label *vplabel,
582 struct vnode *vp, struct label *vplabel,
585 struct vnode *dvp, struct label *dvplabel,
588 struct vnode *vp, struct label *label, int prot,
591 struct vnode *vp, struct label *vplabel, int *prot);
593 struct vnode *vp, struct label *vplabel, int prot);
595 struct vnode *vp, struct label *vplabel,
599 struct label *vplabel);
602 struct label *vplabel);
604 struct vnode *dvp, struct label *dvplabel);
606 struct vnode *vp, struct label *vplabel);
608 struct vnode *vp, struct label *vplabel,
609 struct label *newlabel);
611 struct vnode *dvp, struct label *dvplabel,
612 struct vnode *vp, struct label *vplabel,
615 struct vnode *dvp, struct label *dvplabel,
616 struct vnode *vp, struct label *vplabel, int samedir,
619 struct vnode *vp, struct label *vplabel);
621 struct vnode *vp, struct label *vplabel, acl_type_t type,
624 struct vnode *vp, struct label *vplabel,
627 struct vnode *vp, struct label *vplabel, u_long flags);
629 struct vnode *vp, struct label *vplabel, mode_t mode);
631 struct vnode *vp, struct label *vplabel, uid_t uid,
634 struct vnode *vp, struct label *vplabel,
638 struct label *vplabel);
640 struct vnode *dvp, struct label *dvplabel,
641 struct vnode *vp, struct label *vplabel,
645 struct label *vplabel);
646 typedef void (*mpo_vnode_copy_label_t)(struct label *src,
647 struct label *dest);
649 struct mount *mp, struct label *mplabel,
650 struct vnode *dvp, struct label *dvplabel,
651 struct vnode *vp, struct label *vplabel,
653 typedef void (*mpo_vnode_destroy_label_t)(struct label *label);
656 struct label *vplabel, struct label *interpvplabel,
657 struct image_params *imgp, struct label *execlabel);
659 struct vnode *vp, struct label *vplabel,
660 struct label *interpvplabel, struct image_params *imgp,
661 struct label *execlabel);
662 typedef int (*mpo_vnode_externalize_label_t)(struct label *label,
664 typedef void (*mpo_vnode_init_label_t)(struct label *label);
665 typedef int (*mpo_vnode_internalize_label_t)(struct label *label,
668 struct label *vplabel, struct label *label);
670 struct vnode *vp, struct label *vplabel,
671 struct label *intlabel);
688 * Label operations. Initialize label storage, destroy label
689 * storage, recycle for re-use without init/destroy, copy a label to
1032 * Policy interface to map a struct label pointer to per-policy data.
1036 intptr_t mac_label_get(struct label *l, int slot);
1037 void mac_label_set(struct label *l, int slot, intptr_t v);