Lines Matching refs:label
133 #define LABEL_CHECK(label, magic) do { \ argument
134 if (label != NULL) { \
135 KASSERT(SLOT(label) == magic || SLOT(label) == 0, \
140 #define LABEL_DESTROY(label, magic) do { \ argument
141 if (SLOT(label) == magic || SLOT(label) == 0) { \
142 SLOT_SET(label, MAGIC_FREE); \
143 } else if (SLOT(label) == MAGIC_FREE) { \
150 #define LABEL_INIT(label, magic) do { \ argument
151 SLOT_SET(label, magic); \
154 #define LABEL_NOTFREE(label) do { \ argument
155 KASSERT(SLOT(label) != MAGIC_FREE, \
165 test_bpfdesc_check_receive(struct bpf_d *d, struct label *dlabel, in test_bpfdesc_check_receive()
166 struct ifnet *ifp, struct label *ifplabel) in test_bpfdesc_check_receive()
179 struct label *dlabel) in test_bpfdesc_create()
189 test_bpfdesc_create_mbuf(struct bpf_d *d, struct label *dlabel, in test_bpfdesc_create_mbuf()
190 struct mbuf *m, struct label *mlabel) in test_bpfdesc_create_mbuf()
200 test_bpfdesc_destroy_label(struct label *label) in test_bpfdesc_destroy_label() argument
203 LABEL_DESTROY(label, MAGIC_BPF); in test_bpfdesc_destroy_label()
209 test_bpfdesc_init_label(struct label *label) in test_bpfdesc_init_label() argument
212 LABEL_INIT(label, MAGIC_BPF); in test_bpfdesc_init_label()
218 test_cred_check_relabel(struct ucred *cred, struct label *newlabel) in test_cred_check_relabel()
404 test_cred_copy_label(struct label *src, struct label *dest) in test_cred_copy_label()
432 test_cred_destroy_label(struct label *label) in test_cred_destroy_label() argument
435 LABEL_DESTROY(label, MAGIC_CRED); in test_cred_destroy_label()
441 test_cred_externalize_label(struct label *label, char *element_name, in test_cred_externalize_label() argument
445 LABEL_CHECK(label, MAGIC_CRED); in test_cred_externalize_label()
453 test_cred_init_label(struct label *label) in test_cred_init_label() argument
456 LABEL_INIT(label, MAGIC_CRED); in test_cred_init_label()
462 test_cred_internalize_label(struct label *label, char *element_name, in test_cred_internalize_label() argument
466 LABEL_CHECK(label, MAGIC_CRED); in test_cred_internalize_label()
474 test_cred_relabel(struct ucred *cred, struct label *newlabel) in test_cred_relabel()
507 struct cdev *dev, struct devfs_dirent *de, struct label *delabel) in test_devfs_create_device()
519 int dirnamelen, struct devfs_dirent *de, struct label *delabel) in test_devfs_create_directory()
529 struct devfs_dirent *dd, struct label *ddlabel, struct devfs_dirent *de, in test_devfs_create_symlink()
530 struct label *delabel) in test_devfs_create_symlink()
541 test_devfs_destroy_label(struct label *label) in test_devfs_destroy_label() argument
544 LABEL_DESTROY(label, MAGIC_DEVFS); in test_devfs_destroy_label()
550 test_devfs_init_label(struct label *label) in test_devfs_init_label() argument
553 LABEL_INIT(label, MAGIC_DEVFS); in test_devfs_init_label()
560 struct label *direntlabel, struct vnode *vp, struct label *vplabel) in test_devfs_update()
570 test_devfs_vnode_associate(struct mount *mp, struct label *mplabel, in test_devfs_vnode_associate()
571 struct devfs_dirent *de, struct label *delabel, struct vnode *vp, in test_devfs_vnode_associate()
572 struct label *vplabel) in test_devfs_vnode_associate()
584 struct label *ifplabel, struct label *newlabel) in test_ifnet_check_relabel()
597 test_ifnet_check_transmit(struct ifnet *ifp, struct label *ifplabel, in test_ifnet_check_transmit()
598 struct mbuf *m, struct label *mlabel) in test_ifnet_check_transmit()
610 test_ifnet_copy_label(struct label *src, struct label *dest) in test_ifnet_copy_label()
620 test_ifnet_create(struct ifnet *ifp, struct label *ifplabel) in test_ifnet_create()
629 test_ifnet_create_mbuf(struct ifnet *ifp, struct label *ifplabel, in test_ifnet_create_mbuf()
630 struct mbuf *m, struct label *mlabel) in test_ifnet_create_mbuf()
640 test_ifnet_destroy_label(struct label *label) in test_ifnet_destroy_label() argument
643 LABEL_DESTROY(label, MAGIC_IFNET); in test_ifnet_destroy_label()
649 test_ifnet_externalize_label(struct label *label, char *element_name, in test_ifnet_externalize_label() argument
653 LABEL_CHECK(label, MAGIC_IFNET); in test_ifnet_externalize_label()
661 test_ifnet_init_label(struct label *label) in test_ifnet_init_label() argument
664 LABEL_INIT(label, MAGIC_IFNET); in test_ifnet_init_label()
670 test_ifnet_internalize_label(struct label *label, char *element_name, in test_ifnet_internalize_label() argument
674 LABEL_CHECK(label, MAGIC_IFNET); in test_ifnet_internalize_label()
683 struct label *ifplabel, struct label *newlabel) in test_ifnet_relabel()
694 test_inpcb_check_deliver(struct inpcb *inp, struct label *inplabel, in test_inpcb_check_deliver()
695 struct mbuf *m, struct label *mlabel) in test_inpcb_check_deliver()
708 struct label *inplabel) in test_inpcb_check_visible()
720 test_inpcb_create(struct socket *so, struct label *solabel, in test_inpcb_create()
721 struct inpcb *inp, struct label *inplabel) in test_inpcb_create()
733 test_inpcb_create_mbuf(struct inpcb *inp, struct label *inplabel, in test_inpcb_create_mbuf()
734 struct mbuf *m, struct label *mlabel) in test_inpcb_create_mbuf()
744 test_inpcb_destroy_label(struct label *label) in test_inpcb_destroy_label() argument
747 LABEL_DESTROY(label, MAGIC_INPCB); in test_inpcb_destroy_label()
753 test_inpcb_init_label(struct label *label, int flag) in test_inpcb_init_label() argument
761 LABEL_INIT(label, MAGIC_INPCB); in test_inpcb_init_label()
768 test_inpcb_sosetlabel(struct socket *so, struct label *solabel, in test_inpcb_sosetlabel()
769 struct inpcb *inp, struct label *inplabel) in test_inpcb_sosetlabel()
781 test_ip6q_create(struct mbuf *fragment, struct label *fragmentlabel, in test_ip6q_create()
782 struct ip6q *q6, struct label *q6label) in test_ip6q_create()
792 test_ip6q_destroy_label(struct label *label) in test_ip6q_destroy_label() argument
795 LABEL_DESTROY(label, MAGIC_IP6Q); in test_ip6q_destroy_label()
801 test_ip6q_init_label(struct label *label, int flag) in test_ip6q_init_label() argument
809 LABEL_INIT(label, MAGIC_IP6Q); in test_ip6q_init_label()
816 test_ip6q_match(struct mbuf *fragment, struct label *fragmentlabel, in test_ip6q_match()
817 struct ip6q *q6, struct label *q6label) in test_ip6q_match()
829 test_ip6q_reassemble(struct ip6q *q6, struct label *q6label, struct mbuf *m, in test_ip6q_reassemble()
830 struct label *mlabel) in test_ip6q_reassemble()
840 test_ip6q_update(struct mbuf *m, struct label *mlabel, struct ip6q *q6, in test_ip6q_update()
841 struct label *q6label) in test_ip6q_update()
851 test_ipq_create(struct mbuf *fragment, struct label *fragmentlabel, in test_ipq_create()
852 struct ipq *q, struct label *qlabel) in test_ipq_create()
862 test_ipq_destroy_label(struct label *label) in test_ipq_destroy_label() argument
865 LABEL_DESTROY(label, MAGIC_IPQ); in test_ipq_destroy_label()
871 test_ipq_init_label(struct label *label, int flag) in test_ipq_init_label() argument
879 LABEL_INIT(label, MAGIC_IPQ); in test_ipq_init_label()
886 test_ipq_match(struct mbuf *fragment, struct label *fragmentlabel, in test_ipq_match()
887 struct ipq *q, struct label *qlabel) in test_ipq_match()
899 test_ipq_reassemble(struct ipq *q, struct label *qlabel, struct mbuf *m, in test_ipq_reassemble()
900 struct label *mlabel) in test_ipq_reassemble()
910 test_ipq_update(struct mbuf *m, struct label *mlabel, struct ipq *q, in test_ipq_update()
911 struct label *qlabel) in test_ipq_update()
976 struct label *label) in test_kld_check_load() argument
980 LABEL_CHECK(label, MAGIC_VNODE); in test_kld_check_load()
999 test_mbuf_copy_label(struct label *src, struct label *dest) in test_mbuf_copy_label()
1009 test_mbuf_destroy_label(struct label *label) in test_mbuf_destroy_label() argument
1017 if (label == NULL) in test_mbuf_destroy_label()
1020 LABEL_DESTROY(label, MAGIC_MBUF); in test_mbuf_destroy_label()
1026 test_mbuf_init_label(struct label *label, int flag) in test_mbuf_init_label() argument
1034 LABEL_INIT(label, MAGIC_MBUF); in test_mbuf_init_label()
1042 struct label *mplabel) in test_mount_check_stat()
1055 struct label *mplabel) in test_mount_create()
1065 test_mount_destroy_label(struct label *label) in test_mount_destroy_label() argument
1068 LABEL_DESTROY(label, MAGIC_MOUNT); in test_mount_destroy_label()
1074 test_mount_init_label(struct label *label) in test_mount_init_label() argument
1077 LABEL_INIT(label, MAGIC_MOUNT); in test_mount_init_label()
1084 struct label *vplabel, struct vfsconf *vfsconf, in test_mount_check_mount()
1096 struct label *mplabel, struct vfsoptlist **optlist, uint64_t fsflags) in test_mount_check_update()
1107 struct label *mplabel, uint64_t flags) in test_mount_check_unmount()
1117 test_netinet_arp_send(struct ifnet *ifp, struct label *ifplabel, in test_netinet_arp_send()
1118 struct mbuf *m, struct label *mlabel) in test_netinet_arp_send()
1128 test_netinet_fragment(struct mbuf *m, struct label *mlabel, in test_netinet_fragment()
1129 struct mbuf *frag, struct label *fraglabel) in test_netinet_fragment()
1139 test_netinet_icmp_reply(struct mbuf *mrecv, struct label *mrecvlabel, in test_netinet_icmp_reply()
1140 struct mbuf *msend, struct label *msendlabel) in test_netinet_icmp_reply()
1150 test_netinet_icmp_replyinplace(struct mbuf *m, struct label *mlabel) in test_netinet_icmp_replyinplace()
1159 test_netinet_igmp_send(struct ifnet *ifp, struct label *ifplabel, in test_netinet_igmp_send()
1160 struct mbuf *m, struct label *mlabel) in test_netinet_igmp_send()
1170 test_netinet_tcp_reply(struct mbuf *m, struct label *mlabel) in test_netinet_tcp_reply()
1179 test_netinet6_nd6_send(struct ifnet *ifp, struct label *ifplabel, in test_netinet6_nd6_send()
1180 struct mbuf *m, struct label *mlabel) in test_netinet6_nd6_send()
1191 struct label *pplabel, unsigned long cmd, void /* caddr_t */ *data) in test_pipe_check_ioctl()
1204 struct label *pplabel) in test_pipe_check_poll()
1217 struct label *pplabel) in test_pipe_check_read()
1230 struct label *pplabel, struct label *newlabel) in test_pipe_check_relabel()
1244 struct label *pplabel) in test_pipe_check_stat()
1257 struct label *pplabel) in test_pipe_check_write()
1269 test_pipe_copy_label(struct label *src, struct label *dest) in test_pipe_copy_label()
1280 struct label *pplabel) in test_pipe_create()
1290 test_pipe_destroy_label(struct label *label) in test_pipe_destroy_label() argument
1293 LABEL_DESTROY(label, MAGIC_PIPE); in test_pipe_destroy_label()
1299 test_pipe_externalize_label(struct label *label, char *element_name, in test_pipe_externalize_label() argument
1303 LABEL_CHECK(label, MAGIC_PIPE); in test_pipe_externalize_label()
1311 test_pipe_init_label(struct label *label) in test_pipe_init_label() argument
1314 LABEL_INIT(label, MAGIC_PIPE); in test_pipe_init_label()
1320 test_pipe_internalize_label(struct label *label, char *element_name, in test_pipe_internalize_label() argument
1324 LABEL_CHECK(label, MAGIC_PIPE); in test_pipe_internalize_label()
1333 struct label *pplabel, struct label *newlabel) in test_pipe_relabel()
1345 struct ksem *ks, struct label *kslabel) in test_posixsem_check_getvalue()
1359 struct label *kslabel) in test_posixsem_check_open()
1372 struct ksem *ks, struct label *kslabel) in test_posixsem_check_post()
1386 struct label *kslabel, mode_t mode) in test_posixsem_check_setmode()
1398 struct label *kslabel, uid_t uid, gid_t gid) in test_posixsem_check_setowner()
1410 struct ucred *file_cred, struct ksem *ks, struct label *kslabel) in test_posixsem_check_stat()
1423 struct label *kslabel) in test_posixsem_check_unlink()
1436 struct ksem *ks, struct label *kslabel) in test_posixsem_check_wait()
1450 struct label *kslabel) in test_posixsem_create()
1460 test_posixsem_destroy_label(struct label *label) in test_posixsem_destroy_label() argument
1463 LABEL_DESTROY(label, MAGIC_POSIX_SEM); in test_posixsem_destroy_label()
1469 test_posixsem_init_label(struct label *label) in test_posixsem_init_label() argument
1472 LABEL_INIT(label, MAGIC_POSIX_SEM); in test_posixsem_init_label()
1488 struct label *shmfdlabel, int prot, int flags) in test_posixshm_check_mmap()
1500 struct label *shmfdlabel, accmode_t accmode) in test_posixshm_check_open()
1512 struct ucred *file_cred, struct shmfd *shm, struct label *shmlabel) in test_posixshm_check_read()
1527 struct label *shmfdlabel, mode_t mode) in test_posixshm_check_setmode()
1539 struct label *shmfdlabel, uid_t uid, gid_t gid) in test_posixshm_check_setowner()
1551 struct ucred *file_cred, struct shmfd *shmfd, struct label *shmfdlabel) in test_posixshm_check_stat()
1564 struct ucred *file_cred, struct shmfd *shmfd, struct label *shmfdlabel) in test_posixshm_check_truncate()
1577 struct label *shmfdlabel) in test_posixshm_check_unlink()
1589 struct ucred *file_cred, struct shmfd *shm, struct label *shmlabel) in test_posixshm_check_write()
1604 struct label *shmfdlabel) in test_posixshm_create()
1614 test_posixshm_destroy_label(struct label *label) in test_posixshm_destroy_label() argument
1617 LABEL_DESTROY(label, MAGIC_POSIX_SHM); in test_posixshm_destroy_label()
1623 test_posixshm_init_label(struct label *label) in test_posixshm_init_label() argument
1626 LABEL_INIT(label, MAGIC_POSIX_SHM); in test_posixshm_init_label()
1632 test_prison_init_label(struct label *label, int flag) in test_prison_init_label() argument
1640 LABEL_INIT(label, MAGIC_PRISON); in test_prison_init_label()
1647 test_prison_destroy_label(struct label *label) in test_prison_destroy_label() argument
1650 LABEL_DESTROY(label, MAGIC_PRISON); in test_prison_destroy_label()
1656 test_prison_copy_label(struct label *src, struct label *dest) in test_prison_copy_label()
1666 test_prison_externalize_label(struct label *label, char *element_name, in test_prison_externalize_label() argument
1670 LABEL_CHECK(label, MAGIC_PRISON); in test_prison_externalize_label()
1678 test_prison_internalize_label(struct label *label, char *element_name, in test_prison_internalize_label() argument
1682 LABEL_CHECK(label, MAGIC_PRISON); in test_prison_internalize_label()
1691 struct label *prlabel, struct label *newlabel) in test_prison_relabel()
1702 struct label *prlabel, struct label *newlabel) in test_prison_check_relabel()
1714 struct label *prlabel) in test_prison_check_attach()
1734 struct label *prlabel, struct vfsoptlist *opts, int flags) in test_prison_check_get()
1745 struct label *prlabel, struct vfsoptlist *opts, int flags) in test_prison_check_set()
1756 struct label *prlabel) in test_prison_check_remove()
1767 struct label *prlabel) in test_prison_created()
1785 struct label *prlabel, struct proc *p, struct label *proclabel) in test_prison_attached()
1843 test_proc_destroy_label(struct label *label) in test_proc_destroy_label() argument
1846 LABEL_DESTROY(label, MAGIC_PROC); in test_proc_destroy_label()
1852 test_proc_init_label(struct label *label) in test_proc_init_label() argument
1855 LABEL_INIT(label, MAGIC_PROC); in test_proc_init_label()
1862 struct label *solabel) in test_socket_check_accept()
1877 struct label *solabel, struct sockaddr *sa) in test_socket_check_bind()
1892 struct label *solabel, struct sockaddr *sa) in test_socket_check_connect()
1906 test_socket_check_deliver(struct socket *so, struct label *solabel, in test_socket_check_deliver()
1907 struct mbuf *m, struct label *mlabel) in test_socket_check_deliver()
1922 struct label *solabel) in test_socket_check_listen()
1937 struct label *solabel) in test_socket_check_poll()
1952 struct label *solabel) in test_socket_check_receive()
1967 struct label *solabel, struct label *newlabel) in test_socket_check_relabel()
1983 struct label *solabel) in test_socket_check_send()
1998 struct label *solabel) in test_socket_check_stat()
2013 struct label *solabel) in test_socket_check_visible()
2027 test_socket_copy_label(struct label *src, struct label *dest) in test_socket_copy_label()
2038 struct label *solabel) in test_socket_create()
2048 test_socket_create_mbuf(struct socket *so, struct label *solabel, in test_socket_create_mbuf()
2049 struct mbuf *m, struct label *mlabel) in test_socket_create_mbuf()
2061 test_socket_destroy_label(struct label *label) in test_socket_destroy_label() argument
2064 LABEL_DESTROY(label, MAGIC_SOCKET); in test_socket_destroy_label()
2070 test_socket_externalize_label(struct label *label, char *element_name, in test_socket_externalize_label() argument
2074 LABEL_CHECK(label, MAGIC_SOCKET); in test_socket_externalize_label()
2082 test_socket_init_label(struct label *label, int flag) in test_socket_init_label() argument
2090 LABEL_INIT(label, MAGIC_SOCKET); in test_socket_init_label()
2097 test_socket_internalize_label(struct label *label, char *element_name, in test_socket_internalize_label() argument
2101 LABEL_CHECK(label, MAGIC_SOCKET); in test_socket_internalize_label()
2109 test_socket_newconn(struct socket *oldso, struct label *oldsolabel, in test_socket_newconn()
2110 struct socket *newso, struct label *newsolabel) in test_socket_newconn()
2125 struct label *solabel, struct label *newlabel) in test_socket_relabel()
2138 test_socketpeer_destroy_label(struct label *label) in test_socketpeer_destroy_label() argument
2141 LABEL_DESTROY(label, MAGIC_SOCKET); in test_socketpeer_destroy_label()
2147 test_socketpeer_externalize_label(struct label *label, char *element_name, in test_socketpeer_externalize_label() argument
2151 LABEL_CHECK(label, MAGIC_SOCKET); in test_socketpeer_externalize_label()
2159 test_socketpeer_init_label(struct label *label, int flag) in test_socketpeer_init_label() argument
2167 LABEL_INIT(label, MAGIC_SOCKET); in test_socketpeer_init_label()
2174 test_socketpeer_set_from_mbuf(struct mbuf *m, struct label *mlabel, in test_socketpeer_set_from_mbuf()
2175 struct socket *so, struct label *sopeerlabel) in test_socketpeer_set_from_mbuf()
2188 struct label *oldsolabel, struct socket *newso, in test_socketpeer_set_from_socket()
2189 struct label *newsopeerlabel) in test_socketpeer_set_from_socket()
2203 test_syncache_create(struct label *label, struct inpcb *inp) in test_syncache_create() argument
2206 LABEL_CHECK(label, MAGIC_SYNCACHE); in test_syncache_create()
2212 test_syncache_create_mbuf(struct label *sc_label, struct mbuf *m, in test_syncache_create_mbuf()
2213 struct label *mlabel) in test_syncache_create_mbuf()
2223 test_syncache_destroy_label(struct label *label) in test_syncache_destroy_label() argument
2226 LABEL_DESTROY(label, MAGIC_SYNCACHE); in test_syncache_destroy_label()
2232 test_syncache_init_label(struct label *label, int flag) in test_syncache_init_label() argument
2239 LABEL_INIT(label, MAGIC_SYNCACHE); in test_syncache_init_label()
2247 struct label *vplabel) in test_system_check_acct()
2271 struct label *vplabel) in test_system_check_auditctl()
2306 struct label *vplabel) in test_system_check_swapoff()
2319 struct label *vplabel) in test_system_check_swapon()
2343 test_sysvmsg_cleanup(struct label *msglabel) in test_sysvmsg_cleanup()
2353 struct label *msqlabel, struct msg *msgptr, struct label *msglabel) in test_sysvmsg_create()
2363 test_sysvmsg_destroy_label(struct label *label) in test_sysvmsg_destroy_label() argument
2366 LABEL_DESTROY(label, MAGIC_SYSV_MSG); in test_sysvmsg_destroy_label()
2372 test_sysvmsg_init_label(struct label *label) in test_sysvmsg_init_label() argument
2374 LABEL_INIT(label, MAGIC_SYSV_MSG); in test_sysvmsg_init_label()
2381 struct label *msglabel, struct msqid_kernel *msqkptr, in test_sysvmsq_check_msgmsq()
2382 struct label *msqklabel) in test_sysvmsq_check_msgmsq()
2396 struct label *msglabel) in test_sysvmsq_check_msgrcv()
2409 struct label *msglabel) in test_sysvmsq_check_msgrmid()
2422 struct msqid_kernel *msqkptr, struct label *msqklabel) in test_sysvmsq_check_msqget()
2435 struct msqid_kernel *msqkptr, struct label *msqklabel) in test_sysvmsq_check_msqsnd()
2448 struct msqid_kernel *msqkptr, struct label *msqklabel) in test_sysvmsq_check_msqrcv()
2461 struct msqid_kernel *msqkptr, struct label *msqklabel, int cmd) in test_sysvmsq_check_msqctl()
2473 test_sysvmsq_cleanup(struct label *msqlabel) in test_sysvmsq_cleanup()
2483 struct msqid_kernel *msqkptr, struct label *msqlabel) in test_sysvmsq_create()
2492 test_sysvmsq_destroy_label(struct label *label) in test_sysvmsq_destroy_label() argument
2495 LABEL_DESTROY(label, MAGIC_SYSV_MSQ); in test_sysvmsq_destroy_label()
2501 test_sysvmsq_init_label(struct label *label) in test_sysvmsq_init_label() argument
2503 LABEL_INIT(label, MAGIC_SYSV_MSQ); in test_sysvmsq_init_label()
2510 struct semid_kernel *semakptr, struct label *semaklabel, int cmd) in test_sysvsem_check_semctl()
2523 struct semid_kernel *semakptr, struct label *semaklabel) in test_sysvsem_check_semget()
2536 struct semid_kernel *semakptr, struct label *semaklabel, size_t accesstype) in test_sysvsem_check_semop()
2548 test_sysvsem_cleanup(struct label *semalabel) in test_sysvsem_cleanup()
2558 struct label *semalabel) in test_sysvsem_create()
2567 test_sysvsem_destroy_label(struct label *label) in test_sysvsem_destroy_label() argument
2570 LABEL_DESTROY(label, MAGIC_SYSV_SEM); in test_sysvsem_destroy_label()
2576 test_sysvsem_init_label(struct label *label) in test_sysvsem_init_label() argument
2578 LABEL_INIT(label, MAGIC_SYSV_SEM); in test_sysvsem_init_label()
2585 struct shmid_kernel *shmsegptr, struct label *shmseglabel, int shmflg) in test_sysvshm_check_shmat()
2598 struct shmid_kernel *shmsegptr, struct label *shmseglabel, int cmd) in test_sysvshm_check_shmctl()
2611 struct shmid_kernel *shmsegptr, struct label *shmseglabel) in test_sysvshm_check_shmdt()
2624 struct shmid_kernel *shmsegptr, struct label *shmseglabel, int shmflg) in test_sysvshm_check_shmget()
2636 test_sysvshm_cleanup(struct label *shmlabel) in test_sysvshm_cleanup()
2646 struct label *shmlabel) in test_sysvshm_create()
2655 test_sysvshm_destroy_label(struct label *label) in test_sysvshm_destroy_label() argument
2658 LABEL_DESTROY(label, MAGIC_SYSV_SHM); in test_sysvshm_destroy_label()
2664 test_sysvshm_init_label(struct label *label) in test_sysvshm_init_label() argument
2666 LABEL_INIT(label, MAGIC_SYSV_SHM); in test_sysvshm_init_label()
2680 test_vnode_associate_extattr(struct mount *mp, struct label *mplabel, in test_vnode_associate_extattr()
2681 struct vnode *vp, struct label *vplabel) in test_vnode_associate_extattr()
2693 test_vnode_associate_singlelabel(struct mount *mp, struct label *mplabel, in test_vnode_associate_singlelabel()
2694 struct vnode *vp, struct label *vplabel) in test_vnode_associate_singlelabel()
2705 struct label *vplabel, accmode_t accmode) in test_vnode_check_access()
2718 struct label *dvplabel) in test_vnode_check_chdir()
2731 struct label *dvplabel) in test_vnode_check_chroot()
2744 struct label *dvplabel, struct componentname *cnp, struct vattr *vap) in test_vnode_check_create()
2757 struct label *vplabel, acl_type_t type) in test_vnode_check_deleteacl()
2770 struct label *vplabel, int attrnamespace, const char *name) in test_vnode_check_deleteextattr()
2783 struct label *vplabel, struct image_params *imgp, in test_vnode_check_exec()
2784 struct label *execlabel) in test_vnode_check_exec()
2798 struct label *vplabel, acl_type_t type) in test_vnode_check_getacl()
2811 struct label *vplabel, int attrnamespace, const char *name) in test_vnode_check_getextattr()
2824 struct label *dvplabel, struct vnode *vp, struct label *vplabel, in test_vnode_check_link()
2839 struct label *vplabel, int attrnamespace) in test_vnode_check_listextattr()
2852 struct label *dvplabel, struct componentname *cnp) in test_vnode_check_lookup()
2865 struct label *vplabel, int prot, int flags) in test_vnode_check_mmap()
2878 struct label *vplabel, accmode_t accmode) in test_vnode_check_open()
2891 struct vnode *vp, struct label *vplabel) in test_vnode_check_poll()
2906 struct vnode *vp, struct label *vplabel) in test_vnode_check_read()
2921 struct label *dvplabel) in test_vnode_check_readdir()
2934 struct label *vplabel) in test_vnode_check_readlink()
2947 struct label *vplabel, struct label *newlabel) in test_vnode_check_relabel()
2961 struct label *dvplabel, struct vnode *vp, struct label *vplabel, in test_vnode_check_rename_from()
2976 struct label *dvplabel, struct vnode *vp, struct label *vplabel, in test_vnode_check_rename_to()
2991 struct label *vplabel) in test_vnode_check_revoke()
3004 struct label *vplabel, acl_type_t type, struct acl *acl) in test_vnode_check_setacl()
3017 struct label *vplabel, int attrnamespace, const char *name) in test_vnode_check_setextattr()
3030 struct label *vplabel, u_long flags) in test_vnode_check_setflags()
3043 struct label *vplabel, mode_t mode) in test_vnode_check_setmode()
3056 struct label *vplabel, uid_t uid, gid_t gid) in test_vnode_check_setowner()
3069 struct label *vplabel, struct timespec atime, struct timespec mtime) in test_vnode_check_setutimes()
3082 struct vnode *vp, struct label *vplabel) in test_vnode_check_stat()
3097 struct label *dvplabel, struct vnode *vp, struct label *vplabel, in test_vnode_check_unlink()
3112 struct ucred *file_cred, struct vnode *vp, struct label *vplabel) in test_vnode_check_write()
3126 test_vnode_copy_label(struct label *src, struct label *dest) in test_vnode_copy_label()
3137 struct label *mplabel, struct vnode *dvp, struct label *dvplabel, in test_vnode_create_extattr()
3138 struct vnode *vp, struct label *vplabel, struct componentname *cnp) in test_vnode_create_extattr()
3151 test_vnode_destroy_label(struct label *label) in test_vnode_destroy_label() argument
3154 LABEL_DESTROY(label, MAGIC_VNODE); in test_vnode_destroy_label()
3161 struct vnode *vp, struct label *filelabel, in test_vnode_execve_transition()
3162 struct label *interpvplabel, struct image_params *imgp, in test_vnode_execve_transition()
3163 struct label *execlabel) in test_vnode_execve_transition()
3177 struct label *filelabel, struct label *interpvplabel, in test_vnode_execve_will_transition()
3178 struct image_params *imgp, struct label *execlabel) in test_vnode_execve_will_transition()
3192 test_vnode_externalize_label(struct label *label, char *element_name, in test_vnode_externalize_label() argument
3196 LABEL_CHECK(label, MAGIC_VNODE); in test_vnode_externalize_label()
3204 test_vnode_init_label(struct label *label) in test_vnode_init_label() argument
3207 LABEL_INIT(label, MAGIC_VNODE); in test_vnode_init_label()
3213 test_vnode_internalize_label(struct label *label, char *element_name, in test_vnode_internalize_label() argument
3217 LABEL_CHECK(label, MAGIC_VNODE); in test_vnode_internalize_label()
3226 struct label *vplabel, struct label *label) in test_vnode_relabel() argument
3231 LABEL_CHECK(label, MAGIC_VNODE); in test_vnode_relabel()
3238 struct label *vplabel, struct label *intlabel) in test_vnode_setlabel_extattr()